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