feat(ETF指数): 添加获取ETF指数列表功能
- 新增getEtfIndexList API接口 - 在indexEtf.vue页面中调用该接口获取数据 - 调整开发环境API地址配置
This commit is contained in:
parent
718d74e41b
commit
967f2171c8
|
|
@ -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
|
||||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue