cb-biz-ui 1.2.7 → 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';
@@ -204,6 +204,7 @@ const errStatusText = computed(() => {
204
204
  if (!props.entity.existInventory) {
205
205
  return '无货';
206
206
  }
207
+ return '';
207
208
  });
208
209
 
209
210
  const state = reactive({
@@ -21,7 +21,9 @@
21
21
  <view class="marketPrice">¥{{ data.marketPrice }}</view></view
22
22
  >
23
23
  <view class="price" v-else>
24
- <view class="only-marketPrice">¥{{ data.marketPrice }}</view>
24
+ <view class="only-marketPrice" v-if="data.marketPrice"
25
+ >¥{{ data.marketPrice }}</view
26
+ >
25
27
  </view>
26
28
  </view>
27
29
  </view>
@@ -4,9 +4,11 @@
4
4
  border-radius: 4rpx;
5
5
  overflow: hidden;
6
6
  line-height: 1;
7
- &:active{
8
- opacity: .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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cb-biz-ui",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "cb-biz-ui",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -18,7 +18,8 @@
18
18
  "sass-loader": "8.0.2"
19
19
  },
20
20
  "peerDependencies": {
21
- "cb-mobile-ui": ">=1.0.4"
21
+ "cb-mobile-ui": ">=1.0.4",
22
+ "z-paging": ">=2.5.8"
22
23
  },
23
24
  "author": "cb-biz-ui"
24
25
  }