address.vue
1.4 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
<template>
<!-- 收获地址 -->
<view class="addressBox flexJ">
<view class="right">
<image src="/static/shopCarIc/redAddress.png" mode=""></image>
<view class="area">
<text>{{!isOrder ? adress.diqu + adress.address : adress.sh_diqu + adress.sh_address}}</text>
<view class="name">{{!isOrder ? adress.name : adress.sh_name}}
{{!isOrder ? adress.mobile.slice(0,3) + '****' +adress.mobile.slice(-4)
: adress.sh_mobile.slice(0,3) + '****' + adress.sh_mobile.slice(-4)
}}
</view>
</view>
</view>
<image src="/static/mineIc/gayRight.png" mode=""></image>
</view>
</template>
<script setup>
import { ref,reactive } from 'vue'
import {onShow,onLoad} from '@dcloudio/uni-app'
const props = defineProps({
adress:{
type:Object,
default:{}
},
isOrder:{
type:Boolean,
default:false
}
})
</script>
<style lang="scss">
.addressBox {
margin-bottom: 20rpx;
padding: 32rpx 20rpx 31rpx 32rpx;
border-radius: 24rpx;
background: #fff;
.right {
display: flex;
image {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
margin-top: 9rpx;
}
.area {
text {
color: #323233ff;
font-size: 28rpx;
font-weight: 700;
line-height: 36rpx;
}
.name {
color: #646566ff;
font-size: 24rpx;
margin-top: 9rpx;
}
}
}
image {
width: 16rpx;
height: 32rpx;
}
}
</style>