bobo 3 年之前
父节点
当前提交
487be204a2
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 9 0
      pages/luckDraw/detail.js
  2. 1 1
      pages/luckDraw/detail.wxml

+ 9 - 0
pages/luckDraw/detail.js

@@ -206,6 +206,7 @@ Page({
         }).catch(_ => {
             this.data.stopNotify = true
             console.log(_)
+            this.getDrawTimes()
         })
     },
 
@@ -248,6 +249,13 @@ Page({
                     noHitResult,
                     isHit: 0,
                 })
+                if (this.data.hitPos == -1) {
+                    this.data.stopNotify = true
+                    this.setData({
+                        showNoHitPrizeDlg: true
+                    })
+                    this.isLock = false
+                }
             }
         }
         // 重刷次数
@@ -263,6 +271,7 @@ Page({
     // 授权手机号
     getPhoneNumber(e) {
         getPhoneNumberSync(e, _ => {
+            this.setData({ isLogin: true })
             this.getDrawTimes()
         })
     },

+ 1 - 1
pages/luckDraw/detail.wxml

@@ -22,7 +22,7 @@
                         <image wx:if="item.iconPath" src="{{item.iconUrl}}"/>
                     </view>
                     <view class="_text">
-                    <text>{{item.text}}</text>
+                    <text></text>
                     </view>
                     <image class="_bg" src="{{item.active ? '/images/luck-draw/gift-booth-active.png': '/images/luck-draw/gift-booth.png'}}" />
                 </view>