From 1ebf13fcff1d64f0ab9f1981cd60ad3194a2d29c Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 27 九月 2024 11:10:00 +0800 Subject: [PATCH] zf --- pages/cart/paymentPage/index.js | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js index febb0d2..3a3b727 100644 --- a/pages/cart/paymentPage/index.js +++ b/pages/cart/paymentPage/index.js @@ -161,7 +161,6 @@ payPrice: res.payPrice.toFixed(2), ImmediatelyReceive: res.payPrice }) - console.log(1, res.saleMethodLinks); res.saleMethodLinks.forEach(item => { const type = item.orderSaleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'; item.type = type; // 灏唗ype璁剧疆涓篿tem瀵硅薄鐨勫睘鎬э紝鑰屼笉鏄娇鐢╯etData @@ -241,7 +240,7 @@ if (res) { this.setData({ payId: res.payList[0].id, - payPrice: res.payPrice, + payPrice: res.payPrice.toFixed(2), deduct: (this.data.currentBalance / 100).toFixed(2), integral: this.data.integral - this.data.currentBalance, showIntegral: true @@ -258,7 +257,7 @@ console.log(res, "鍙栨秷鐢ㄧН鍒�") if (res) { this.setData({ - payPrice: res.payPrice, + payPrice: res.payPrice.toFixed(2), showIntegral: false }); this.getIntegral() -- Gitblit v1.9.1