buyer-confirm.vue
1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<LayoutApp :show-back="true">
<div class="body">
<TitleComp txt="确认订单" class="title-class"></TitleComp>
<AddressInfo :data="orderDetail.userAddress" class="order-item" :show-tip="false"></AddressInfo>
<ProductInfo :data="orderDetail.goodsInfo" class="product-info order-item"></ProductInfo>
<BuyerFeeInfo :data="price" class="order-item"></BuyerFeeInfo>
<OrderInfo class="order-item"></OrderInfo>
</div>
<OrderFooter class="footer"></OrderFooter>
</LayoutApp>
</template>
<script>
import ProductInfo from './components/confirm/buyer-product';
import AddressInfo from './components/confirm/address';
import TitleComp from './components/confirm/title';
import BuyerFeeInfo from './components/confirm/buyer-fee';
import OrderInfo from './components/confirm/order-info';
import OrderFooter from './components/confirm/buyer-order-footer';
import { createNamespacedHelpers } from 'vuex';
const { mapState, mapActions, mapMutations } = createNamespacedHelpers('order/orderConfirm');
export default {
name: 'OrderConfirm',
props: {
orderCode: {
type: String,
default: ''
}
},
data() {
return {
price: {}
};
},
components: {
ProductInfo,
AddressInfo,
TitleComp,
BuyerFeeInfo,
OrderInfo,
OrderFooter
},
mounted() {
this.fetchOrderDetail({ orderCode: this.orderCode });
},
computed: {
...mapState(['orderDetail'])
},
methods: {
...mapActions(['fetchOrderDetail'])
}
};
</script>
<style lang="scss" scoped>
.footer {
position: absolute;
bottom: 0;
width: 100%;
z-index: 100;
}
.body {
height: 100%;
margin: 0 40px;
padding-bottom: 100px;
overflow-y: auto;
}
.title-class {
margin-bottom: 30px;
}
.order-item {
padding-top: 40px;
padding-bottom: 40px;
border-top: 1px solid #eee;
}
.product-info {
height: 260px;
}
</style>