|
@@ -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() {
|
|
@@ -204,8 +210,10 @@ Page({
|
|
|
this.hitPrizeMapData(res.data)
|
|
|
}
|
|
|
}).catch(_ => {
|
|
|
- this.data.stopNotify = true
|
|
|
console.log(_)
|
|
|
+ this.data.stopNotify = true
|
|
|
+ this.isLock = false
|
|
|
+ this.getDrawTimes()
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -248,6 +256,13 @@ Page({
|
|
|
noHitResult,
|
|
|
isHit: 0,
|
|
|
})
|
|
|
+ if (this.data.hitPos == -1) {
|
|
|
+ this.data.stopNotify = true
|
|
|
+ this.setData({
|
|
|
+ showNoHitPrizeDlg: true
|
|
|
+ })
|
|
|
+ this.isLock = false
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// 重刷次数
|
|
@@ -263,6 +278,7 @@ Page({
|
|
|
// 授权手机号
|
|
|
getPhoneNumber(e) {
|
|
|
getPhoneNumberSync(e, _ => {
|
|
|
+ this.setData({ isLogin: true })
|
|
|
this.getDrawTimes()
|
|
|
})
|
|
|
},
|