Feat(首页):新增抽奖窗口显示逻辑,没有抽奖次数不显示

This commit is contained in:
linxi
2024-08-29 10:39:44 +08:00
parent 3527e4c8c7
commit 223bcf6ac8
+4 -2
View File
@@ -207,7 +207,7 @@
</view> </view>
<!-- v9 老用户弹窗 --> <!-- v9 老用户弹窗 -->
<u-popup <u-popup
:show="isOldUser && oldUserPopup.image" :show="isOldUser && oldUserPopup.image && lotteryCanDraw"
mode="center" mode="center"
bgColor="transparent" bgColor="transparent"
> >
@@ -294,7 +294,8 @@ export default {
// 节日专题 // 节日专题
contentFestival: {}, contentFestival: {},
pageKeyId: Object.freeze('appIndex'), pageKeyId: Object.freeze('appIndex'),
scrollTop: 0 scrollTop: 0,
lotteryCanDraw: false
} }
}, },
onLoad() { onLoad() {
@@ -371,6 +372,7 @@ export default {
_this.$set(_this, 'contentFestival', data.contentFestivalV2) _this.$set(_this, 'contentFestival', data.contentFestivalV2)
_this.bastLeftList = [] _this.bastLeftList = []
_this.bastRightList = [] _this.bastRightList = []
_this.lotteryCanDraw = data.lotteryCanDraw
for (let i = 0; i < data.bastList.length; i++) { for (let i = 0; i < data.bastList.length; i++) {
if (i % 2 === 0) { if (i % 2 === 0) {
// 店铺排名 // 店铺排名