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}`, }); - }, // 店铺详情