Fix:5205 【商城小程序】县域抽奖活动开始时,县城详情页简介处未替换成抽奖入口图片
This commit is contained in:
@@ -92,7 +92,18 @@
|
||||
</view>
|
||||
<view class="inn-signature-wrap">
|
||||
<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 }}
|
||||
</view>
|
||||
<view class="share-btn" @click="changeShare">
|
||||
@@ -997,6 +1008,7 @@ export default {
|
||||
shopList: [],
|
||||
shopTypeList: [],
|
||||
shopTypeActive: '',
|
||||
detail: {}
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
@@ -1307,6 +1319,7 @@ export default {
|
||||
getCountyFamousCityDetail(this.id).then(res => {
|
||||
const { success, data } = res
|
||||
if (success) {
|
||||
this.detail = data
|
||||
this.countyId = data.countyId
|
||||
const products = data.products || []
|
||||
const farmerShops = data.farmerShops || []
|
||||
@@ -1639,6 +1652,19 @@ export default {
|
||||
toggleCountyIntro() {
|
||||
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) {
|
||||
uni.previewImage({
|
||||
current: index,
|
||||
@@ -2024,6 +2050,14 @@ export default {
|
||||
background: rgba(243,243,246,0.39);
|
||||
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 {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
||||
Reference in New Issue
Block a user