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() });