@@ -56,7 +56,8 @@ export default {
return {
price: "",
numList: {},
- cellCount: 15,
+ // 每行 5 格,默认 6 行
+ cellCount: 30,
stock: 0,
unitName: "个"
};
@@ -222,6 +222,7 @@
<text class="item-count" v-else></text>
</view>
+
<view class="summary-bar">
@@ -734,18 +735,24 @@ export default {
color: black;
font-size: 30upx;
font-weight: 700;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- width:360upx;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ flex: 1;
+ min-width: 0;
}
.item-price {
font-size: 27upx;
- font-weight:bold;
+ font-weight: bold;
+ flex-shrink: 0;
+ margin-left: 16upx;
+ text-align: right;
.price {
- font-size:25upx;
+ font-size: 25upx;
.item-type {