From 685488f14ebbc14da010eadc092896a0b2ad340f Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Mon, 23 Mar 2026 23:16:15 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A4975=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=82=B9=E5=87=BB=E8=93=9D?= =?UTF-8?q?=E8=89=B2=E7=9A=84=E9=A6=96=E9=A1=B5=E6=B5=B7=E6=8A=A5=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=BF=9B=E5=85=A5=E6=97=85=E5=B1=85=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 6 ++++++ pages/order/MyOrder/index.vue | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index cde3e57..9286a2b 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1397,6 +1397,12 @@ export default { this.$yrouter.push('/pages/home/newZone') }, goExperienceCoupon() { + if (this.hasUnusedExperienceCoupon === 0) { + uni.navigateTo({ + url: '/pages/order/MyOrder/index?type=3&tabIndex=1' + }) + return + } this.$yrouter.push('/pkg_product/views/experienceCoupon') }, init() { diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index 7e3d45e..ab9b4b4 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -642,7 +642,11 @@ export default { }, onLoad() { this.type = this.type || parseInt(this.$yroute.query.type) || 0 - this.changeType(this.type) + this.orderTypeTabIndex = parseInt(this.$yroute.query.tabIndex) || 0 + this.orderTypeTabChange({ + ...this.orderTypeTabList[this.orderTypeTabIndex], + index: this.orderTypeTabIndex + }) }, onShareAppMessage() { uni.updateShareMenu({ @@ -957,7 +961,7 @@ export default { this.orderTypeTabIndex = item.index this.orderType = item.orderType this.updateTabListByOrderType() - this.changeType() + this.changeType(this.type) }, updateTabListByOrderType() { if (this.orderType === 'travel') {