Fix:5140 【商城小程序】点击店铺名称区域无页面跳转响应
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user