Authored by lea guo

订单类表

<template>
<layout-app>
<div class="order-detail-wrapper">
<div class="content">
<!-- 状态信息 -->
... ... @@ -66,6 +67,7 @@
</template>
</detail-footer>
</div>
</layout-app>
</template>
<script>
... ...
<template>
<layout-app>
<div class="order-detail-wrapper">
<div class="content">
<!-- 状态信息 -->
... ... @@ -27,12 +28,12 @@
<div class="price-info item-wrapper">
<p>
<span class="label">平台费用:</span>
<span>{{ orderDetail.platformFee.amount }}</span>
<span>{{ platformFee.amount }}</span>
</p>
<p class="delivery-fee">
<span class="label"
>银行转账费({{
parseInt(orderDetail.platformFee.payChannelPercentage)
parseInt(platformFee.payChannelPercentage)
}}%):</span
>
<span>{{ orderDetail.bankTransferFee }}</span>
... ... @@ -75,6 +76,7 @@
</template>
</detail-footer>
</div>
</layout-app>
</template>
<script>
... ... @@ -105,7 +107,12 @@ export default {
},
computed: {
...mapState(["orderDetail"]),
...mapGetters(["lastExpressInfo", "priceInfo", "statusDetail"])
...mapGetters([
"lastExpressInfo",
"priceInfo",
"statusDetail",
"platformFee"
])
},
methods: {
...mapActions(["fetchOrderDetail"])
... ...
<template>
<layout-app>
<div class="content-wrapper">
<scroll
@pulling-up="fetchData"
... ... @@ -18,6 +19,7 @@
</scroll>
<empty-list v-show="isShowEmpty" />
</div>
</layout-app>
</template>
<script>
... ...
<template>
<layout-app>
<div class="content-wrapper">
<status-nav />
... ... @@ -21,6 +22,7 @@
<empty-list v-show="isShowEmpty" />
</div>
</layout-app>
</template>
<script>
... ...
... ... @@ -16,6 +16,8 @@ export default function() {
goodsInfo: state => state.orderDetail.goodsInfo || {}, // 商品信息
priceInfo: state => state.orderDetail.priceInfo || {}, // 价格信息
actionList: state => state.orderDetail.buttons || {}, // 允许操作
// 卖家订单价格字段
platformFee: state => state.orderDetail.platformFee || {},
},
actions: {
/**
... ...