From 79f737404ed81b13f3a80f9236cb3ef6f0b73ba7 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 31 Mar 2022 15:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/myOrder.vue | 184 +++++++++++++++++++++++++++++++++------- 1 file changed, 152 insertions(+), 32 deletions(-) diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index 0f996f1..103595a 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -1,15 +1,43 @@ @@ -203,10 +318,21 @@ export default { } }, onPullDownRefresh() { + if (this.tabCurrentIndex) { + this.initData(this.tabCurrentIndex); + } else { + this.initData(0); + } + this.loadData(this.status); + }, + onShow() { + if (this.tabCurrentIndex) { + this.initData(this.tabCurrentIndex); + } else { + this.initData(0); + } this.loadData(this.status); }, - - onLoad(options) { /** @@ -219,7 +345,6 @@ export default { if (status == 0) { this.loadData(status); } - }, watch: { @@ -236,16 +361,11 @@ export default { }, }, methods: { - - // 售后 - applyService(order){ - - + applyService(order) { uni.navigateTo({ - url: `/pages/order/afterSales/afterSales?orderSn=${order.sn}` + url: `/pages/order/afterSales/afterSales?orderSn=${order.sn}`, }); - }, // 店铺详情