fix: 移除实时信息页面的定时刷新功能并优化代码格式

移除index.vue、indexRelease.vue和indexPC.vue中的定时刷新逻辑,避免不必要的性能消耗
优化indexPC.vue中的代码格式,包括标签换行和样式统一
This commit is contained in:
34701892@qq.com 2026-02-13 12:00:55 +08:00
parent 2a9f835a0f
commit 2336715d1c
3 changed files with 54 additions and 28 deletions

View File

@ -294,9 +294,9 @@ function onViewAll(type1) {
} }
} }
const timer = setInterval(() => { // const timer = setInterval(() => {
initData(); // initData();
}, 5000); // }, 5000);
function showCalendar() { function showCalendar() {
calendarShow.value = true; calendarShow.value = true;

View File

@ -223,9 +223,9 @@ function onViewAll(type) {
} }
} }
const timer = setInterval(() => { // const timer = setInterval(() => {
initData(); // initData();
}, 5000); // }, 5000);
const LoginShow = ref(false); const LoginShow = ref(false);
const isLoginStatus = ref(); const isLoginStatus = ref();

View File

@ -28,20 +28,26 @@
<view style="display: flex" v-if="infoData?.industryLabels && infoData?.industryLabels.length > 0"> <view style="display: flex" v-if="infoData?.industryLabels && infoData?.industryLabels.length > 0">
<text class="tag_title">行业分类</text> <text class="tag_title">行业分类</text>
<view class="r_tags"> <view class="r_tags">
<view class="tag" style="background-color: #fff9ec; color: #ffb100" <view
v-for="(item, index) in infoData?.industryLabels" :key="index">{{ class="tag"
item style="background-color: #fff9ec; color: #ffb100"
}}</view> v-for="(item, index) in infoData?.industryLabels"
:key="index"
>{{ item }}</view
>
</view> </view>
</view> </view>
<view style="display: flex" v-if="infoData?.conceptLabels && infoData?.conceptLabels.length > 0"> <view style="display: flex" v-if="infoData?.conceptLabels && infoData?.conceptLabels.length > 0">
<text class="tag_title">概念标签</text> <text class="tag_title">概念标签</text>
<view class="r_tags"> <view class="r_tags">
<view class="tag" style="background-color: #f5f8fe; color: #007aff" <view
v-for="(item, index) in infoData?.conceptLabels" :key="index">{{ class="tag"
item style="background-color: #f5f8fe; color: #007aff"
}}</view> v-for="(item, index) in infoData?.conceptLabels"
:key="index"
>{{ item }}</view
>
</view> </view>
</view> </view>
</view> </view>
@ -53,8 +59,13 @@
</view> --> </view> -->
</view> </view>
<LoginPopup :show="LoginShow" mode="center" @handlePopupClose="handlePopupClose" <LoginPopup
@handlePopupSuccessCallback="handlePopupSuccessCallback" @handlePopupErrorCallback="handlePopupErrorCallback" /> :show="LoginShow"
mode="center"
@handlePopupClose="handlePopupClose"
@handlePopupSuccessCallback="handlePopupSuccessCallback"
@handlePopupErrorCallback="handlePopupErrorCallback"
/>
</view> </view>
</template> </template>
@ -65,7 +76,6 @@ import { fetchArticleDetail } from "@/api/detail";
import LoginPopup from "@/components/loginPopup/index.vue"; import LoginPopup from "@/components/loginPopup/index.vue";
import { Session } from "@/utils/storage"; import { Session } from "@/utils/storage";
function goBack() { function goBack() {
// uni.navigateBack(); // uni.navigateBack();
@ -154,7 +164,9 @@ const handlePopupErrorCallback = () => {
} }
.menu_item { .menu_item {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 32rpx;
color: #1a1a1a; color: #1a1a1a;
@ -184,7 +196,9 @@ const handlePopupErrorCallback = () => {
} }
text { text {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: normal; font-weight: normal;
font-size: 38rpx; font-size: 38rpx;
color: #919191; color: #919191;
@ -201,7 +215,9 @@ const handlePopupErrorCallback = () => {
} }
.title { .title {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: bold; font-weight: bold;
font-size: 48rpx; font-size: 48rpx;
color: #1a1a1a; color: #1a1a1a;
@ -214,14 +230,18 @@ const handlePopupErrorCallback = () => {
margin-top: 10rpx; margin-top: 10rpx;
.srouse { .srouse {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 32rpx; font-size: 32rpx;
color: #919191; color: #919191;
} }
.time { .time {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 32rpx; font-size: 32rpx;
color: #919191; color: #919191;
@ -229,7 +249,9 @@ const handlePopupErrorCallback = () => {
} }
.abstract { .abstract {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 32rpx; font-size: 32rpx;
color: #666666; color: #666666;
@ -244,8 +266,6 @@ const handlePopupErrorCallback = () => {
border-radius: 20rpx; border-radius: 20rpx;
margin-top: 50rpx; margin-top: 50rpx;
} }
.r_tag_two { .r_tag_two {
@ -259,7 +279,9 @@ const handlePopupErrorCallback = () => {
gap: 20rpx; gap: 20rpx;
.tag { .tag {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 26rpx; font-size: 26rpx;
color: #ffb100; color: #ffb100;
@ -275,7 +297,9 @@ const handlePopupErrorCallback = () => {
} }
.tag_title { .tag_title {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: #999999; color: #999999;
@ -287,7 +311,9 @@ const handlePopupErrorCallback = () => {
} }
.text { .text {
font-family: PingFangSC, PingFang SC; font-family:
PingFangSC,
PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 32rpx; font-size: 32rpx;
color: #1a1a1a; color: #1a1a1a;