Authored by lea guo

订单类表

1 <template> 1 <template>
  2 + <layout-app>
2 <div class="order-detail-wrapper"> 3 <div class="order-detail-wrapper">
3 <div class="content"> 4 <div class="content">
4 <!-- 状态信息 --> 5 <!-- 状态信息 -->
@@ -66,6 +67,7 @@ @@ -66,6 +67,7 @@
66 </template> 67 </template>
67 </detail-footer> 68 </detail-footer>
68 </div> 69 </div>
  70 + </layout-app>
69 </template> 71 </template>
70 72
71 <script> 73 <script>
1 <template> 1 <template>
  2 + <layout-app>
2 <div class="order-detail-wrapper"> 3 <div class="order-detail-wrapper">
3 <div class="content"> 4 <div class="content">
4 <!-- 状态信息 --> 5 <!-- 状态信息 -->
@@ -27,12 +28,12 @@ @@ -27,12 +28,12 @@
27 <div class="price-info item-wrapper"> 28 <div class="price-info item-wrapper">
28 <p> 29 <p>
29 <span class="label">平台费用:</span> 30 <span class="label">平台费用:</span>
30 - <span>{{ orderDetail.platformFee.amount }}</span> 31 + <span>{{ platformFee.amount }}</span>
31 </p> 32 </p>
32 <p class="delivery-fee"> 33 <p class="delivery-fee">
33 <span class="label" 34 <span class="label"
34 >银行转账费({{ 35 >银行转账费({{
35 - parseInt(orderDetail.platformFee.payChannelPercentage) 36 + parseInt(platformFee.payChannelPercentage)
36 }}%):</span 37 }}%):</span
37 > 38 >
38 <span>{{ orderDetail.bankTransferFee }}</span> 39 <span>{{ orderDetail.bankTransferFee }}</span>
@@ -75,6 +76,7 @@ @@ -75,6 +76,7 @@
75 </template> 76 </template>
76 </detail-footer> 77 </detail-footer>
77 </div> 78 </div>
  79 + </layout-app>
78 </template> 80 </template>
79 81
80 <script> 82 <script>
@@ -105,7 +107,12 @@ export default { @@ -105,7 +107,12 @@ export default {
105 }, 107 },
106 computed: { 108 computed: {
107 ...mapState(["orderDetail"]), 109 ...mapState(["orderDetail"]),
108 - ...mapGetters(["lastExpressInfo", "priceInfo", "statusDetail"]) 110 + ...mapGetters([
  111 + "lastExpressInfo",
  112 + "priceInfo",
  113 + "statusDetail",
  114 + "platformFee"
  115 + ])
109 }, 116 },
110 methods: { 117 methods: {
111 ...mapActions(["fetchOrderDetail"]) 118 ...mapActions(["fetchOrderDetail"])
1 <template> 1 <template>
  2 + <layout-app>
2 <div class="content-wrapper"> 3 <div class="content-wrapper">
3 <scroll 4 <scroll
4 @pulling-up="fetchData" 5 @pulling-up="fetchData"
@@ -18,6 +19,7 @@ @@ -18,6 +19,7 @@
18 </scroll> 19 </scroll>
19 <empty-list v-show="isShowEmpty" /> 20 <empty-list v-show="isShowEmpty" />
20 </div> 21 </div>
  22 + </layout-app>
21 </template> 23 </template>
22 24
23 <script> 25 <script>
1 <template> 1 <template>
  2 + <layout-app>
2 <div class="content-wrapper"> 3 <div class="content-wrapper">
3 <status-nav /> 4 <status-nav />
4 5
@@ -21,6 +22,7 @@ @@ -21,6 +22,7 @@
21 22
22 <empty-list v-show="isShowEmpty" /> 23 <empty-list v-show="isShowEmpty" />
23 </div> 24 </div>
  25 + </layout-app>
24 </template> 26 </template>
25 27
26 <script> 28 <script>
@@ -16,6 +16,8 @@ export default function() { @@ -16,6 +16,8 @@ export default function() {
16 goodsInfo: state => state.orderDetail.goodsInfo || {}, // 商品信息 16 goodsInfo: state => state.orderDetail.goodsInfo || {}, // 商品信息
17 priceInfo: state => state.orderDetail.priceInfo || {}, // 价格信息 17 priceInfo: state => state.orderDetail.priceInfo || {}, // 价格信息
18 actionList: state => state.orderDetail.buttons || {}, // 允许操作 18 actionList: state => state.orderDetail.buttons || {}, // 允许操作
  19 + // 卖家订单价格字段
  20 + platformFee: state => state.orderDetail.platformFee || {},
19 }, 21 },
20 actions: { 22 actions: {
21 /** 23 /**