Browse Source

feat:订单详情增加优惠金额字段

yangfeng 3 years ago
parent
commit
ae0388764c
2 changed files with 10 additions and 3 deletions
  1. 7 0
      src/views/order/detail.vue
  2. 3 3
      vue.config.js

+ 7 - 0
src/views/order/detail.vue

@@ -106,6 +106,10 @@
                   <span class="card-item-l">产品类型:</span>
                   <span class="card-item-r">{{ orderInfo.productType }}</span>
                 </div>
+                <div class="j-card-item" v-if="orderInfo.discount_price > 0">
+                  <span class="card-item-l">优惠金额:</span>
+                  <span class="card-item-r red-color">- &yen; {{ orderInfo.discount_price | fen2Yuan}} 元</span>
+                </div>
                 <div class="j-card-item">
                   <span class="card-item-l">实付金额:</span>
                   <span class="card-item-r">&yen; {{ orderInfo.payMoney | fen2Yuan | formatPrice(-1, true) }} 元</span>
@@ -622,6 +626,9 @@ export default class OrderDetail extends Vue {
           color: #171826;
           word-break: break-all;
         }
+        .red-color{
+          color: #FB483D;
+        }
       }
     }
   }

+ 3 - 3
vue.config.js

@@ -52,7 +52,7 @@ module.exports = {
     disableHostCheck: true,
     proxy: {
       '^/datareport/api': {
-        target: 'http://web2-jytest.jianyu360.cn',
+        target: 'app5://web3-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug',
         pathRewrite: {
@@ -60,7 +60,7 @@ module.exports = {
         }
       },
       '^/jypay': {
-        target: 'http://web2-jytest.jianyu360.cn',
+        target: 'http://app5-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug',
         pathRewrite: {
@@ -68,7 +68,7 @@ module.exports = {
         }
       },
       '^/subscribepay': {
-        target: 'http://web2-jytest.jianyu360.cn',
+        target: 'http://app5-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug',
         pathRewrite: {