Browse Source

pref: 【客户管理】优化

double 2 years ago
parent
commit
37046da3b6

+ 4 - 2
src/pages/customerMan/details/index.vue

@@ -49,7 +49,7 @@
49 49
           <span>{{userInfo.store_name}}</span>
50 50
         </div>
51 51
 
52
-        <div class="myDataList coupon-num">
52
+        <div class="myDataList coupon-num" @click="toOrder(4)">
53 53
           优惠券数量:
54 54
           <span>{{userInfo.card_num}}</span>
55 55
         </div>
@@ -307,7 +307,9 @@ export default {
307 307
     },
308 308
     toOrder (index) {
309 309
       let activeName = 'first'
310
-      if (index == 3) {
310
+      if (index == 4) {
311
+        activeName = 'fourth'
312
+      } else if (index == 3) {
311 313
         activeName = 'third'
312 314
       } else if (index == 2) {
313 315
         activeName = 'second'

+ 2 - 0
src/pages/customerMan/myOrder/index.vue

@@ -408,6 +408,8 @@ export default {
408 408
       this.getCardOrders()
409 409
     } else if (this.activeName == 'third') {
410 410
       this.getUserGoods();
411
+    } else if (this.activeName == 'fourth') {
412
+      this.getUserCoupon();
411 413
     }
412 414
   },
413 415