|
@@ -211,7 +211,7 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
showLottery(newValue, oldValue) {
|
|
showLottery(newValue, oldValue) {
|
|
if(!newValue&&(this.winTypes=='win_0'||this.winTypes=='win_2'||this.winTypes=='win_3')){
|
|
if(!newValue&&(this.winTypes=='win_0'||this.winTypes=='win_2'||this.winTypes=='win_3')){
|
|
- // this.$refs.lottery.resetAngle()
|
|
|
|
|
|
+ // this.$refs.lottery.onRotateStart()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -311,7 +311,7 @@ export default {
|
|
this.showLottery = true
|
|
this.showLottery = true
|
|
this.winTypes = winTypes
|
|
this.winTypes = winTypes
|
|
this.prizeIndex = -1
|
|
this.prizeIndex = -1
|
|
- clearCacheFile()
|
|
|
|
|
|
+ // clearCacheFile()
|
|
},
|
|
},
|
|
// 本次抽奖开始
|
|
// 本次抽奖开始
|
|
handleDrawStart() {
|
|
handleDrawStart() {
|
|
@@ -333,8 +333,10 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ this.getTakeOut()
|
|
|
|
+ },
|
|
|
|
+ getTakeOut(){
|
|
let list = [...this.prizeList];
|
|
let list = [...this.prizeList];
|
|
-
|
|
|
|
takeOut({id: this.luckDraw.luckyDrawNo}).then(res => {
|
|
takeOut({id: this.luckDraw.luckyDrawNo}).then(res => {
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -401,12 +403,8 @@ export default {
|
|
buyDrawTimes(params).then(res => {
|
|
buyDrawTimes(params).then(res => {
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
this.showLottery = false
|
|
this.showLottery = false
|
|
- uni.showToast({
|
|
|
|
- icon: 'none',
|
|
|
|
- title: '点击开始抽奖'
|
|
|
|
- })
|
|
|
|
- // 查询免费抽奖次数
|
|
|
|
- this.getCustomerTimes()
|
|
|
|
|
|
+ // 开始抽奖
|
|
|
|
+ this.getTakeOut()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|