Explorar o código

为0 不转动

bobo %!s(int64=3) %!d(string=hai) anos
pai
achega
b38291fec3
Modificáronse 1 ficheiros con 10 adicións e 4 borrados
  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() {