From 52b00599d3b8359549ac8bcfbbb63f6578388121 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 07 Apr 2025 17:25:53 +0800
Subject: [PATCH] 11
---
pages/exchange/exchange-transaction.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/pages/exchange/exchange-transaction.vue b/pages/exchange/exchange-transaction.vue
index 912c19c..16b0d65 100644
--- a/pages/exchange/exchange-transaction.vue
+++ b/pages/exchange/exchange-transaction.vue
@@ -148,7 +148,7 @@
{{ $t("exchange.c8") }}:
</view>
<view class="" style="font-weight: 500;font-size: 14px;color: #232533;">
- {{ kypirce[0].usable_balance }} {{symbol.split('/')[0]}}
+ {{ kypirce[0].usable_balance.toFixed(8) }} {{symbol.split('/')[0]}}
</view>
</view>
</view>
@@ -650,13 +650,14 @@
this.form.amount = math.multiple(
this.targetBalance.usable_balance / this.form.entrust_price,
num,
- 4
+ 8
);
+
} else if (this.form.type == 1) {
this.form.amount = this.form.amount = math.multiple(
this.targetBalance.usable_balance,
num,
- 4
+ 8
);
}
} else if (this.form.direction == "sell") {
@@ -664,7 +665,7 @@
this.form.amount = math.multiple(
this.currentBalance.usable_balance,
num,
- 4
+ 8
);
}
},
--
Gitblit v1.9.3