From 892efc9976feb68ce1a3a4d759317e2585d67ebe Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期六, 07 九月 2024 18:16:18 +0800 Subject: [PATCH] bug修改 --- pages/cart/paymentPage/index.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js index 2b42ac5..818666c 100644 --- a/pages/cart/paymentPage/index.js +++ b/pages/cart/paymentPage/index.js @@ -157,7 +157,7 @@ orderGoods: res.orderNumber }) this.setData({ - price: res.payPrice, + price: res.payPrice.toFixed(2), payPrice: res.payPrice.toFixed(2), ImmediatelyReceive: res.payPrice }) @@ -224,10 +224,11 @@ this.setData({ payId: res.payList[0].id, payPrice: res.payPrice, - deduct: (this.data.price - this.data.payPrice).toFixed(2), + deduct: (this.data.currentBalance / 100).toFixed(2), integral: this.data.integral - this.data.currentBalance, showIntegral: true }); + console.log(this.data.price, this.data.payPrice, 123) } }) } else { -- Gitblit v1.9.1