From 3f3e2d5977787b0c6e09cd5cba7b41e5fb7d3fd0 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 21 Apr 2024 15:59:28 +0800
Subject: [PATCH] first

---
 src/page/quotes.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/page/quotes.vue b/src/page/quotes.vue
index d16946d..6b730b2 100644
--- a/src/page/quotes.vue
+++ b/src/page/quotes.vue
@@ -95,6 +95,7 @@
     [Tab.name]: Tab,
     [Tabs.name]: Tabs,
   },
+
   async created() {
     this.keywords = this.$route.query.inputdata;
     // console.log(this.inputdata, "this.inputdata");
@@ -106,7 +107,11 @@
     await this.fetchQoutes();
   },
   computed: {
-    ...mapGetters({ coinList: "home/coinList", userInfo: "user/userInfo" }),
+    ...mapGetters({
+      coinList: "home/coinList",
+      userInfo: "user/userInfo",
+      newcoinArr: "home/newcoinArr",
+    }),
   },
   data() {
     const arr = [];
@@ -132,8 +137,14 @@
       sortVal: 0,
     };
   },
+  mounted() {
+    this.NEW_CION_LIST();
+    this.GET_UERS_KYC();
+  },
   methods: {
-    ...mapActions("home", [SET_COIN_LIST]),
+    ...mapActions("home", [SET_COIN_LIST, "NEW_CION_LIST"]),
+    ...mapActions("user", ["GET_UERS_KYC"]),
+
     listSort(val) {
       this.sortVal = val;
     },
@@ -143,8 +154,8 @@
         await this.SET_COIN_LIST();
       }
       const coins = this.coinList.map((item) => item.symbol);
-      const data = await _getHomeList(coins.join(","));
-      console.log(data);
+      const mainArray = coins.filter((item) => !this.newcoinArr.includes(item));
+      const data = await _getHomeList(mainArray.join(","));
       this.tabList[0]["data"] = data.filter((item) =>
         this.myList.includes(item.symbol)
       );
@@ -158,7 +169,6 @@
         clearTimeout(this.timeout);
         this.timeout = null;
       }
-      console.log(this.tabList[1]);
       //排序
       if (this.sortVal == 1) {
         this.tabList[0]["data"] = this.tabList[0]["data"].sort(
@@ -268,7 +278,8 @@
     getFilterData() {
       // 过滤后的数据
       const index = this.active / 1 - 1;
-      console.log(index);
+
+      console.log(index, "====", this.keywords, this.tabList);
       this.tabList[index]["data"] = this.tabList[index]["data"].filter((item) =>
         item.symbol.includes(this.keywords.toLocaleLowerCase())
       );

--
Gitblit v1.9.3