隐患因素和违章分页bug

This commit is contained in:
caoqianming 2021-06-05 21:18:55 +08:00
parent f756d7bf64
commit 8bf72483d1
3 changed files with 5 additions and 6 deletions

View File

@ -69,13 +69,13 @@ Page({
onReachBottom: function () { onReachBottom: function () {
//上拉分页,将页码加1然后调用分页函数 //上拉分页,将页码加1然后调用分页函数
this.data.page = this.data.page + 1; this.data.page = this.data.page + 1;
this.getwzlist(); this.getwzlist(this.data.page);
}, },
getwzlist: function (page) { getwzlist: function (page) {
var that = this; var that = this;
if (page != 1) { page = that.data.page } 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 (res.rows.length == 0) {
if (page == 1) { if (page == 1) {
this.setData({ this.setData({

View File

@ -21,7 +21,7 @@
</view> </view>
<view class="weui-cell__bd"> <view class="weui-cell__bd">
<navigator url="/pages/dickey/treeselect?a=yhlx"> <navigator url="/pages/dickey/treeselect?a=yhlxo">
<view class="weui-select"> <view class="weui-select">
{{yhlxo__name}} {{yhlxo__name}}
</view> </view>

View File

@ -19,14 +19,13 @@
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"useMultiFrameRuntime": false, "useMultiFrameRuntime": false,
"useApiHook": false, "useApiHook": true,
"useApiHostProcess": false,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"enableEngineNative": false, "bundle": false,
"useIsolateContext": false, "useIsolateContext": false,
"useCompilerModule": false, "useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false, "userConfirmedUseCompilerModuleSwitch": false,