Fix:5140 【商城小程序】点击店铺名称区域无页面跳转响应
This commit is contained in:
@@ -872,10 +872,52 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goStore(order) {
|
goStore(order) {
|
||||||
if(order.isTravelGroup === 1 || order.experienceOrderInfo) {
|
if (!order) {
|
||||||
// uni.showToast({
|
return
|
||||||
// title: '该订单为团体订单,无法查看店铺信息!'
|
}
|
||||||
// })
|
|
||||||
|
if (order.experienceOrderInfo) {
|
||||||
|
const experienceMerchantId =
|
||||||
|
order.merId ||
|
||||||
|
order.merchantId ||
|
||||||
|
order.hotelId ||
|
||||||
|
(order.experienceOrderInfo && order.experienceOrderInfo.merId) ||
|
||||||
|
(order.experienceOrderInfo && order.experienceOrderInfo.merchantId)
|
||||||
|
if (!experienceMerchantId) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '未找到体验店信息',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: "/pkg_product/views/experienceProjectDetail",
|
||||||
|
query: {
|
||||||
|
experienceMerchantId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (order.isTravelGroup === 1) {
|
||||||
|
const travelStoreId =
|
||||||
|
order.merId ||
|
||||||
|
order.hotelId ||
|
||||||
|
order.travelMerchantId ||
|
||||||
|
(order.travelGroupOrderInfo && order.travelGroupOrderInfo.travelMerchantId) ||
|
||||||
|
(order.travelGroupOrderInfo && order.travelGroupOrderInfo.travelGroupProduct && order.travelGroupOrderInfo.travelGroupProduct.travelMerchantId)
|
||||||
|
if (!travelStoreId) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '未找到旅居店铺信息',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: "/pkg_product/views/sojoumStore",
|
||||||
|
query: {
|
||||||
|
id: travelStoreId
|
||||||
|
}
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(!order.hotelId) {
|
if(!order.hotelId) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="qrcode-card" v-if="!isCompleted && !isExpired">
|
<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" />
|
<image :src="webUrl + '/orderIcon/shop.png'" class="shop-icon" />
|
||||||
<text class="merchant-name">{{ orderInfo.merchantName }}</text>
|
<text class="merchant-name">{{ orderInfo.merchantName }}</text>
|
||||||
<image :src="webUrl + '/orderIcon/arrow.png'" class="arrow-icon" />
|
<image :src="webUrl + '/orderIcon/arrow.png'" class="arrow-icon" />
|
||||||
@@ -271,6 +271,16 @@ export default {
|
|||||||
uni.showToast({ title: '暂无位置信息', icon: 'none' })
|
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() {
|
copyVerifyCode() {
|
||||||
if (!this.orderInfo.verifyCode) {
|
if (!this.orderInfo.verifyCode) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user