|
@@ -60,7 +60,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 转盘浮动图片 -->
|
|
|
- <view class="luckwheel-fixed" @click="toLuckDraw()">
|
|
|
+ <view class="luckwheel-fixed" v-if="showFixedLottery" @click="toLuckDraw()">
|
|
|
<u-image width="100rpx" height="100rpx" src="/static/luckwheel-fixed1.gif"></u-image>
|
|
|
</view>
|
|
|
<!-- 抽奖活动弹框 -->
|
|
@@ -102,6 +102,7 @@
|
|
|
hasLogin: false,
|
|
|
userData: null,
|
|
|
showLottery: false, // 是否显示抽奖弹框
|
|
|
+ showFixedLottery: false
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -195,6 +196,7 @@
|
|
|
// 判断活动是否过期
|
|
|
let a = moment().isBetween(res.data.activeStartTime,res.data.activeEndTime,'days','[]')
|
|
|
if(a){
|
|
|
+ this.showFixedLottery = true
|
|
|
// 判断是否有免费抽奖次数
|
|
|
findCustomerTimes({id:res.data.luckyDrawNo}).then(res => {
|
|
|
let reTimes = 0
|
|
@@ -204,6 +206,8 @@
|
|
|
this.$u.vuex('vuex_LuckDrawTimes',reTimes)
|
|
|
this.showLottery = reTimes > 0
|
|
|
})
|
|
|
+ }else{
|
|
|
+ this.showFixedLottery = false
|
|
|
}
|
|
|
}else{
|
|
|
this.$u.vuex('vuex_LuckDraw',null)
|