Fix:4975 【商城小程序】点击蓝色的首页海报,应进入旅居订单列表页

This commit is contained in:
LinCyJang
2026-03-23 23:16:15 +08:00
parent 6546f53a3b
commit 685488f14e
2 changed files with 12 additions and 2 deletions
+6
View File
@@ -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() {
+6 -2
View File
@@ -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') {