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(() => {
initData();
}, 5000);
// const timer = setInterval(() => {
// initData();
// }, 5000);
function showCalendar() {
calendarShow.value = true;

View File

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

View File

@ -28,20 +28,26 @@
<view style="display: flex" v-if="infoData?.industryLabels && infoData?.industryLabels.length > 0">
<text class="tag_title">行业分类</text>
<view class="r_tags">
<view class="tag" style="background-color: #fff9ec; color: #ffb100"
v-for="(item, index) in infoData?.industryLabels" :key="index">{{
item
}}</view>
<view
class="tag"
style="background-color: #fff9ec; color: #ffb100"
v-for="(item, index) in infoData?.industryLabels"
:key="index"
>{{ item }}</view
>
</view>
</view>
<view style="display: flex" v-if="infoData?.conceptLabels && infoData?.conceptLabels.length > 0">
<text class="tag_title">概念标签</text>
<view class="r_tags">
<view class="tag" style="background-color: #f5f8fe; color: #007aff"
v-for="(item, index) in infoData?.conceptLabels" :key="index">{{
item
}}</view>
<view
class="tag"
style="background-color: #f5f8fe; color: #007aff"
v-for="(item, index) in infoData?.conceptLabels"
:key="index"
>{{ item }}</view
>
</view>
</view>
</view>
@ -53,8 +59,13 @@
</view> -->
</view>
<LoginPopup :show="LoginShow" mode="center" @handlePopupClose="handlePopupClose"
@handlePopupSuccessCallback="handlePopupSuccessCallback" @handlePopupErrorCallback="handlePopupErrorCallback" />
<LoginPopup
:show="LoginShow"
mode="center"
@handlePopupClose="handlePopupClose"
@handlePopupSuccessCallback="handlePopupSuccessCallback"
@handlePopupErrorCallback="handlePopupErrorCallback"
/>
</view>
</template>
@ -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;