kk.shi hace 3 años
padre
commit
8c1a23532a
Se han modificado 1 ficheros con 3 adiciones y 5 borrados
  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()
     }
   },