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%