优化批发商品展示样式

master
lemon橪 2022-06-01 10:58:54 +08:00 committed by 学习很差啦
parent 8cb01d0ba8
commit 213f4b8408
2 changed files with 12 additions and 4 deletions

View File

@ -473,6 +473,8 @@
color: #999 !important; color: #999 !important;
font-size: 24rpx; font-size: 24rpx;
margin:0 20rpx; margin:0 20rpx;
display: flex;
justify-content: center;
} }
.goods-header { .goods-header {
@ -493,6 +495,7 @@
.goods-price { .goods-price {
color: $price-color; color: $price-color;
line-height: 80rpx; line-height: 80rpx;
margin-right: 20rpx;
>* { >* {
color: $price-color; color: $price-color;
line-height: 80rpx; line-height: 80rpx;

View File

@ -150,9 +150,14 @@
</span> </span>
<span v-else> <span v-else>
<span>¥</span <!-- <span v-if="wholesaleList.length">
><span class="price">{{ formatPrice(goodsDetail.price)[0] }}</span <span>¥</span><span class="price">{{ formatPrice(wholesaleList[wholesaleList.length-1].price)[0] }}</span>.{{ formatPrice(wholesaleList[wholesaleList.length-1].price)[1] }}
>.{{ formatPrice(goodsDetail.price)[1] }} ~
<span>¥</span><span class="price">{{ formatPrice(wholesaleList[0].price)[0] }}</span>.{{ formatPrice(wholesaleList[0].price)[1] }}
</span>
<span v-else>
<span>¥</span><span class="price">{{ formatPrice(goodsDetail.price)[0] }}</span>.{{ formatPrice(goodsDetail.price)[1] }}
</span> -->
</span> </span>
</view> </view>
<view class="-goods-price" v-else> <view class="-goods-price" v-else>