抽奖
This commit is contained in:
@@ -218,6 +218,8 @@ export default {
|
|||||||
this.getDetail()
|
this.getDetail()
|
||||||
this.$u.toast('绑定成功')
|
this.$u.toast('绑定成功')
|
||||||
}
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
this.$u.toast(err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
@@ -243,7 +245,7 @@ export default {
|
|||||||
this.awardNumber = res.data
|
this.awardNumber = res.data
|
||||||
this.onStart()
|
this.onStart()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$u.toast(`恭喜抽中${this.activeInfo.prizes[this.awardNumber-1].name}!`)
|
this.$u.toast(this.activeInfo.prizes[this.awardNumber-1].defaultPrize == 1 ? `很遗憾您抽中了${this.activeInfo.prizes[this.awardNumber-1].name}` : `恭喜抽中${this.activeInfo.prizes[this.awardNumber-1].name}!`)
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
this.getAwardedList()
|
this.getAwardedList()
|
||||||
}, 2000)}
|
}, 2000)}
|
||||||
@@ -681,6 +683,7 @@ export default {
|
|||||||
bottom: 200px;
|
bottom: 200px;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
width: 160px;
|
width: 160px;
|
||||||
|
z-index: 999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user