瀏覽代碼

!113 【优化】当原价高于售价时,才显示划线价格
Merge pull request !113 from 杨宇庆/N/A

芋道源码 9 月之前
父節點
當前提交
113aead37b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/goods/index.vue

+ 1 - 1
pages/goods/index.vue

@@ -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>