浏览代码

优化个人详情

yuhao 2 年之前
父节点
当前提交
93c150225e
共有 3 个文件被更改,包括 10 次插入6 次删除
  1. 4 2
      src/pages/customerMan/details/index.vue
  2. 2 0
      src/pages/customerMan/myOrder/index.vue
  3. 4 4
      vue.config.js

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

@@ -85,12 +85,12 @@
85 85
 
86 86
         <div class="myDataList coupon-num">
87 87
           次卡数量:
88
-          <span>{{ order_total.card_order }}</span>
88
+          <span @click="toOrder(2)">{{ order_total.card_num }}</span>
89 89
         </div>
90 90
 
91 91
         <div class="myDataList coupon-num">
92 92
           优惠券数量:
93
-          <span>{{ userInfo.card_num }}</span>
93
+          <span @click="toOrder(4)">{{ userInfo.card_num }}</span>
94 94
         </div>
95 95
 
96 96
         <div class="myDataList">
@@ -377,6 +377,8 @@ export default {
377 377
         activeName = "third";
378 378
       } else if (index == 2) {
379 379
         activeName = "second";
380
+      }else if(index==4){
381
+        activeName = 'fourth'
380 382
       }
381 383
       this.$router.push({
382 384
         path: "/customerMan/projectOrder",

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

@@ -546,6 +546,8 @@ export default {
546 546
       this.getCardList();
547 547
     } else if (this.activeName == "third") {
548 548
       this.getUserGoods();
549
+    }else if (this.activeName == 'fourth'){
550
+      this.getUserCoupon()
549 551
     }
550 552
   },
551 553
 

+ 4 - 4
vue.config.js

@@ -4,11 +4,11 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4 4
 
5 5
 module.exports = {
6 6
   // 测试
7
-  publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/test_pad/dist' :
8
-    process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
9
-  // 正式
10
-  // publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/dist' :
7
+  // publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/test_pad/dist' :
11 8
   //   process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
9
+  // 正式
10
+  publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/dist' :
11
+    process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
12 12
   // 设置跨域
13 13
   crossorigin: 'anonymous',
14 14
   /**