cb-biz-ui 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<text class="text">{{ title }}</text>
|
|
5
5
|
<slot name="tools"></slot>
|
|
6
6
|
</view>
|
|
7
|
-
<view class="content">
|
|
7
|
+
<view class="content" v-if="data.addressId">
|
|
8
8
|
<view class="user">
|
|
9
9
|
<view class="user-info">
|
|
10
10
|
<text>{{ data.receiverName }}</text>
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
<ui-icon name="arrowright" :size="23" color="#B3BCCD"></ui-icon>
|
|
20
20
|
</view>
|
|
21
21
|
</view>
|
|
22
|
+
<view class="error-content" v-else>
|
|
23
|
+
<view class="tip">暂无收获地址</view>
|
|
24
|
+
<view @click="handleAdd" class="btn">新增地址</view>
|
|
25
|
+
</view>
|
|
22
26
|
</view>
|
|
23
27
|
</template>
|
|
24
28
|
<script setup lang="ts">
|
|
@@ -37,11 +41,15 @@ const props = withDefaults(defineProps<IProps>(), {
|
|
|
37
41
|
});
|
|
38
42
|
const emit = defineEmits<{
|
|
39
43
|
(e: 'handleClick', data: storeDeliveryType): void;
|
|
44
|
+
(e: 'handleAdd', data: storeDeliveryType): void;
|
|
40
45
|
}>();
|
|
41
46
|
|
|
42
47
|
const handleClick = () => {
|
|
43
48
|
emit('handleClick', props.data);
|
|
44
49
|
};
|
|
50
|
+
const handleAdd = () => {
|
|
51
|
+
emit('handleAdd', props.data);
|
|
52
|
+
};
|
|
45
53
|
</script>
|
|
46
54
|
<style scoped lang="scss">
|
|
47
55
|
@import '../../libs/css/delivery-address.scss';
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
border-radius: 4rpx;
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
line-height: 1;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
&:active {
|
|
9
|
+
opacity: 0.8;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.header {
|
|
11
13
|
display: flex;
|
|
12
14
|
align-items: center;
|
|
@@ -17,6 +19,7 @@
|
|
|
17
19
|
border-bottom: 1rpx solid #eaeaea;
|
|
18
20
|
padding: 25rpx 36rpx;
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
.content {
|
|
21
24
|
display: flex;
|
|
22
25
|
align-items: center;
|
|
@@ -25,22 +28,52 @@
|
|
|
25
28
|
padding-right: 23rpx;
|
|
26
29
|
color: #333;
|
|
27
30
|
font-size: 28rpx;
|
|
31
|
+
|
|
28
32
|
.user {
|
|
29
33
|
flex: 1;
|
|
34
|
+
|
|
30
35
|
.user-info {
|
|
31
36
|
display: flex;
|
|
32
37
|
align-items: center;
|
|
33
38
|
justify-content: space-between;
|
|
34
39
|
margin-bottom: 25rpx;
|
|
35
40
|
}
|
|
41
|
+
|
|
36
42
|
.address {
|
|
37
43
|
.text {
|
|
38
44
|
line-height: 1.3;
|
|
39
45
|
}
|
|
40
46
|
}
|
|
41
47
|
}
|
|
48
|
+
|
|
42
49
|
.icon-box {
|
|
43
50
|
margin-left: 5rpx;
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
|
-
|
|
53
|
+
|
|
54
|
+
.error-content {
|
|
55
|
+
line-height: 1;
|
|
56
|
+
padding: 20rpx 0;
|
|
57
|
+
|
|
58
|
+
.tip {
|
|
59
|
+
color: #b3b3b3;
|
|
60
|
+
font-size: 30rpx;
|
|
61
|
+
text-align: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.btn {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
width: 200rpx;
|
|
69
|
+
padding: 14rpx 0;
|
|
70
|
+
text-align: center;
|
|
71
|
+
color: #fff;
|
|
72
|
+
background-color: #ff524f;
|
|
73
|
+
font-size: 26rpx;
|
|
74
|
+
border-radius: 32rpx;
|
|
75
|
+
margin: 0 auto;
|
|
76
|
+
margin-top: 25rpx;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|