Commit 86d8fbd2 by Lays-lzq

feat: 内嵌抽奖也增加信息限制判断

parent 8474e4eb
...@@ -231,7 +231,8 @@ export default { ...@@ -231,7 +231,8 @@ export default {
uin: 'users/uin', uin: 'users/uin',
isLogin: 'users/isLogin', isLogin: 'users/isLogin',
lotteryInfo: 'lottery/lotteryInfo', lotteryInfo: 'lottery/lotteryInfo',
isBindPhone: 'users/isBindPhone' isBindPhone: 'users/isBindPhone',
premise: 'lottery/premise'
}), }),
prizeList() { prizeList() {
return this.lotteryInfo.prizeConfigs return this.lotteryInfo.prizeConfigs
...@@ -330,6 +331,17 @@ export default { ...@@ -330,6 +331,17 @@ export default {
}) })
return return
} }
// 前置条件未达成
if (!this.premise) {
this.$toast({
message: '请先填写信息',
duration: 1500,
onClose: () => {
Bus.$emit('showConfig')
}
})
return
}
// 次数不足 // 次数不足
if (this.lotteryInfo.userTimes <= 0) { if (this.lotteryInfo.userTimes <= 0) {
this.$toast('抽奖次数已用完') this.$toast('抽奖次数已用完')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment