diff --git a/src/api/index.ts b/src/api/index.ts
index 09e250a..8151a16 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -93,7 +93,7 @@ export const fetchEtfDetail = (data: any) => {
// 海外先机
export const getForeignList = (data: any) => {
- return Request.get("/news/exclusiveList", data);
+ return Request.get("/news/exclusiveList", {params: data});
};
// 编辑精选
diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue
index 6fe1dfc..b57dca2 100644
--- a/src/components/article/indexNewsInfo.vue
+++ b/src/components/article/indexNewsInfo.vue
@@ -115,20 +115,18 @@
>
关联个股
-
-
- {{ item.name }}
- {{ item.code }}
-
-
+
-
-
+
- 推荐行业
+ 预期风口
换一换
diff --git a/src/pages/foreign/index.vue b/src/pages/foreign/index.vue
index 2fc0b14..64ed3c2 100644
--- a/src/pages/foreign/index.vue
+++ b/src/pages/foreign/index.vue
@@ -60,7 +60,7 @@
{{ news.summary }}
-
+
{{ news.companyName }}
@@ -142,7 +142,9 @@ function goDetail(item: any) {
const data = ref([]);
const getList = async () => {
- const result = await getForeignList({});
+ const result = await getForeignList({
+ keyword: keyword.value,
+ });
if (result.code === 200) {
const { list, total } = result.data;
data.value = list;
@@ -151,6 +153,11 @@ const getList = async () => {
}
};
+const keyword = ref("");
+const handleSearch = () => {
+ getList();
+};
+
onMounted(async () => {
if (!userStore.isLogin) {
handleShowLogin();
@@ -397,6 +404,7 @@ onMounted(async () => {
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
+ margin-bottom: 20rpx;
}
}
diff --git a/src/pages/recommend/index.vue b/src/pages/recommend/index.vue
index 7bf1775..d28b8e8 100644
--- a/src/pages/recommend/index.vue
+++ b/src/pages/recommend/index.vue
@@ -463,6 +463,7 @@ onMounted(async () => {
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
+ margin-bottom: 20rpx;
}
}