瀏覽代碼

修改bug

huangxiaojing 2 年之前
父節點
當前提交
08d0e8341b
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      pages/activity/lottery/index.vue

+ 6 - 6
pages/activity/lottery/index.vue

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