api.js 317 B

12345678
  1. const { http } = uni.$u
  2. // 获取菜单
  3. export const fetchMenu = (params, config = {}) => http.post(
  4. '/ebapi/public_api/index', params, config);
  5. export const fetchContentInfo = (params) => http.get('/cp/contentInfo/list',
  6. { params });
  7. export const fetchContentDetail = (id) => http.get(`/cp/contentInfo/${id}`);