diff --git a/src/api/newsInfo.ts b/src/api/newsInfo.ts index 5c52abd..49cbe37 100644 --- a/src/api/newsInfo.ts +++ b/src/api/newsInfo.ts @@ -17,7 +17,8 @@ export const getConceptCount = (data: any) => { // 概念标签贴标 export const getTopNews = (data: any) => { - return request.get("/top_news_h5_d", data); + // return request.get("/top_news_h5_d", data); + return request.get("/top_news_release_h5_all", data); }; // 概念标签贴标 export const getTopNewsAll = (data: any) => { diff --git a/src/components/RankList.vue b/src/components/RankList.vue index 3ba5c84..b78a090 100644 --- a/src/components/RankList.vue +++ b/src/components/RankList.vue @@ -19,6 +19,27 @@ {{ item.title }} {{ item.summary }} + + + + + + {{ + item + }} + + + + + + {{ + item + }} + + + + + {{ item.source }} @@ -67,7 +88,11 @@ watch( return; } - rankListLocal.value.push(item); + rankListLocal.value.push({ + ...item, + conceptLabels: JSON.parse(item.concept_label), + industryLabels: JSON.parse(item.industry_label), + }); }); loading.value = false; @@ -86,7 +111,11 @@ watch( return; } - rankListLocal.value.push(item); + rankListLocal.value.push({ + ...item, + conceptLabels: JSON.parse(item.concept_label), + industryLabels: JSON.parse(item.industry_label), + }); }); loading.value = false; } @@ -267,4 +296,27 @@ const handlePopupErrorCallback = () => { align-items: center; gap: 10rpx; } + +.r_r_tags { + // margin-left: 20rpx; + width: 85vw; + overflow-x: scroll; +} + +.r_tags { + display: flex; + gap: 10rpx; + + .tag { + font-family: PingFangSC, PingFang SC; + font-weight: 400; + font-size: 22rpx; + color: #3f80fa; + + padding: 5rpx 20rpx; + border-radius: 10rpx; + + white-space: nowrap; + } +}