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