|
@@ -427,8 +427,6 @@ export default {
|
|
if (this.num > 1) {
|
|
if (this.num > 1) {
|
|
this.num--;
|
|
this.num--;
|
|
}
|
|
}
|
|
- // 告诉子组件,开始转动了
|
|
|
|
- this.$refs.roundTurntable.rotate(this.prizeIndex);
|
|
|
|
},
|
|
},
|
|
async getLuckDraw() {
|
|
async getLuckDraw() {
|
|
// 设置在哪里停下,应该与后台交互,这里随机抽取0~5
|
|
// 设置在哪里停下,应该与后台交互,这里随机抽取0~5
|
|
@@ -464,6 +462,8 @@ export default {
|
|
this.phoneType = res.data.phoneType
|
|
this.phoneType = res.data.phoneType
|
|
this.title = res.data.title
|
|
this.title = res.data.title
|
|
this.prizeIndex = res.data.luckDrawType === 1 ? 5 : 2;
|
|
this.prizeIndex = res.data.luckDrawType === 1 ? 5 : 2;
|
|
|
|
+ // 告诉子组件,开始转动了
|
|
|
|
+ this.$refs.roundTurntable.rotate(this.prizeIndex);
|
|
if (this.num === 0) {
|
|
if (this.num === 0) {
|
|
this.showPay = true
|
|
this.showPay = true
|
|
}
|
|
}
|
|
@@ -526,10 +526,10 @@ export default {
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (this.num === 0) {
|
|
|
|
- this.showPay = true;
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.num === 0) {
|
|
|
|
+ // this.showPay = true;
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
return true;
|
|
return true;
|
|
},
|
|
},
|
|
closed() {
|
|
closed() {
|