cb-biz-ui 1.5.0 → 1.5.2
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.
|
@@ -26,20 +26,24 @@
|
|
|
26
26
|
<ui-icon v-if="showArrow" color="#ddd" name="arrowright" size="18" />
|
|
27
27
|
</view>
|
|
28
28
|
<view class="num">
|
|
29
|
-
<text class="sales-volume"
|
|
29
|
+
<text class="sales-volume">销量:{{ data.saleCnt || 0 }}</text>
|
|
30
30
|
<text
|
|
31
|
-
|
|
32
|
-
}}{{
|
|
31
|
+
>库存:{{
|
|
33
32
|
data.unlimitedInventory ? '无限库存' : data.inventoryCapacity || 0
|
|
34
33
|
}}</text
|
|
35
34
|
>
|
|
36
35
|
</view>
|
|
37
|
-
<view class="money">
|
|
38
|
-
<
|
|
39
|
-
|
|
36
|
+
<view class="money-rate">
|
|
37
|
+
<view class="money">
|
|
38
|
+
<text class="value">¥{{ data.platformPriceShow }}</text>
|
|
39
|
+
</view>
|
|
40
|
+
<view class="rate" v-if="data.distributionCommissionRate">
|
|
41
|
+
<text class="label">佣金率:</text>
|
|
42
|
+
<text class="value">{{ data.distributionCommissionRate }}%</text>
|
|
43
|
+
</view>
|
|
40
44
|
</view>
|
|
41
|
-
</view
|
|
42
|
-
>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
43
47
|
</view>
|
|
44
48
|
</template>
|
|
45
49
|
<script setup lang="ts">
|
|
@@ -55,6 +59,7 @@ interface dataType {
|
|
|
55
59
|
platformPriceShow: string; // 平台价、优惠价
|
|
56
60
|
marketPriceShow: string; // 市场价
|
|
57
61
|
saleCnt: number; // 销量
|
|
62
|
+
distributionCommissionRate: string; // 佣金率
|
|
58
63
|
}
|
|
59
64
|
interface IProps {
|
|
60
65
|
data: dataType;
|
|
@@ -53,22 +53,44 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.num {
|
|
56
|
+
display: flex;
|
|
56
57
|
color: #ababab;
|
|
57
58
|
// margin: 15rpx 0;
|
|
58
|
-
margin-top: 10rpx;
|
|
59
|
-
margin-bottom: 20rpx;
|
|
59
|
+
//margin-top: 10rpx;
|
|
60
|
+
//margin-bottom: 20rpx;
|
|
61
|
+
|
|
62
|
+
margin-top: 15rpx;
|
|
63
|
+
margin-bottom: 25rpx;
|
|
60
64
|
font-size: 24rpx;
|
|
61
65
|
|
|
62
66
|
.sales-volume {
|
|
63
|
-
|
|
67
|
+
width: 150rpx;
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
.money {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
.money-rate {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
font-size: 26rpx;
|
|
75
|
+
.money {
|
|
76
|
+
width: 150rpx;
|
|
77
|
+
font-weight: bold;
|
|
78
|
+
.symbol {
|
|
79
|
+
font-size: 20rpx;
|
|
80
|
+
}
|
|
81
|
+
.value {
|
|
82
|
+
color: #FF0000;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.rate{
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
.label {
|
|
89
|
+
color: #666666;
|
|
90
|
+
}
|
|
91
|
+
.value {
|
|
92
|
+
color: #FF0000;
|
|
93
|
+
}
|
|
72
94
|
}
|
|
73
95
|
}
|
|
74
96
|
}
|