소스 검색

列表同步

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()
     }
   },