From 37dee18a22fb2a013230b6426af745d164526aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=85=E5=85=89=E5=AD=9F?= Date: Mon, 9 Feb 2026 16:03:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BC=98=E5=8C=96=E8=B5=84=E8=AE=AF?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E5=B1=95=E7=A4=BA=E5=92=8C=E8=82=A1=E7=A5=A8?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=B1=8F=E8=94=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/foreign/index.vue | 41 ++++++++++++++++++- src/pages/macroscopic/index.vue | 2 +- .../components/ConceptNewsView/index.vue | 6 +-- .../components/IndustryNewsView/index.vue | 4 +- src/pages/recommend/index.vue | 4 +- src/utils/util.ts | 6 +-- 6 files changed, 50 insertions(+), 13 deletions(-) diff --git a/src/pages/foreign/index.vue b/src/pages/foreign/index.vue index 65f6cbb..2fc0b14 100644 --- a/src/pages/foreign/index.vue +++ b/src/pages/foreign/index.vue @@ -17,6 +17,22 @@ + + + + @@ -32,7 +48,7 @@ {{ news.timeStr }} 来自 - {{ news.source }} + 中国证券报 @@ -215,13 +231,34 @@ onMounted(async () => { } .page-main { + position: relative; width: 100%; - padding: 60rpx 30rpx 0; + min-height: calc(100vh - 400rpx); + padding: 30rpx 30rpx 0; background: #f3f5f8; border-radius: 24rpx 24rpx 0px 0px; overflow: hidden; box-sizing: border-box; + &::before { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 140rpx; + background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%); + z-index: 1; + } + + .page-search { + position: relative; + margin-bottom: 39rpx; + z-index: 2; + } +} + +.page-main { .timeline { display: flex; &.mask { diff --git a/src/pages/macroscopic/index.vue b/src/pages/macroscopic/index.vue index 292772a..71ff7fd 100644 --- a/src/pages/macroscopic/index.vue +++ b/src/pages/macroscopic/index.vue @@ -35,7 +35,7 @@ {{ news.summary }} - {{ news.source }} + 中国证券报 {{ `${item.day} ${news.timeStr}` }} diff --git a/src/pages/realtimeInfo/components/ConceptNewsView/index.vue b/src/pages/realtimeInfo/components/ConceptNewsView/index.vue index e188f52..e65ba46 100644 --- a/src/pages/realtimeInfo/components/ConceptNewsView/index.vue +++ b/src/pages/realtimeInfo/components/ConceptNewsView/index.vue @@ -6,11 +6,11 @@ - {{ item.content }} + {{ item.content.split("-")[1] }} - {{ oneData.title }} + {{ oneData?.title }} @@ -29,7 +29,7 @@ const oneData = ref({}); const userStore = useUserStore(); const start_time = dayjs().subtract(1, "month").format("YYYY-MM-DD"); const end_time = dayjs().format("YYYY-MM-DD"); -const limit_num = 3 +const limit_num = 4; // 热门行业top10 async function getTopConcept_dFn() { diff --git a/src/pages/realtimeInfo/components/IndustryNewsView/index.vue b/src/pages/realtimeInfo/components/IndustryNewsView/index.vue index 5a45c0b..35b894d 100644 --- a/src/pages/realtimeInfo/components/IndustryNewsView/index.vue +++ b/src/pages/realtimeInfo/components/IndustryNewsView/index.vue @@ -16,11 +16,11 @@ - {{ oneData.title }} + {{ oneData?.title }} - {{ oneData.summary }} + {{ oneData?.summary }} diff --git a/src/pages/recommend/index.vue b/src/pages/recommend/index.vue index a7f5756..7bf1775 100644 --- a/src/pages/recommend/index.vue +++ b/src/pages/recommend/index.vue @@ -53,10 +53,10 @@ > {{ news.timeStr }} - + 来自 - {{ news.source }} + 中国证券报 diff --git a/src/utils/util.ts b/src/utils/util.ts index e71c191..4912d9c 100644 --- a/src/utils/util.ts +++ b/src/utils/util.ts @@ -88,11 +88,11 @@ export function maskStockNameProportional(name: string) { // 根据名称长度动态决定屏蔽比例 let maskRatio; - if (name.length <= 2) { + if (name.length <= 4) { maskRatio = 0.5; // 短名称屏蔽一半 - } else if (name.length <= 4) { - maskRatio = 0.6; // 中等长度屏蔽60% } else if (name.length <= 6) { + maskRatio = 0.6; // 中等长度屏蔽60% + } else if (name.length <= 8) { maskRatio = 0.7; // 较长名称屏蔽70% } else { maskRatio = 0.8; // 长名称屏蔽80%