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(); }); /**