解决冲突2

This commit is contained in:
caoqianming 2021-07-05 14:37:41 +08:00
commit 26357524d0
3 changed files with 5 additions and 6 deletions

View File

@ -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({

View File

@ -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>

View File

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