From 9a1f737988aca4fc7c22e0f3f8e5d0d159c7e1ae Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Thu, 2 Apr 2026 19:17:02 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5048=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=82=B9=E5=87=BB=E4=BD=93?= =?UTF-8?q?=E9=AA=8C=E5=BA=97=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E5=AF=B9=E5=BA=94=E4=BD=93=E9=AA=8C=E5=BA=97=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=84=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/experienceCoupon.vue | 33 ++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/pkg_product/views/experienceCoupon.vue b/pkg_product/views/experienceCoupon.vue index 8a26086..7c65849 100644 --- a/pkg_product/views/experienceCoupon.vue +++ b/pkg_product/views/experienceCoupon.vue @@ -24,7 +24,8 @@ export default { experienceList: [], selectedProjectIds: [], userLatitude: null, - userLongitude: null + userLongitude: null, + merId: '' } }, computed: { @@ -131,6 +132,7 @@ export default { startTime: this.formatDateByTimestamp(data.startTime), endTime: this.formatDateByTimestamp(data.endTime) } + this.merId = latest.merId || '' this.setActiveCoupon(latest) if (!this.couponList.length) { this.couponList = [latest] @@ -195,6 +197,7 @@ export default { return { id, + experienceMerchantId: item.merId || item.experienceMerchantId || item.storeId || '', title: item.name || '', subTitle: item.projectName || item.intro || '', distance, @@ -204,7 +207,8 @@ export default { tags: item.intro || '', categoryId: this.activeCategoryId === 'all' ? 'all' : this.activeCategoryId, image: item.image || item.cover || '', - selected: selectedSet.has(id) + selected: selectedSet.has(id), + rawData: item } }) this.selectedCount = this.initialUsedCount + this.selectedProjectIds.length @@ -238,6 +242,30 @@ export default { } this.selectedCount = this.initialUsedCount + this.selectedProjectIds.length }, + goExperienceStoreDetail(item) { + const merchantId = this.merId + if (!merchantId) { + uni.showToast({ + title: '未找到体验店信息', + icon: 'none' + }) + return + } + const query = [] + 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({ + url: '/pkg_product/views/experienceProjectDetail?' + query.join('&') + }) + }, submitOrder() { if (!this.activeCouponId) { uni.showToast({ @@ -384,6 +412,7 @@ export default { v-for="item in filteredList" :key="item.id" class="card" + @click="goExperienceStoreDetail(item)" >