diff --git a/src/api/detail.ts b/src/api/detail.ts index 71b61cc..1ccde57 100644 --- a/src/api/detail.ts +++ b/src/api/detail.ts @@ -7,10 +7,9 @@ import request from "@/utils/index"; * @returns */ export const fetchArticleDetail = (data: any) => { - return request.get(`/news/detail/${data.id}`); + return request.get(`/news/detail/${data.id}?phone=${data?.phone || null}`); }; - /** * 文章点赞 * @param data @@ -33,11 +32,11 @@ export const fetchArticleFavorate = (data: any) => { // 热门行业 export const getListByTagIndustry = (data: any) => { - console.log("🚀 ~ getListByTagIndustry ~ data:", data) + console.log("🚀 ~ getListByTagIndustry ~ data:", data); return request.get("/news/list/industry", { name: data.name }); }; // 概念标签 export const getListByTag = (data: any) => { return request.get("/news/list/tag", { name: data.name }); -}; \ No newline at end of file +}; diff --git a/src/components/RankListMini.vue b/src/components/RankListMini.vue index ee4eab2..4d27971 100644 --- a/src/components/RankListMini.vue +++ b/src/components/RankListMini.vue @@ -27,7 +27,7 @@ - {{ item.source }} + 中国证券报 {{ dayjs(item.publish_time).format("YYYY-MM-DD HH:MM:ss") }} diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue index 2a53b01..e393f50 100644 --- a/src/components/article/indexNewsInfo.vue +++ b/src/components/article/indexNewsInfo.vue @@ -8,7 +8,8 @@ 来源: - {{ isDomestic ? "中国证券报" : props.data.tag }} + + 中国证券报 diff --git a/src/pages/detail/indexNewsInfo.vue b/src/pages/detail/indexNewsInfo.vue index 4d06b09..175b155 100644 --- a/src/pages/detail/indexNewsInfo.vue +++ b/src/pages/detail/indexNewsInfo.vue @@ -114,7 +114,7 @@ onLoad(async (option: any) => { newType.value = option.type || 14; const res = await fetchArticleDetail({ id: option.id, - // id: 763, + phone: option?.phone || null, }); if (res.code === 200) {