cb-biz-ui 1.6.7 → 1.6.8

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.
@@ -30,6 +30,39 @@
30
30
  </text>
31
31
  </ui-overflow-hidden>
32
32
  </view>
33
+ <view class="rebate-box" v-if="entity.rebateGold">
34
+ <view class="rebate-box_title"> 购买返利 </view>
35
+ <view class="rebate-box_content">
36
+ <text class="rebate-box_content_text"
37
+ >约¥{{ entity.rebateMoney || 0 }}</text
38
+ >
39
+ <view class="rebate-box_content_icon">
40
+ (
41
+ <text class="rebate-box_content_icon_text">{{
42
+ entity.rebateGold
43
+ }}</text>
44
+ <image
45
+ class="rebate-icon"
46
+ src="https://shop-cdn.cbyzx.com/shop23n05y18abcd/img/21f285a66453412e8cd0046ed31aa222@.png"
47
+ />
48
+ )
49
+ </view>
50
+ </view>
51
+ </view>
52
+ <view class="goods-card_info_sales-specification" v-if="entity.attrValue && entity.attrUnitValue">
53
+ <text
54
+ class="goods-card_info_sales-specification_text"
55
+ :style="{ fontSize: '22rpx' }"
56
+ >{{ entity.attrValue + '/' + entity.attrUnitValue }}
57
+ </text>
58
+ </view>
59
+ <view class="goods-card_info_sales-volume" v-if="entity.saleCnt">
60
+ <text
61
+ class="goods-card_info_sales-volume_text"
62
+ :style="{ fontSize: textFontSize.salesVolume }"
63
+ >销量{{ ` ` }}{{ entity.saleCnt || 0 }}
64
+ </text>
65
+ </view>
33
66
  <view class="goods-card_info_tag" v-if="entity.hasDiscount">
34
67
  <ui-tag
35
68
  type="danger"
@@ -65,45 +98,19 @@
65
98
  </ui-tag>
66
99
  </view>
67
100
  </view>
68
- <view class="rebate-box" v-if="entity.rebateGold">
69
- <view class="rebate-box_title"> 购买返利 </view>
70
- <view class="rebate-box_content">
71
- <text class="rebate-box_content_text"
72
- >约¥{{ entity.rebateMoney || 0 }}</text
73
- >
74
- <view class="rebate-box_content_icon">
75
- (
76
- <text class="rebate-box_content_icon_text">{{
77
- entity.rebateGold
78
- }}</text>
79
- <image
80
- class="rebate-icon"
81
- src="https://shop-cdn.cbyzx.com/shop23n05y18abcd/img/21f285a66453412e8cd0046ed31aa222@.png"
82
- />
83
- )
84
- </view>
85
- </view>
86
- </view>
87
- <view class="goods-card_info_sales-volume">
88
- <text
89
- class="goods-card_info_sales-volume_text"
90
- :style="{ fontSize: textFontSize.salesVolume }"
91
- >销量{{ ` ` }}{{ entity.saleCnt || 0 }}
92
- </text>
93
- </view>
94
101
  <view class="goods-card_info_price">
95
102
  <text
96
103
  class="goods-card_info_price_preferential-price"
97
104
  :style="{ fontSize: textFontSize.preferentialPrice }"
98
105
  >
99
- ¥{{ price }}/{{ entity?.unitTitle || '件' }}
106
+ ¥{{ price }}
100
107
  </text>
101
108
  <text
102
109
  class="goods-card_info_price_price"
103
110
  v-if="entity.hasDiscount"
104
111
  :style="{ fontSize: textFontSize.price }"
105
112
  >
106
- ¥{{ entity.marketPriceShow }}/{{ entity.unitTitle || '件' }}
113
+ ¥{{ entity.marketPriceShow }}
107
114
  </text>
108
115
  </view>
109
116
  <view class="goods-card_info_status" v-if="errStatusText">
@@ -211,13 +218,13 @@ const props = withDefaults(defineProps<IProps>(), {
211
218
  bezier: true,
212
219
  imagePlaceholder:
213
220
  'https://shop-cdn.cbyzx.com/shop23n05y18abcd/img/3544375090854cd099d72edb09dce492.png',
214
- imageMode: 'aspectFill',
221
+ imageMode: 'aspectFit',
215
222
  textFontSize: {
216
223
  title: '24rpx',
217
224
  tag: '18rpx',
218
225
  salesVolume: '20rpx',
219
- preferentialPrice: '24rpx',
220
- price: '20rpx',
226
+ preferentialPrice: '26rpx',
227
+ price: '22rpx',
221
228
  numberBoxBg: '#fff'
222
229
  },
223
230
  entity: {
@@ -19,7 +19,8 @@
19
19
  :data-current="index"
20
20
  @tap.stop="swichNav(index)"
21
21
  >
22
- <text>{{ item.name }}</text>
22
+ <view>{{ item.name }}</view>
23
+ <view style="font-size: 24rpx;" v-if="item.count || item.count === 0">({{ item.count }})</view>
23
24
  </view>
24
25
  </scroll-view>
25
26
  </template>
@@ -121,7 +121,19 @@
121
121
  line-height: 1;
122
122
  }
123
123
  }
124
+ .goods-card_info_sales-specification {
125
+ width: 100%;
126
+ display: flex;
127
+ align-items: center;
128
+ margin: 10rpx 0;
129
+ line-height: 1;
124
130
 
131
+ .goods-card_info_sales-specification_text {
132
+ font-size: 20rpx;
133
+ color: #666666;
134
+ line-height: 1;
135
+ }
136
+ }
125
137
  .goods-card_info_price {
126
138
  width: 100%;
127
139
  display: flex;
@@ -7,8 +7,8 @@
7
7
  height: 110rpx;
8
8
  box-sizing: border-box;
9
9
  display: flex;
10
+ flex-direction: column;
10
11
  align-items: center;
11
- justify-content: center;
12
12
  font-size: 26rpx;
13
13
  font-weight: 400;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cb-biz-ui",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "cb-biz-ui",
5
5
  "main": "index.js",
6
6
  "keywords": [