From 967f2171c8ca97ae87e848c7e0d57051e274d51c Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Thu, 20 Nov 2025 09:24:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(ETF=E6=8C=87=E6=95=B0):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=8E=B7=E5=8F=96ETF=E6=8C=87=E6=95=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增getEtfIndexList API接口 - 在indexEtf.vue页面中调用该接口获取数据 - 调整开发环境API地址配置 --- .env.development | 4 ++-- src/api/index.ts | 5 +++++ src/pages/realtimeInfo/indexEtf.vue | 24 ++++++++++-------------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.env.development b/.env.development index db461ce..9a5e003 100644 --- a/.env.development +++ b/.env.development @@ -2,10 +2,10 @@ ENV = development # 本地环境接口地址 -# VITE_API_URL = http://123.60.153.169:8040/apih5 +VITE_API_URL = http://123.60.153.169:8040/apih5 # VITE_API_URL = http://4155gf93ll13.vicp.fun/apih5 # VITE_API_URL = http://123.60.79.143:8041/apih5 # VITE_API_URL =http://localhost:8040/apih5 -VITE_API_URL = https://cankao.cs.com.cn/apih5 +# VITE_API_URL = https://cankao.cs.com.cn/apih5 VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav \ No newline at end of file diff --git a/src/api/index.ts b/src/api/index.ts index 6bcb856..d9d865d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -80,3 +80,8 @@ export const doLogout = (data: any) => { console.log("🚀 ~ doLogout ~ data:", data); return Request.post("/common/logout", data); }; + +// 退出登录 +export const getEtfIndexList = (data: any) => { + return Request.post("/news/etfIndexList", data); +}; diff --git a/src/pages/realtimeInfo/indexEtf.vue b/src/pages/realtimeInfo/indexEtf.vue index 4058cdd..1494063 100644 --- a/src/pages/realtimeInfo/indexEtf.vue +++ b/src/pages/realtimeInfo/indexEtf.vue @@ -94,17 +94,8 @@ import { Session } from "@/utils/storage"; import dayjs from "dayjs/esm/index"; import { - getindustryCount, - getConceptCount, - getTopNewsAll, - getTopIndustry_d, - getTopConcept_d, - getNews_cnt_d, - newsInfoScore, - getTopConceptPeriod, - getTopIndustryPeriod, - getTopSourcePeriod, -} from "@/api/newsInfo"; + getEtfIndexList, +} from "@/api/index"; const listData = ref( @@ -128,8 +119,13 @@ const listData = ref( ] ) -function getData() { - +async function getData() { + let { code, data } = await getEtfIndexList({ + "date": "2026-10-26", + }) + if (code == 200) { + listData.value = data + } } const LoginShow = ref(false); @@ -171,7 +167,7 @@ onMounted(async () => { if (!Session.get("token")) { LoginShow.value = true; } - + getData() });