You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
914 B
28 lines
914 B
3 years ago
|
import axios from 'axios';
|
||
|
let { proxyUrl, msgUrl } = require('@/config/setting');
|
||
|
|
||
|
const apiDocs = `${proxyUrl}`;
|
||
|
const carousel = `${apiDocs}/carousel`; // 轮播图
|
||
|
const content = `${apiDocs}/content`; // 网站内容
|
||
|
|
||
|
// websocket基础地址
|
||
|
export const WS_BASE_URL = msgUrl;
|
||
|
|
||
|
// 轮播图查询
|
||
|
export const carouselQuery = params => axios.post(`${carousel}/query`, params);
|
||
|
|
||
|
// 官网首页列表查询
|
||
|
export const getContent = params =>
|
||
|
axios.get(
|
||
|
`${content}/list?showPage=${params.showPage}&
|
||
|
year=${params.year}&showType=${params.showType}&
|
||
|
pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
|
||
|
);
|
||
|
|
||
|
// 官网内容详情查询
|
||
|
export const getDetail = params => axios.get(`${content}/detail?showPage=${params.showPage}&introId=${params.introId}`);
|
||
|
|
||
|
// 查询当前code下的年份
|
||
|
|
||
|
export const getCondition = params => axios.get(`${content}/condition?showPage=${params.showPage}`);
|