Fix:5140 【商城小程序】点击店铺名称区域无页面跳转响应

This commit is contained in:
linxi
2026-04-13 13:44:19 +08:00
parent 50a36877e5
commit bf3145a2a7
2 changed files with 57 additions and 5 deletions
@@ -13,7 +13,7 @@
</view>
<view class="qrcode-card" v-if="!isCompleted && !isExpired">
<view class="merchant-header" v-if="orderInfo.merchantName">
<view class="merchant-header" v-if="orderInfo.merchantName" @click="goStoreDetail">
<image :src="webUrl + '/orderIcon/shop.png'" class="shop-icon" />
<text class="merchant-name">{{ orderInfo.merchantName }}</text>
<image :src="webUrl + '/orderIcon/arrow.png'" class="arrow-icon" />
@@ -271,6 +271,16 @@ export default {
uni.showToast({ title: '暂无位置信息', icon: 'none' })
}
},
goStoreDetail() {
const merchantId = this.orderInfo.merId || this.orderInfo.merchantId || this.orderInfo.hotelId
if (!merchantId) {
uni.showToast({ title: '未找到店铺信息', icon: 'none' })
return
}
uni.navigateTo({
url: '/pkg_product/views/experienceProjectDetail?experienceMerchantId=' + encodeURIComponent(merchantId)
})
},
copyVerifyCode() {
if (!this.orderInfo.verifyCode) {
return