Commit f8345c79 authored by xieyishang's avatar xieyishang

~

parent 6e715e3c
......@@ -305,10 +305,11 @@ export default {
total += parseFloat(cc.readyPrice) * Number(cc.num);
totalCount = totalCount + cc.num;
totaljifen += Number(cc.ready_integral) * Number(cc.num)
totaljifen += parseFloat(cc.ready_integral) * Number(cc.num)
});
});
total = total.toFixed(2);
totaljifen = totaljifen.toFixed(2);
const priceParts = total.split(".");
const formatBig = priceParts[0];
const formatMini = priceParts.length > 1 ? `.${priceParts[1]}` : ".00";
......@@ -316,7 +317,7 @@ export default {
this.totalCount = totalCount;
this.totaljifen = totaljifen;//积分
this.Userprice = parseFloat(parseFloat(total) + parseInt(this.totaljifen)).toFixed(2);
this.Userprice = parseFloat(parseFloat(total) + parseFloat(this.totaljifen)).toFixed(2);
},
deep: true,
......
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