From d157d0892f1ab5517dbe3a08328ccb9c4e446615 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 20 Apr 2025 15:39:03 +0800
Subject: [PATCH] 1
---
pages/exchange/exchange-transaction.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/pages/exchange/exchange-transaction.vue b/pages/exchange/exchange-transaction.vue
index 912c19c..5178aaf 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>
@@ -227,7 +227,7 @@
{{ newPrice.price }}
</view>
<view class="fn-xs" v-if="newPrice.price">
- ≈ ¥{{ omitTo(newPrice.price * price_cny, 2) }}
+ ≈ ${{ omitTo(newPrice.price * price_cny, 2) }}
</view>
</sell-and-buy>
</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