【优化】当原价高于售价时,才显示划线价格

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
pull/113/head
杨宇庆 2024-10-16 16:39:30 +00:00 committed by Gitee
parent 3051aed6b2
commit f784d411b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@
<view class="price-text ss-m-r-16">
{{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }}
</view>
<view class="origin-price-text" v-if="state.goodsInfo.marketPrice > 0">
<view class="origin-price-text" v-if="state.goodsInfo.marketPrice > state.goodsInfo.price">
{{ fen2yuan(state.selectedSku.marketPrice || state.goodsInfo.marketPrice) }}
</view>
</view>