address.vue
1.58 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
<template>
<div class="address-wrapper" @click="onClick">
<div v-if="data" class="address-info">
<div class="index">
<i class="iconfont iconaddress icon-size2"></i>
</div>
<div class="user-info">
<div class="name">{{data.consignee}}</div>
<div class="area">{{data.area}}</div>
<div class="area">{{data.address}}</div>
<div class="mobile">{{data.mobile}}</div>
</div>
</div>
<template v-else>
<div class="title"><i class="iconfont iconaddress icon-size"></i>添加地址</div>
<div class="tip" v-if="showTip">商品不符合平检查验标准时,将到付寄还给您</div>
</template>
</div>
</template>
<script>
export default {
name: 'OrderAddress',
props: {
data: {
type: Object,
default() {
return null;
}
},
showTip: {
type: Boolean,
default: true
}
},
methods: {
onClick() {
this.$router.push({
name: 'address'
});
}
}
};
</script>
<style lang="scss" scoped>
.address-wrapper {
}
.title {
font-size: 40px;
font-weight: bold;
text-align: center;
margin-bottom: 12px;
}
.index {
display: flex;
align-items: center;
}
.icon-size {
font-size: 34px;
margin-right: 10px;
}
.icon-size2 {
font-size: 38px;
}
.index {
margin-right: 40px;
}
.tip {
font-size: 24px;
color: #999;
text-align: center;
}
.address-info {
display: flex;
}
.name {
font-size: 32px;
margin-bottom: 12px;
}
.area {
font-size: 24px;
color: #999;
}
.mobile {
font-size: 28px;
margin-top: 12px;
}
</style>