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