Просмотр исходного кода

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

芋道源码 9 месяцев назад
Родитель
Сommit
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">
                 <view class="price-text ss-m-r-16">
                   {{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }}
                   {{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }}
                 </view>
                 </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) }}
                   {{ fen2yuan(state.selectedSku.marketPrice || state.goodsInfo.marketPrice) }}
                 </view>
                 </view>
               </view>
               </view>