소스 검색

为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() {