Преглед на файлове

pref: 【客户管理】优化

double преди 2 години
родител
ревизия
37046da3b6
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 4 2
      src/pages/customerMan/details/index.vue
  2. 2 0
      src/pages/customerMan/myOrder/index.vue

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

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

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

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