kk.shi пре 3 година
родитељ
комит
8c1a23532a
1 измењених фајлова са 3 додато и 5 уклоњено
  1. 3 5
      pages/integral/integral.js

+ 3 - 5
pages/integral/integral.js

@@ -87,6 +87,8 @@ Page({
         isIphoneX:_self.isIphone()
       })
     this.getBannerList()
+    // 获取优惠券列表
+    this.getCouponList()
     if(getMobileCache() != ''){
         Integralinfo.getBalance({
             mobile: getMobileCache(), 
@@ -105,15 +107,11 @@ Page({
                     mobile: getMobileCache(),
                     integralNum: arr.data,
                 })
-                // 获取优惠券列表
-                this.getCouponList()
+               
             }
         }).catch(error=>{
             console.log(error);
         })
-    } else {
-        // 获取优惠券列表
-        this.getCouponList()
     }
   },