bobo 3 anos atrás
pai
commit
0f04168cd5

+ 6 - 4
api/welfareMall.js

@@ -153,10 +153,12 @@ class WelfareMall extends request {
     return this.postRequest(`${this.BASE_URL}open/welfare-mall/personal-data`, params);
   }
 
-
-
-
-
+  /**
+   * 未使用的卡券个数
+   */
+  static async getUserCouponSnNum(params) {
+    return this.postRequest(`${this.BASE_URL}open/coupon/user-coupon-sn-num`, params);
+  }
 
 }
 

+ 1 - 1
pages/signIn/activity/activity.wxml

@@ -5,7 +5,7 @@
 <view class="sign-scroll-body" style="margin-top:{{navHeight}}px; height: {{bodyHeight}}px;">
     <view class="sign-info-extra">
         <view class="coupon_num_box">
-          <view class="my_coupon_title">我的优惠券</view>
+          <view class="my_coupon_title">签到优惠券</view>
           <view class="_num_arear">
               <text class="_num">{{notUseNum}}</text>
               <text class="_unit">张</text>

+ 2 - 2
pages/signIn/record/record.js

@@ -38,7 +38,7 @@ Page({
             isLogin: getMobileCache() != ''
         })
         wx.setNavigationBarTitle({
-            title: '我的优惠',
+            title: '签到优惠券',
           })
         if(this.data.isLogin){
             this.setData({
@@ -247,7 +247,7 @@ Page({
         this.data.stateList= [],
         this.getUserAwardCouponList()
         wx.setNavigationBarTitle({
-            title: '我的优惠',
+            title: '签到优惠券',
           })
     },
     //明细

+ 2 - 1
pages/signIn/record/record.json

@@ -1,4 +1,5 @@
 {
   "usingComponents": {},
-  "navigationBarBackgroundColor": "#BF2637"
+  "navigationBarBackgroundColor": "#BF2637",
+  "navigationBarTextStyle": "white"
 }

+ 1 - 1
pages/signIn/record/record.wxml

@@ -10,7 +10,7 @@
   <!-- 中部说明 -->
   <view class="explain flex-row">
     <view class="explain-left flex-column" catchtap="{{isLogin?'getCoupon':''}}">
-      <view class="explain-discount">我的优惠</view>
+      <view class="explain-discount">签到优惠券</view>
       <view class="{{noCoupon?'explain-column':'explain-columnNo'}}"></view>
     </view>
     <view class="explain-center flex-column" catchtap="{{isLogin?'getDetail':''}}">

+ 2 - 9
pages/welfareMall/personal/personal.js

@@ -27,17 +27,10 @@ Page({
   /**
    * 福利社
    */
-    let resBuy = await WelfareMall.getUserBuyCouponNum({
+    let resBuy = await WelfareMall.getUserCouponSnNum({
       mobile: getMobileCache(),
     });
-    let resAward = await  WelfareMall.getUserAwardCouponNum({
-      mobile: getMobileCache(),
-    });
-    let resDraw = await  WelfareMall.getUserDrawCouponNum({
-      mobile: getMobileCache(),
-    });
-    let nums = Number(resBuy.data.notUseNum)+Number(resAward.data.notUseNum)+Number(resDraw.data.notUseNum)
-    return nums;
+    return Number(resBuy.data.num)
   },
 
   // 授权手机号