Commit d6f14167 by 张卓

已省价格保留两位小数

parent cc14dd86
......@@ -109,6 +109,7 @@ const componentOptions = {
ele.terminalProductGoods.imgUrl = DFSImg(ele.terminalProductGoods.imgUrl)
ele.terminalProductGoods.discountPrice = (ele.terminalProductGoods.discountPrice-0).toFixed(2)
ele.terminalProductGoods.salePrice = (ele.terminalProductGoods.salePrice-0).toFixed(2)
ele.terminalProductGoods.discountPriceToatal = (ele.terminalProductGoods.salePrice-ele.terminalProductGoods.discountPrice).toFixed(2)
let flag = Math.ceil((index+1)/3)
lists[flag-1].push(ele)
})
......
......@@ -33,7 +33,7 @@
<view class="discount_price">折后价:¥{{item.terminalProductGoods.discountPrice}}</view>
<view class="show_price">
<view class="title">最高可省</view>
<view class="price"> {{(item.terminalProductGoods.salePrice-item.terminalProductGoods.discountPrice).toFixed(2)}}元</view>
<view class="price"> {{item.terminalProductGoods.discountPriceToatal}}元</view>
</view>
</view>
</swiper-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment