优化批发商品展示样式

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;
font-size: 24rpx;
margin:0 20rpx;
display: flex;
justify-content: center;
}
.goods-header {
@ -492,7 +494,8 @@
.goods-price {
color: $price-color;
line-height: 80rpx;
line-height: 80rpx;
margin-right: 20rpx;
>* {
color: $price-color;
line-height: 80rpx;

View File

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