From 35f3f260f3d3c51ac2256899ade3b9a144b46b28 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Fri, 19 Apr 2024 05:58:04 +0800
Subject: [PATCH] first

---
 src/page/home.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/page/home.vue b/src/page/home.vue
index 0c31047..5ff5ae8 100644
--- a/src/page/home.vue
+++ b/src/page/home.vue
@@ -137,6 +137,7 @@
       coinList: "home/coinList",
       currency: "home/currency",
       coinArr: "home/coinArr",
+      newcoinArr: "home/newcoinArr",
       hotArr: "home/hotArr",
       userInfo: "user/userInfo",
       theme: "home/theme",
@@ -169,7 +170,7 @@
     };
   },
   methods: {
-    ...mapActions("home", [SET_COIN_LIST]),
+    ...mapActions("home", [SET_COIN_LIST, "NEW_CION_LIST"]),
     fetchUnread() {
       // 获取未读
       _getUnreadMsg().then((unread_num) => {
@@ -182,7 +183,12 @@
     },
     async fetchQList() {
       // 获取行情
-      const list = await _getHomeList(this.coinArr.join(",")).catch(() => {
+      // console.log(this.newcoinArr, "[[[[[]]]]]");
+      const mainArray = this.coinArr.filter(
+        (item) => !this.newcoinArr.includes(item)
+      );
+
+      const list = await _getHomeList(mainArray.join(",")).catch(() => {
         this.timeout = setTimeout(() => {
           this.fetchQList();
         }, 1000);
@@ -331,6 +337,7 @@
     },
   },
   async created() {
+    await this.NEW_CION_LIST();
     this.getIsSave();
     this.getNews();
     this.getPopupNews();
@@ -340,6 +347,7 @@
   async activated() {
     this.getNews();
     this.getPopupNews();
+    await this.NEW_CION_LIST();
     await this.SET_COIN_LIST();
     this.startTimeout();
     if (this.userInfo.token) {

--
Gitblit v1.9.3