From 0c9a07e76df402b768bf2601762fbbe9192e1331 Mon Sep 17 00:00:00 2001
From: "34701892@qq.com" <34701892@qq.com>
Date: Mon, 22 Sep 2025 21:26:45 +0800
Subject: [PATCH] =?UTF-8?q?refactor(=E8=B5=84=E8=AE=AF=E9=A1=B5=E9=9D=A2):?=
=?UTF-8?q?=20=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E6=95=B0=E6=8D=AE=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=8C=96=E9=A1=BA=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
调整页面元素的样式布局以提高可读性,将数据初始化逻辑重新排序以优化加载流程
---
src/pages/realtimeInfo/index.vue | 34 +++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/src/pages/realtimeInfo/index.vue b/src/pages/realtimeInfo/index.vue
index e9e0f67..a8cd2e8 100644
--- a/src/pages/realtimeInfo/index.vue
+++ b/src/pages/realtimeInfo/index.vue
@@ -58,7 +58,8 @@
-
+
@@ -72,7 +73,8 @@
-
+
查看全部
@@ -84,7 +86,8 @@
-
+
查看全部
@@ -97,13 +100,12 @@
退出登录
-
+
-
+
+
@@ -127,6 +129,14 @@ import indexMenuTitle from "@/components/indexMenuTitle.vue"; // 路径根据实
import dayjs from "dayjs/esm/index";
import HotIndustryList from "@/components/HotIndustryList.vue"; // 路径根据实际调整
+const d = new Date();
+const year = d.getFullYear();
+let month = d.getMonth() + 1;
+month = month < 10 ? `0${month}` : month;
+const date = d.getDate();
+const maxDate = `${year}-${month}-${date + 1}`;
+const minDate = `${year}-${month}-${date - 10}`;
+
const calendarShow = ref(false);
const newsList = ref([]);
@@ -212,8 +222,7 @@ function initData() {
getLineData();
// 获取顶部两个统计数据
getTopNum();
- // 概念标签贴标
- getNewsList();
+
// 热门行业top10
getTopIndustry_dFn();
// 风口概念池top10
@@ -277,6 +286,9 @@ onMounted(async () => {
if (!Session.get("token")) {
LoginShow.value = true;
}
+
+ // 概念标签贴标
+ getNewsList();
});
/**