From 2336715d1cac14a65be7fcacb65e3b5c58a0e4a0 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Fri, 13 Feb 2026 12:00:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除index.vue、indexRelease.vue和indexPC.vue中的定时刷新逻辑,避免不必要的性能消耗 优化indexPC.vue中的代码格式,包括标签换行和样式统一 --- src/pages/realtimeInfo/index.vue | 6 +-- src/pages/realtimeInfo/indexRelease.vue | 6 +-- src/pages/realtimeInfo/pc/indexPC.vue | 70 +++++++++++++++++-------- 3 files changed, 54 insertions(+), 28 deletions(-) diff --git a/src/pages/realtimeInfo/index.vue b/src/pages/realtimeInfo/index.vue index e527f10..1bc8b70 100644 --- a/src/pages/realtimeInfo/index.vue +++ b/src/pages/realtimeInfo/index.vue @@ -294,9 +294,9 @@ function onViewAll(type1) { } } -const timer = setInterval(() => { - initData(); -}, 5000); +// const timer = setInterval(() => { +// initData(); +// }, 5000); function showCalendar() { calendarShow.value = true; diff --git a/src/pages/realtimeInfo/indexRelease.vue b/src/pages/realtimeInfo/indexRelease.vue index a250e8e..23d9edc 100644 --- a/src/pages/realtimeInfo/indexRelease.vue +++ b/src/pages/realtimeInfo/indexRelease.vue @@ -223,9 +223,9 @@ function onViewAll(type) { } } -const timer = setInterval(() => { - initData(); -}, 5000); +// const timer = setInterval(() => { +// initData(); +// }, 5000); const LoginShow = ref(false); const isLoginStatus = ref(); diff --git a/src/pages/realtimeInfo/pc/indexPC.vue b/src/pages/realtimeInfo/pc/indexPC.vue index dbacc93..97db417 100644 --- a/src/pages/realtimeInfo/pc/indexPC.vue +++ b/src/pages/realtimeInfo/pc/indexPC.vue @@ -28,20 +28,26 @@ 行业分类: - {{ - item - }} + {{ item }} 概念标签: - {{ - item - }} + {{ item }} @@ -53,8 +59,13 @@ --> - + @@ -65,7 +76,6 @@ import { fetchArticleDetail } from "@/api/detail"; import LoginPopup from "@/components/loginPopup/index.vue"; import { Session } from "@/utils/storage"; - function goBack() { // uni.navigateBack(); @@ -154,7 +164,9 @@ const handlePopupErrorCallback = () => { } .menu_item { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: bold; font-size: 32rpx; color: #1a1a1a; @@ -184,7 +196,9 @@ const handlePopupErrorCallback = () => { } text { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: normal; font-size: 38rpx; color: #919191; @@ -201,7 +215,9 @@ const handlePopupErrorCallback = () => { } .title { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: bold; font-size: 48rpx; color: #1a1a1a; @@ -214,14 +230,18 @@ const handlePopupErrorCallback = () => { margin-top: 10rpx; .srouse { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: 400; font-size: 32rpx; color: #919191; } .time { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: 400; font-size: 32rpx; color: #919191; @@ -229,7 +249,9 @@ const handlePopupErrorCallback = () => { } .abstract { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: 400; font-size: 32rpx; color: #666666; @@ -244,8 +266,6 @@ const handlePopupErrorCallback = () => { border-radius: 20rpx; margin-top: 50rpx; - - } .r_tag_two { @@ -259,7 +279,9 @@ const handlePopupErrorCallback = () => { gap: 20rpx; .tag { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: 400; font-size: 26rpx; color: #ffb100; @@ -275,7 +297,9 @@ const handlePopupErrorCallback = () => { } .tag_title { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: 400; font-size: 28rpx; color: #999999; @@ -287,7 +311,9 @@ const handlePopupErrorCallback = () => { } .text { - font-family: PingFangSC, PingFang SC; + font-family: + PingFangSC, + PingFang SC; font-weight: 400; font-size: 32rpx; color: #1a1a1a;