fix: 修复结算页面金额计算精度问题

This commit is contained in:
2026-01-21 16:27:27 +08:00
parent 2a9df2f1c6
commit 115c627eed
2 changed files with 5 additions and 4 deletions

View File

@@ -13,8 +13,8 @@
}
],
"sassImplementationName" : "node-sass",
"versionName" : "1.2.82",
"versionCode" : 1282,
"versionName" : "1.2.83",
"versionCode" : 1283,
"app-plus" : {
"compatible" : {
"ignoreVersion" : true

View File

@@ -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,