diff --git a/src/api/detail.ts b/src/api/detail.ts
index eba5de1..5b58c3c 100644
--- a/src/api/detail.ts
+++ b/src/api/detail.ts
@@ -42,6 +42,6 @@ export const getListByTag = (data: any) => {
};
// 拓展阅读新闻
-export const getListByNewsExtend = (news_id: string) => {
+export const getDetailFurtherReadData = (news_id: string) => {
return request.get(`/news/detail/${news_id}/furtherReadings`);
};
\ No newline at end of file
diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue
index b2c2ff2..c35a691 100644
--- a/src/components/article/indexNewsInfo.vue
+++ b/src/components/article/indexNewsInfo.vue
@@ -1,7 +1,9 @@
- {{ props.data.title }}
+ {{
+ props.data.title
+ }}
来源:
@@ -15,7 +17,9 @@
编辑:
{{ props.data.editor }}
-->
- {{ props.data.publishTime }}
+ {{
+ props.data.publishTime
+ }}
@@ -104,50 +108,56 @@
-
+
关联个股
-
- {{ item.name }}
- {{ item.code }}
-
-
-
+
+
+ {{ item.name }}
+ {{ item.code }}
+
+
-
+
+
+
+ {{ item.name }}
+ {{ item.code }}
+
+
-
+
拓展阅读
{{ item.title }}
-
- 查看更多
+
+ 查看更多
@@ -177,13 +187,13 @@ import { Session } from "@/utils/storage";
import zhaiyaoImg from "../../assets/zixun/zhaiyao_icon.png";
import { useUserStore } from "@/stores/user";
-const isLogin = ref(Session.get("token"));
+const emit = defineEmits(["getFurtherReadData"]);
const props = defineProps({
data: {
type: Object,
default: () => {},
},
- extendData: {
+ furtherReadData: {
type: Array,
default: () => [],
},
@@ -203,7 +213,7 @@ const tagList1 = ref([
const userStore = useUserStore();
// 登录弹框
-const LoginShow = ref(true);
+const LoginShow = ref(false);
// 显示弹框
const handleShowLogin = () => {
@@ -247,7 +257,7 @@ onLoad((option) => {
intoType.value = option?.intoType || null;
if (!userStore.isLogin) {
- LoginShow.value = true;
+ // LoginShow.value = true;
}
});
@@ -314,8 +324,10 @@ const goNewsDetail = (item: any) => {
};
// 拓展阅读更多
-const getMoreExtendNews = (item: any) => {
- console.log("output >>>>> 更多");
+const isMore = ref(false);
+const getMoreNews = () => {
+ isMore.value = true;
+ emit("getFurtherReadData");
};
diff --git a/src/pages/detail/indexNewsInfo.vue b/src/pages/detail/indexNewsInfo.vue
index d97979d..2d95b59 100644
--- a/src/pages/detail/indexNewsInfo.vue
+++ b/src/pages/detail/indexNewsInfo.vue
@@ -11,7 +11,11 @@
-
+
@@ -36,7 +40,12 @@
import { onMounted, ref } from "vue";
import { onLoad, onShow } from "@dcloudio/uni-app";
import { onReachBottom } from "@dcloudio/uni-app";
-import { fetchArticleDetail, fetchArticleLike, fetchArticleFavorate, getListByNewsExtend } from "@/api/detail";
+import {
+ fetchArticleDetail,
+ fetchArticleLike,
+ fetchArticleFavorate,
+ getDetailFurtherReadData,
+} from "@/api/detail";
import { getNewsList } from "@/api";
import Article from "@/components/article/indexNewsInfo.vue";
import Column from "@/components/column/index.vue";
@@ -50,6 +59,7 @@ const data = ref({});
const newType = ref("");
const columnList = ref([]);
const columnName = ref("");
+const furtherReadData = ref([]);
onReachBottom(() => {
console.log("🚀 ~ onReachBottom ~ onReachBottom:");
@@ -66,6 +76,7 @@ const newList = async (columnId: number) => {
if (res.code === 200) {
// console.log(res.data)
columnList.value = res.data;
+ furtherReadData.value = res.data.furtherReadings || [];
}
};
@@ -191,21 +202,16 @@ const jumpDetail = (item: any) => {
});
};
-
-
// 新闻id
-const news_id = ref('')
-const extendList = ref([]) // 扩展列表
-const getExtendList = ()=> {
-
- getListByNewsExtend(news_id.value).then((res: any) => {
- console.log('output >>>>> res',res);
-
+const news_id = ref("");
+const getFurtherReadData = () => {
+ getDetailFurtherReadData(news_id.value).then((res: any) => {
+ furtherReadData.value = [...furtherReadData.value, ...res.data];
});
-}
+};
onLoad(async (option: any) => {
- news_id.value = option.id
+ news_id.value = option.id;
aplus_queue.push({
action: "aplus.sendPV",
arguments: [{ is_auto: false }], // 此处上报的数据暂时在后台没有展示
@@ -230,9 +236,6 @@ onLoad(async (option: any) => {
id: option.id,
});
- // 获取拓展阅读
- getExtendList();
-
if (res.code === 200) {
data.value = res.data;
diff --git a/src/pages/realtimeInfo/components/ConceptNewsView/index.vue b/src/pages/realtimeInfo/components/ConceptNewsView/index.vue
index c172348..4e17f15 100644
--- a/src/pages/realtimeInfo/components/ConceptNewsView/index.vue
+++ b/src/pages/realtimeInfo/components/ConceptNewsView/index.vue
@@ -1,25 +1,82 @@
-
+
风口概念
近一个月热门
- 医药生物
- 医药生物
- 医药生物
- 医药生物
+
+ {{ item.content }}
+
- 据称中国科技巨头赴海外训练AI模型以获取英伟达芯片据称中国科技巨头赴海外训练AI模型以获取英伟达芯片据称中国科技巨头赴海外训练AI模型以获取英伟达芯片
-
+ {{ oneData.title }}