|
@@ -205,7 +205,7 @@ export default {
|
|
|
weightTotal: 0,
|
|
|
// 权重数组
|
|
|
weightArr: [],
|
|
|
- isFirstLoad: false
|
|
|
+ isSocktOut: false // 是否正在抽奖
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -315,6 +315,9 @@ export default {
|
|
|
},
|
|
|
// 本次抽奖开始
|
|
|
handleDrawStart() {
|
|
|
+ if(this.isSocktOut){
|
|
|
+ return
|
|
|
+ }
|
|
|
this.targetName = '';
|
|
|
this.targetPrize = null;
|
|
|
// 抽奖次数用完了
|
|
@@ -333,6 +336,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ this.isSocktOut = true
|
|
|
this.getTakeOut()
|
|
|
},
|
|
|
getTakeOut(){
|
|
@@ -383,6 +387,9 @@ export default {
|
|
|
this.getCustomerTimes()
|
|
|
this.getDrawList()
|
|
|
this.showLottery = true
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.isSocktOut = false
|
|
|
+ },100)
|
|
|
},
|
|
|
// 抽奖转盘绘制完成
|
|
|
handleDrawFinish(res) {
|