|
@@ -26,7 +26,14 @@
|
|
|
|
|
|
<!-- 弹窗 -->
|
|
<!-- 弹窗 -->
|
|
<uni-popup ref="popup" type="center">
|
|
<uni-popup ref="popup" type="center">
|
|
- <view class="popup">
|
|
|
|
|
|
+ <view v-if="this.hasLotteryCount <= 0" class="popup" style="justify-content: space-around">
|
|
|
|
+ <view>
|
|
|
|
+ <view>很遗憾!</view>
|
|
|
|
+ <view>今日抽奖次数已用光</view>
|
|
|
|
+ </view>
|
|
|
|
+ <img src="../../static/lottery/noChance.png" />
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else class="popup">
|
|
<view>{{ form.resultGoodName }}</view>
|
|
<view>{{ form.resultGoodName }}</view>
|
|
<img :src="form.resultGoodPic" />
|
|
<img :src="form.resultGoodPic" />
|
|
<button v-if="form.resultGoodType === 4" @click="getSubmit">领取</button>
|
|
<button v-if="form.resultGoodType === 4" @click="getSubmit">领取</button>
|
|
@@ -149,10 +156,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- uni.showToast({
|
|
|
|
- icon: 'error',
|
|
|
|
- title: '今日抽奖次数已用光'
|
|
|
|
- })
|
|
|
|
|
|
+ this.$refs.popup.open()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 抽奖结束触发回调
|
|
// 抽奖结束触发回调
|