From 8bf72483d15e2ad8fa1a34862e6c0895485d27b2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 5 Jun 2021 21:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E5=9B=A0=E7=B4=A0=E5=92=8C?= =?UTF-8?q?=E8=BF=9D=E7=AB=A0=E5=88=86=E9=A1=B5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/offence/index.js | 4 ++-- pages/trouble/addtroublezg.wxml | 2 +- project.config.json | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pages/offence/index.js b/pages/offence/index.js index ee2107a..5e2a4ca 100644 --- a/pages/offence/index.js +++ b/pages/offence/index.js @@ -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({ diff --git a/pages/trouble/addtroublezg.wxml b/pages/trouble/addtroublezg.wxml index 179362b..5909d12 100644 --- a/pages/trouble/addtroublezg.wxml +++ b/pages/trouble/addtroublezg.wxml @@ -21,7 +21,7 @@ - + {{yhlxo__name}} diff --git a/project.config.json b/project.config.json index 9bef95c..156da11 100644 --- a/project.config.json +++ b/project.config.json @@ -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,