diff --git a/pages/base/mine.vue b/pages/base/mine.vue
index fbb7a3b..5340b30 100644
--- a/pages/base/mine.vue
+++ b/pages/base/mine.vue
@@ -40,8 +40,9 @@
-->
- {{filterMoney(account.total_assets_btc, true)}}
+
+ {{ price1(account.total_assets_btc, 8) }}
≈ ${{ price1(account.total_assets_usd, 2) }}
@@ -188,7 +189,8 @@
- ≈{{ omitTo(account.funds_account_usd,2) }}
+
+ ≈{{ price1(account.funds_account_usd,2) }}
{{ $t("base.d6") }}(USDT)
@@ -299,7 +301,8 @@
- {{ filterMoney(account.contract_account_usd)}}{{ account.symbol }}
+
+ {{ price1(account.contract_account_usd,2)}}{{ account.symbol }}
diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue
index 7b5ad8a..7dfa7d4 100644
--- a/pages/exchange/open-position.vue
+++ b/pages/exchange/open-position.vue
@@ -173,12 +173,12 @@
-->
{{ $t("contract.d8") }}
-
+ {{symbol.split('/')[0]}}
@@ -1151,6 +1151,14 @@ export default {
}
},
methods: {
+ inputEnter(e){
+ this.$nextTick(()=> {
+ this.margin = e
+ .replace(/[^\d.]/g, "") // 移除非数字、非小数点的字符
+ .replace(/^(\d*\.?\d{0,2}).*$/, "$1"); // 限制最多两位小数
+ this.sliderActive=-1
+ })
+ },
onRefresh() {
if (this.refreshing) return;
this.refreshing = true;