瀏覽代碼

为0 不转动

bobo 3 年之前
父節點
當前提交
b38291fec3
共有 1 個文件被更改,包括 10 次插入4 次删除
  1. 10 4
      pages/luckDraw/detail.js

+ 10 - 4
pages/luckDraw/detail.js

@@ -190,12 +190,18 @@ Page({
         this.data.hitTime = 0
         this.data.isHit = null;
         this.data.stopNotify = false
-        this.startTurnAnimationFast()
-        // 开始调用后台
-        setTimeout(_ => {
+        if (this.isSniffAgain) {
             this.data.hitTime = new Date().getTime()
             this.requestDrawPrize()
-        }, (Math.random() + 1)*1000)
+            this.isLock = false;
+        } else {
+            this.startTurnAnimationFast()
+            // 开始调用后台
+            setTimeout(_ => {
+                this.data.hitTime = new Date().getTime()
+                this.requestDrawPrize()
+            }, (Math.random() + 1)*1000)
+        }
     },
     
     requestDrawPrize: function() {