Commit b7135675986354dbf96a1dce8e01c89345745d20

Authored by 王强
1 parent 1f94cd06

折扣专区价格判断转换成浮点再比较大小~

src/pages/discountList/discountList.vue
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 sty="1"> 51 sty="1">
52 52
53 <!-- 折扣角标 --> 53 <!-- 折扣角标 -->
54 - <div class="discount-flag" slot="flag" v-if="item.price < item.prices"> 54 + <div class="discount-flag" slot="flag" v-if="parseFloat(item.price) < parseFloat(item.prices)">
55 {{getDiscount(item.price, item.prices)}}折 55 {{getDiscount(item.price, item.prices)}}折
56 </div> 56 </div>
57 </goods-item-8> 57 </goods-item-8>