cb-biz-ui 1.5.5 → 1.5.7

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,13 +65,15 @@
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.skuCommonExt?.enableRebate">
69
69
  <view class="rebate-box_title"> 购买返利 </view>
70
70
  <view class="rebate-box_content">
71
- <text class="rebate-box_content_text">约¥1.01</text>
71
+ <text class="rebate-box_content_text"
72
+ >约¥{{ entity.skuCommonExt?.rebateVal || 0 }}</text
73
+ >
72
74
  <view class="rebate-box_content_icon">
73
75
  (
74
- <text class="rebate-box_content_icon_text">11111</text>
76
+ <text class="rebate-box_content_icon_text">111</text>
75
77
  <image
76
78
  class="rebate-icon"
77
79
  src="https://edu-cdn.yunzhuxue.com/edub1429d21xcfds/img/cd9fd828b1b047aa8ac91f020b8452e9@.png@.webp"
@@ -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">
@@ -50,6 +50,7 @@
50
50
  display: flex;
51
51
  align-items: center;
52
52
  line-height: 1;
53
+ margin-top: 10rpx;
53
54
 
54
55
  .tag-box {
55
56
  display: flex;
@@ -69,26 +70,34 @@
69
70
  .rebate-box {
70
71
  display: flex;
71
72
  align-items: center;
72
- font-size: 18rpx;
73
+ font-size: 20rpx;
73
74
  border: 1px solid rgba(255, 82, 79, 1);
74
75
  border-radius: 10rpx;
75
76
  overflow: hidden;
77
+ margin-top: 10rpx;
76
78
 
77
79
  .rebate-box_title {
78
80
  font-size: 20rpx;
79
81
  color: rgb(1, 1, 1);
80
82
  background-color: rgba(255, 82, 79, 1);
81
- padding: 25rpx 20rpx;
83
+ padding: 0 15rpx;
84
+ height: 100%;
85
+ display: flex;
86
+ align-items: center;
87
+ color: #fff;
82
88
  }
89
+
83
90
  .rebate-box_content {
84
91
  display: flex;
85
92
  align-items: center;
86
- padding: 25rpx 10rpx;
93
+ padding: 6rpx 10rpx;
87
94
  color: rgba(255, 82, 79, 1);
95
+
88
96
  .rebate-box_content_icon {
89
97
  display: flex;
90
98
  align-items: center;
91
99
  color: rgba(102, 102, 102, 1);
100
+
92
101
  .rebate-icon {
93
102
  width: 30rpx;
94
103
  height: 30rpx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cb-biz-ui",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "description": "cb-biz-ui",
5
5
  "main": "index.js",
6
6
  "keywords": [