Commit b7135675986354dbf96a1dce8e01c89345745d20
1 parent
1f94cd06
折扣专区价格判断转换成浮点再比较大小~
Showing
1 changed file
with
1 additions
and
1 deletions
src/pages/discountList/discountList.vue
| ... | ... | @@ -51,7 +51,7 @@ |
| 51 | 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 | 55 | {{getDiscount(item.price, item.prices)}}折 |
| 56 | 56 | </div> |
| 57 | 57 | </goods-item-8> | ... | ... |