From 84bc6a893302f3873d876094519e89f0ad68db87 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Thu, 18 Sep 2025 15:59:04 +0800
Subject: [PATCH] 1
---
src/components/Transform/list-quotation/index.vue | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/components/Transform/list-quotation/index.vue b/src/components/Transform/list-quotation/index.vue
index ac397c4..3ff3217 100644
--- a/src/components/Transform/list-quotation/index.vue
+++ b/src/components/Transform/list-quotation/index.vue
@@ -29,9 +29,7 @@
alt="logo" class="w-72 h-72 rounded-full mr-16" />
<p class="flex flex-col">
<span class="flex items-end font-32 flex items-center">
- <span class="textColor font-600 font-30">{{ item.symbol_data && item.symbol_data.toUpperCase() ||
- '--'
- }}</span>
+ <span class="textColor font-600 font-30">{{ arrGk(item.name.toUpperCase())[0] }}</span>
<span class="font-24 text-grey" style="position: relative; top: 1px">
/USDT
</span>
@@ -65,9 +63,7 @@
class="w-72 h-72 rounded-full mr-16" />
<p class="flex flex-col">
<span class="flex items-end font-32 flex items-center">
- <span class="textColor font-600 font-30">{{ item.symbol_data && item.symbol_data.toUpperCase() ||
- '--'
- }}</span>
+ <span class="textColor font-600 font-30">{{ arrGk(item.name.toUpperCase())[0] }}</span>
<!-- <span class="font-24 text-grey" style="position: relative; top: 1px">
{{ item.name && item.name.replace(item.symbol.toUpperCase(), '') || '--' }}</span> -->
<span class="font-24 text-grey" style="position: relative; top: 1px">
@@ -209,6 +205,12 @@
return a - b;
}
}
+ },
+ // 处理分隔符
+ arrGk(str) {
+ if (!str) return ['--'];
+ let arr = str.split('/');
+ return arr;
}
},
watch: {
@@ -240,7 +242,7 @@
transition: all 250ms;
}
- .textColor{
+ .textColor {
color: $text_color4;
}
--
Gitblit v1.9.3