From 05b2cd59596baebaebe1773c4ca3ba45deacf2e8 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 21 Apr 2024 17:40:41 +0800
Subject: [PATCH] first
---
src/components/trade-head/index.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/components/trade-head/index.vue b/src/components/trade-head/index.vue
index e2e9fab..ca42c49 100644
--- a/src/components/trade-head/index.vue
+++ b/src/components/trade-head/index.vue
@@ -24,7 +24,7 @@
/> -->
<div class="flex flex-col pl-21" @click="onSidebar">
<div class="font-35 textColor">
- {{ (symbol && symbol.toUpperCase()) || "--" }}/USDT
+ {{ symbol | _symbolName(1) }}
</div>
</div>
<div
@@ -99,11 +99,7 @@
<div>
<!-- {{ JSON.stringify(item) }} -->
<div class="font-700 textColor">
- {{
- item.name
- ? item.symbol.toUpperCase() + "/" + item.name.split("/")[1]
- : "--"
- }}
+ {{ item.symbol | _symbolName(1) }}
</div>
<div v-if="!kineType" class="text-grey mt-10">{{ title }}</div>
</div>
@@ -179,6 +175,7 @@
...mapGetters({
coinList: "home/coinList",
theme: "home/theme",
+ newcoinArr: "home/newcoinArr",
}),
},
data() {
@@ -198,6 +195,9 @@
// { name:"ADA/USDT",close:"0.493085",change_ratio:"-4.08"},
//]
};
+ },
+ mounted() {
+ this.NEW_CION_LIST();
},
watch: {
symbol(val) {
@@ -225,7 +225,7 @@
}
},
methods: {
- ...mapMutations("home", ["SET_THEME"]),
+ ...mapMutations("home", ["SET_THEME", "NEW_CION_LIST"]),
onRoute(item) {
if (this.islevel) {
if (this.$route.params.symbol !== item.symbol) {
@@ -258,7 +258,10 @@
},
fetchList() {
// 获取行情
- _getHomeList(this.coins.join(",")).then((list) => {
+ const mainArray = this.coins.filter(
+ (item) => !this.newcoinArr.includes(item)
+ );
+ _getHomeList(mainArray.join(",")).then((list) => {
// console.log(list)
this.list = list;
if (this.timeout) {
--
Gitblit v1.9.3