隐患因素和违章分页bug
This commit is contained in:
parent
f756d7bf64
commit
8bf72483d1
|
@ -69,13 +69,13 @@ Page({
|
|||
onReachBottom: function () {
|
||||
//上拉分页,将页码加1,然后调用分页函数
|
||||
this.data.page = this.data.page + 1;
|
||||
this.getwzlist();
|
||||
this.getwzlist(this.data.page);
|
||||
|
||||
},
|
||||
getwzlist: function (page) {
|
||||
var that = this;
|
||||
if (page != 1) { page = that.data.page }
|
||||
api.request('api/offence/?a=listall', 'GET').then(res => {
|
||||
api.request('api/offence/?a=listall', 'GET', {page:page}).then(res => {
|
||||
if (res.rows.length == 0) {
|
||||
if (page == 1) {
|
||||
this.setData({
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</view>
|
||||
|
||||
<view class="weui-cell__bd">
|
||||
<navigator url="/pages/dickey/treeselect?a=yhlx">
|
||||
<navigator url="/pages/dickey/treeselect?a=yhlxo">
|
||||
<view class="weui-select">
|
||||
{{yhlxo__name}}
|
||||
</view>
|
||||
|
|
|
@ -19,14 +19,13 @@
|
|||
"uploadWithSourceMap": true,
|
||||
"compileHotReLoad": false,
|
||||
"useMultiFrameRuntime": false,
|
||||
"useApiHook": false,
|
||||
"useApiHostProcess": false,
|
||||
"useApiHook": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
},
|
||||
"enableEngineNative": false,
|
||||
"bundle": false,
|
||||
"useIsolateContext": false,
|
||||
"useCompilerModule": false,
|
||||
"userConfirmedUseCompilerModuleSwitch": false,
|
||||
|
|
Loading…
Reference in New Issue