From 7a4e91cad492b5f2411ae3ec074dae533d0ec335 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Thu, 18 Sep 2025 09:57:07 +0800
Subject: [PATCH] 1

---
 src/views/my/assets.vue |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/src/views/my/assets.vue b/src/views/my/assets.vue
index 3b70fa7..c79dda2 100644
--- a/src/views/my/assets.vue
+++ b/src/views/my/assets.vue
@@ -61,26 +61,15 @@
             :key="item.id">
             <img :src="`${HOST_URL}/symbol/${item.symbol_data}.png`" />
 
-            <span class="ml-5 flex-1">{{ item.symbol_data.toUpperCase() }}/USDT</span>
+            <span class="ml-5 flex-1">{{ item.symbol_data.toUpperCase() }}</span>
 
             <div class="mr-3">
-                <!-- <div class="text-right">0</div>
-                <div class="assets_item_light text-right">0.00</div> -->
-                <div class="text-right" v-if="item.symbol == 'btc'">
-                    {{ item.volume ? Number(item.volume).toFixed(8) : '0.0' }}
-                </div>
-                <div class="text-right" v-else-if="item.symbol == 'eth'">
-                    {{ item.volume ? Number(item.volume).toFixed(8) : '0.0' }}
-                </div>
-                <div class="text-right" v-else-if="item.symbol == 'usdt'">
-                    {{ item.volume ? Number(item.volume).toFixed(2) : '0.0' }}
-                </div>
-                <div class="text-right" v-else>
-                    {{ item.volume ? Number(item.volume).toFixed(8) : '0.0' }}
+                <div class="text-right">
+                    {{ item.volume ? formatWithCommas(Number(item.volume).toFixed(2)) : '0.0' }}
                 </div>
                 <div class="assets_item_light text-right">
                     ≈{{ currency.currency_symbol }}
-                    {{ item.usdt ? Number(item.usdt).toFixed(2) : '0.0' }}
+                    {{ item.usdt ? formatWithCommas(Number(item.usdt).toFixed(2)) : '0.0' }}
                 </div>
             </div>
         </div>
@@ -102,6 +91,7 @@
 import { _getassets } from "@/service/user.api.js";
 import { _getAllWallet } from '@/service/fund.api';
 import { HOST_URL } from '@/config';
+import { formatWithCommas } from '@/utils';
 
 const router = useRouter()
 const { t } = useI18n()
@@ -111,7 +101,8 @@
 const tabList = [
     { key: 1, name: t('充值'), icon: new URL('@/assets/imgs/assets/chonbi.png', import.meta.url), path: '/cryptos/recharge/rechargeList?isForeign=true' },
     { key: 2, name: t('提现'), icon: new URL('@/assets/imgs/assets/tibi.png', import.meta.url), path: '/cryptos/Withdraw/withdrawPage' },
-    { key: 3, name: t('划转'), icon: new URL('@/assets/imgs/assets/huazhuan.png', import.meta.url), path: '/my/transfer' },
+    // { key: 3, name: t('划转'), icon: new URL('@/assets/imgs/assets/huazhuan.png', import.meta.url), path: '/my/transfer' },
+    { key: 5, name: t('闪兑'), icon: new URL('@/assets/imgs/assets/sd.png', import.meta.url), path: '/cryptos/exchangePage' },
     { key: 4, name: t('账单'), icon: new URL('@/assets/imgs/assets/zd.png', import.meta.url), path: '/cryptos/accountChange' },
 ]
 

--
Gitblit v1.9.3