From 19600cd32e3ae734f3ee54261bcb21c1f9fd8300 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 7 Oct 2021 14:43:30 +0800 Subject: [PATCH] no message --- pages/moment/theall/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/moment/theall/index.js b/pages/moment/theall/index.js index 4d656df..efe9bf5 100644 --- a/pages/moment/theall/index.js +++ b/pages/moment/theall/index.js @@ -53,7 +53,7 @@ Component({ } this.data.tabIndex = Number(detail.index) this.data.form.proviceId = area.list[this.data.tabIndex].data[this.data.pIndex].code - this.setData({ pIndex: 0, proviceList: this.getProviceListByIndex(this.data.tabIndex) }) + this.setData({ pIndex: 0, proviceList: this.getProviceListByIndex(this.data.tabIndex), orderList: [], ['form.pageNum']: 1, finished: false, loading: true }) this.fetchList() }, onProviceChange: function({ detail }){ @@ -62,13 +62,13 @@ Component({ } this.data.pIndex = Number(detail.index) this.data.form.proviceId = area.list[this.data.tabIndex].data[this.data.pIndex].code - this.fetchList() + this.onRefreshList() }, onRefreshList: function(){ if (this.data.requesting) { return } - this.setData({ orderList: [], ['form.pageNum']: 1, finished: false, requesting: true, loading: true }) + this.setData({ orderList: [], ['form.pageNum']: 1, finished: false, loading: true }) this.fetchList() }, fetchList: function(){ @@ -87,7 +87,6 @@ Component({ this.setData({ finished: true, requesting: false, loading: false }) } }).catch(err => { - console.log(err) this.setData({ requesting: false, loading: false }) util.showToast(err) })