cb-biz-ui 1.5.6 → 1.5.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.
@@ -65,11 +65,11 @@
65
65
  </ui-tag>
66
66
  </view>
67
67
  </view>
68
- <view class="rebate-box" v-if="entity.skuCommonExt.enableRebate">
68
+ <view class="rebate-box" v-if="entity.rebateGold">
69
69
  <view class="rebate-box_title"> 购买返利 </view>
70
70
  <view class="rebate-box_content">
71
71
  <text class="rebate-box_content_text"
72
- >约¥{{ entity.skuCommonExt.rebateVal }}</text
72
+ >约¥{{ entity.rebateMoney || 0 }}</text
73
73
  >
74
74
  <view class="rebate-box_content_icon">
75
75
  (
@@ -19,9 +19,9 @@
19
19
  </view>
20
20
  <view
21
21
  class="rebate"
22
- v-if="data.saleStatus == 10 && data.skuCommonExt.enableRebate"
22
+ v-if="data.saleStatus == 10 && data.skuCommonExt?.enableRebate"
23
23
  >
24
- <text class="text">购后返利:¥{{ data.skuCommonExt.rebateVal }}</text>
24
+ <text class="text">购后返利:¥{{ data.skuCommonExt?.rebateVal || 0 }}</text>
25
25
  </view>
26
26
  </view>
27
27
  <view class="text-box">
@@ -41,6 +41,8 @@ export interface GoodsDataType {
41
41
  rebateType: string; // 返利类型
42
42
  rebateVal: string; // 返利金额
43
43
  };
44
+ rebateMoney: string; // 返利金额
45
+ rebateGold: string; // 返利金币
44
46
  }
45
47
  export interface changeValueType {
46
48
  value: number;
@@ -70,7 +70,7 @@
70
70
  .rebate-box {
71
71
  display: flex;
72
72
  align-items: center;
73
- font-size: 18rpx;
73
+ font-size: 20rpx;
74
74
  border: 1px solid rgba(255, 82, 79, 1);
75
75
  border-radius: 10rpx;
76
76
  overflow: hidden;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cb-biz-ui",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "cb-biz-ui",
5
5
  "main": "index.js",
6
6
  "keywords": [