From ebf0d585fcd4c5d2fdca586409774515683bbc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Wed, 18 May 2022 15:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=AE=A2=E5=8D=95=E5=8F=91?= =?UTF-8?q?=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/myOrder.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index 88cae7e..0683258 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -326,10 +326,10 @@ export default { // this.loadData(this.status); }, onShow() { - if (this.tabCurrentIndex) { - this.initData(this.tabCurrentIndex); + if (!this.tabCurrentIndex) { + this.initData(0); } else { - this.initData(0); + } // this.loadData(this.status); }, @@ -340,7 +340,8 @@ export default { * 替换onLoad下代码即可 */ let status = Number(options.status); - this.status = status; + this.status = status; + this.tabCurrentIndex = status; // if (status == 0) { // this.loadData(status); @@ -434,6 +435,7 @@ export default { */ loadData(index) { this.params.pageNumber = this.navList[index].pageNumber; + // this.params.tag = this.orderStatus[index].orderStatus; getOrderList(this.params).then((res) => { uni.stopPullDownRefresh(); if (!res.data.success) {