Fix:5075 【商城小程序】点击体验店,链接跳转的体验店详情数据错误,获取的是旅居店铺的数据,应获取体验店数据
This commit is contained in:
@@ -243,7 +243,7 @@ export default {
|
|||||||
this.selectedCount = this.initialUsedCount + this.selectedProjectIds.length
|
this.selectedCount = this.initialUsedCount + this.selectedProjectIds.length
|
||||||
},
|
},
|
||||||
goExperienceStoreDetail(item) {
|
goExperienceStoreDetail(item) {
|
||||||
const merchantId = this.merId
|
const merchantId = item.merId
|
||||||
if (!merchantId) {
|
if (!merchantId) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '未找到体验店信息',
|
title: '未找到体验店信息',
|
||||||
@@ -253,15 +253,6 @@ export default {
|
|||||||
}
|
}
|
||||||
const query = []
|
const query = []
|
||||||
query.push('experienceMerchantId=' + encodeURIComponent(merchantId))
|
query.push('experienceMerchantId=' + encodeURIComponent(merchantId))
|
||||||
query.push('name=' + encodeURIComponent(item.title || ''))
|
|
||||||
query.push('cover=' + encodeURIComponent(item.image || ''))
|
|
||||||
query.push('intro=' + encodeURIComponent(item.tags || item.subTitle || ''))
|
|
||||||
query.push('serviceTime=' + encodeURIComponent((item.rawData && item.rawData.serviceTime) || ''))
|
|
||||||
query.push('serviceEndTime=' + encodeURIComponent((item.rawData && item.rawData.serviceEndTime) || ''))
|
|
||||||
query.push('address=' + encodeURIComponent((item.rawData && item.rawData.address) || ''))
|
|
||||||
query.push('cityName=' + encodeURIComponent((item.rawData && item.rawData.cityName) || ''))
|
|
||||||
query.push('latitude=' + encodeURIComponent(item.latitude || ''))
|
|
||||||
query.push('longitude=' + encodeURIComponent(item.longitude || ''))
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pkg_product/views/experienceProjectDetail?' + query.join('&')
|
url: '/pkg_product/views/experienceProjectDetail?' + query.join('&')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user