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.
|
|
|
import axios from 'axios';
|
|
|
|
let { proxyUrl, msgUrl } = require('@/config/setting');
|
|
|
|
|
|
|
|
const apiDocs = `${proxyUrl}`;
|
|
|
|
const carousel = `${apiDocs}/carousel`; // 轮播图
|
|
|
|
const content = `${apiDocs}/content`; // 网站内容
|
|
|
|
const constant = `${apiDocs}/constant`; // 飘窗
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}&title=${params.title || ''}`,
|
|
|
|
);
|
|
|
|
|
|
|
|
// 查询图片新闻列表
|
|
|
|
export const getContentImg = 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}`);
|
|
|
|
|
|
|
|
// 查询飘窗内容
|
|
|
|
export const getBay = params => axios.get(`${constant}/get?code=piaochuang`);
|
|
|
|
|
|
|
|
// 查询其他链接
|
|
|
|
export const getLink = params => axios.get(`${constant}/get?code=otherLink`);
|