sell-order-address-info.vue
2.57 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<template>
<div class="sell-order-address-wrapper">
<!-- 鉴定平台地址 -->
<div v-if="appraiseAddress && !isOnlyShowBack">
<div class="address-wrapper">
<i class="address-icon"></i>
<div>
<p class="consignee">{{ appraiseAddress.addressName }}</p>
<p class="area">{{ appraiseAddress.address }}</p>
<p class="mobile">{{ appraiseAddress.mobile }}</p>
</div>
</div>
<router-link
:to="{ name: 'deliverBackAddress', params: $route.params }"
class="to-back-address"
>
<div class="back-address">
<span>商品回寄地址</span>
<i class="right-icon"></i>
</div>
</router-link>
</div>
<div class="address-wrapper" v-else>
<i class="address-icon back-address-icon"></i>
<div>
<p class="consignee">
{{ `回寄地址: ${userAddress.consignee || ""}` }}
</p>
<p class="area">
{{ userAddress.area }}{{ userAddress.address || "" }}
</p>
<p class="mobile">{{ userAddress.mobile }}</p>
</div>
</div>
</div>
</template>
<script>
import { createNamespacedHelpers } from "vuex";
const { mapGetters } = createNamespacedHelpers("order/orderDetail");
export default {
props: {
isOnlyShowBack: {
type: Boolean,
default: false
}
},
computed: {
...mapGetters(["userAddress", "appraiseAddress"])
}
};
</script>
<style lang="scss" scoped>
.sell-order-address-wrapper {
.to-back-address {
display: block;
}
.back-address {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 28px;
padding-top: 40px;
border-top: 1px solid #eee;
margin-top: 40px;
.right-icon {
width: 48px;
height: 48px;
display: block;
background-size: contain;
background-repeat: no-repeat;
background-image: url("~statics/image/order/right-arrow-icon@3x.png");
}
}
.address-wrapper {
display: flex;
align-items: center;
.consignee {
font-size: 32px;
font-weight: bold;
}
.area {
color: #999;
margin: 12px 0;
}
.mobile {
font-size: 28px;
font-weight: bold;
}
.address-icon {
width: 48px;
height: 48px;
display: block;
background-repeat: no-repeat;
background-size: contain;
margin-right: 40px;
background-image: url("~statics/image/order/addr-icon@3x.png");
}
.back-address-icon {
background-image: url("~statics/image/order/blackAddress@3x.png");
}
}
}
</style>