From bfa4b303d73bd103ab252cfa942c9bbe2949535d Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Mon, 20 Mar 2023 16:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=B7=A1=E6=A3=80=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/polling/polling.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/weapp/package/polling/polling.js b/weapp/package/polling/polling.js index 900415e..4a7fe44 100644 --- a/weapp/package/polling/polling.js +++ b/weapp/package/polling/polling.js @@ -199,7 +199,7 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad (options) { - this.getPatrolPlan(); + // this.getPatrolPlan(); }, /** @@ -213,7 +213,13 @@ Page({ * 生命周期函数--监听页面显示 */ onShow () { - + const that = this; + that.setData({ + dataList: [], + page: 0, //当前页 + count: '', //总条数 + }) + that.getPatrolPlan() }, /**