Fix:5205 【商城小程序】县域抽奖活动开始时,县城详情页简介处未替换成抽奖入口图片

This commit is contained in:
LinCyJang
2026-05-07 01:08:11 +08:00
parent 5d7c3ac0c0
commit aa44879dff
+35 -1
View File
@@ -92,7 +92,18 @@
</view> </view>
<view class="inn-signature-wrap"> <view class="inn-signature-wrap">
<view class="triangle"></view> <view class="triangle"></view>
<view class="inn-signature"> <view
v-if="detail.isDrawActivityStart && detail.drawActivityImage"
class="inn-signature draw-activity-entry"
@click="goDrawActivity"
>
<image
:src="detail.drawActivityImage"
mode="widthFix"
class="draw-activity-image"
/>
</view>
<view v-else class="inn-signature">
{{ inn.shopIntro }} {{ inn.shopIntro }}
</view> </view>
<view class="share-btn" @click="changeShare"> <view class="share-btn" @click="changeShare">
@@ -997,6 +1008,7 @@ export default {
shopList: [], shopList: [],
shopTypeList: [], shopTypeList: [],
shopTypeActive: '', shopTypeActive: '',
detail: {}
} }
}, },
onShareAppMessage() { onShareAppMessage() {
@@ -1307,6 +1319,7 @@ export default {
getCountyFamousCityDetail(this.id).then(res => { getCountyFamousCityDetail(this.id).then(res => {
const { success, data } = res const { success, data } = res
if (success) { if (success) {
this.detail = data
this.countyId = data.countyId this.countyId = data.countyId
const products = data.products || [] const products = data.products || []
const farmerShops = data.farmerShops || [] const farmerShops = data.farmerShops || []
@@ -1639,6 +1652,19 @@ export default {
toggleCountyIntro() { toggleCountyIntro() {
this.toggleCountyIntroStatus = !this.toggleCountyIntroStatus this.toggleCountyIntroStatus = !this.toggleCountyIntroStatus
}, },
goDrawActivity() {
const activityId = Number(this.detail.drawActivityId) || 0
if (!activityId) {
uni.showToast({
title: '活动暂未配置',
icon: 'none'
})
return
}
uni.navigateTo({
url: `/pkg-video/views/county-lottery?activityId=${activityId}`
})
},
showPic(index) { showPic(index) {
uni.previewImage({ uni.previewImage({
current: index, current: index,
@@ -2024,6 +2050,14 @@ export default {
background: rgba(243,243,246,0.39); background: rgba(243,243,246,0.39);
box-shadow: 0px 6px 12px rgba(0,0,0,0.12); box-shadow: 0px 6px 12px rgba(0,0,0,0.12);
} }
.draw-activity-entry {
padding: 0;
}
.draw-activity-image {
width: 100%;
display: block;
border-radius: 8rpx;
}
.share-btn { .share-btn {
position: absolute; position: absolute;
right: 0; right: 0;