cb-biz-ui 1.3.6 → 1.3.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.
@@ -47,22 +47,24 @@
47
47
  <text>{{ getDiscount(entity.discount) }}</text>
48
48
  </view>
49
49
  </ui-tag>
50
- <ui-tag
51
- type="danger"
52
- padding="6rpx 10rpx"
53
- v-if="entity.purchaseLimitNum !== -1"
54
- :size="textFontSize.tag"
55
- plain
56
- >
57
- <view class="tag-box">
58
- <image
59
- class="icon icon_yh"
60
- src="https://shop-cdn.cbyzx.com/shop23n05y18abcd/img/0eb08f3800884600bde0cd670aecc869@.png@.webp"
61
- />
50
+ <view v-if="entity.purchaseLimitNum > 0" style="margin-left: 10rpx">
51
+ <ui-tag
52
+ type="danger"
53
+ padding="6rpx 10rpx"
54
+ :size="textFontSize.tag"
55
+ plain
56
+ >
57
+ <view class="tag-box">
58
+ <image
59
+ class="icon icon_yh"
60
+ style="width: 28rpx"
61
+ src="https://shop-cdn.cbyzx.com/shop23n05y18abcd/img/0eb08f3800884600bde0cd670aecc869@.png@.webp"
62
+ />
62
63
 
63
- <text>每人限{{entity.purchaseLimitNum}}份</text>
64
- </view>
65
- </ui-tag>
64
+ <text>每人限{{ entity.purchaseLimitNum }}份</text>
65
+ </view>
66
+ </ui-tag>
67
+ </view>
66
68
  </view>
67
69
  <view class="goods-card_info_sales-volume">
68
70
  <text
@@ -58,6 +58,7 @@ export interface skuInfoType {
58
58
  /**是否无限库存 */
59
59
  unlimitedInventory: boolean;
60
60
  existInventory: boolean; // 是否有库存
61
+ purchaseLimitNum: number // 是否限购 -1 不限购
61
62
  }
62
63
  export interface cartItemListType {
63
64
  /** 买家id */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cb-biz-ui",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "cb-biz-ui",
5
5
  "main": "index.js",
6
6
  "keywords": [