Browse Source

无限赏,未登录不调用获取连击数

chenrong 1 năm trước cách đây
mục cha
commit
6f11601d0a
1 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 8 8
      pages/drawCard_infinite/drawCard_infinite.vue

+ 8 - 8
pages/drawCard_infinite/drawCard_infinite.vue

@@ -67,9 +67,9 @@
       <view class="boxContent">
         <view class="boxLeft">
           <view class="row1">
-            <view class="text">连击 × {{ combos }}</view>
+            <view class="text">连击 × {{ combos || 0 }}</view>
             <view class="text">
-              {{ combos }}
+              {{ combos || 0 }}
               <span class="text1">/300</span>
             </view>
           </view>
@@ -249,7 +249,6 @@ export default {
       this.raffleId = query.id
       this.init()
     }
-    this.paymentSuccess()
   },
   data() {
     return {
@@ -299,14 +298,15 @@ export default {
       // 获取卡包详情
       this.getDetail()
       this.tabClick(1)
-      this.getCombos()
-      //ssssss
+      // 判断是否登录
+      let hasLogin = getApp().globalData.hasLogin
+      if (hasLogin) {
+        this.getCombos()
+      }
     },
     // 支付成功后回调
     paymentSuccess() {
-      let _this = this
-      this.getCombos()
-      this.tabClick(1)
+      this.init()
     },
     clickDrawCard() {
       this.$refs.paymentPopup.show(this.raffleId, this.selectIndex, this.detail)