feat: 商品卡片颜色单位价格显示一行
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-01 15:37:28 +00:00
parent d9881a50c1
commit 45d6cc53ca

View File

@@ -41,13 +41,11 @@
<view class="product-row">
<text class="product-spec">{{ item.spec || '-' }}</text>
<text class="product-unit">/{{ item.unit }}</text>
<text class="product-price-text">¥{{ item.price }}</text>
</view>
<view class="product-spec-row" v-if="item.length && item.width">
<text class="spec-text">规格{{ item.length }} x {{ item.width }} = {{ item.area }} </text>
</view>
<view class="product-price">
<text class="price">¥{{ item.price }}</text>
</view>
<view class="product-status">
<text :class="['status', item.status === 1 ? 'on' : 'off']">
{{ item.status === 1 ? '已上架' : '已下架' }}
@@ -494,6 +492,13 @@ export default {
margin-left: 4rpx;
}
.product-price-text {
color: #ff4d4f;
font-size: 24rpx;
font-weight: bold;
margin-left: 16rpx;
}
.product-spec-row {
margin-top: 8rpx;
}