From 2053a89c9c622c39fd451182f0f1c2d597aae63e Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 8 Apr 2024 11:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E7=BA=A6=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9D=83=E7=9B=8A=E5=92=8C=E5=8F=AF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=80=BC=E4=B8=8D=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/exchange/open-position.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue index 4001f23..ab35d01 100644 --- a/pages/exchange/open-position.vue +++ b/pages/exchange/open-position.vue @@ -1457,8 +1457,10 @@ export default { }; Contract.contractAccount(data, {loading: !boo, toast: false}).then((res) => { // console.info(res) - res.data.account_equity = (parseInt(res.data.account_equity)).toFixed(2) - res.data.usable_balance = (res.data.usable_balance).toFixed(2) + // res.data.account_equity = Number(res.data.account_equity).toFixed(2) + // res.data.usable_balance = (res.data.usable_balance).toFixed(2) + res.data.account_equity = Math.floor(Number(res.data.account_equity) * 100) / 100; + res.data.usable_balance = Math.floor(res.data.usable_balance * 100) / 100; this.accountInfo = res.data; if (!boo) { // this.form.lever_rate = res.data.lever_rate;