fix: 修复结算页面金额计算精度问题
This commit is contained in:
@@ -809,8 +809,9 @@ export default {
|
||||
|
||||
// }
|
||||
// }
|
||||
price = (item.productAmount * item.price).toFixed(2);
|
||||
price = (item.productAmount * item.price);
|
||||
allprice += Number(price);
|
||||
allprice = parseFloat(allprice.toFixed(2));
|
||||
});
|
||||
this.totalPrice = allprice;
|
||||
// if (this.youhuiContent.id != undefined) {
|
||||
@@ -937,7 +938,7 @@ export default {
|
||||
orderMoney: this.totalPrice, //订单金额
|
||||
vipDiscountAmount: this.vipPrice, //折扣金额
|
||||
districtMoney: this.districtAmount, //折扣金额
|
||||
realMoney: this.realPrice, //实收金额
|
||||
realMoney: this.realPrice.toFixed(2), //实收金额
|
||||
shippingMoney: this.farePrice, //运费
|
||||
couponId: youPre.id, //优惠券Id
|
||||
isSend: this.isSend,
|
||||
|
||||
Reference in New Issue
Block a user