import { request } from './request' const api = { addform(data) { return request({ url: 'api.php/cms/addform/fcode/3', method: 'post', data }) }, getAbout(data) { return request({ url: 'api.php/about/'+data, method: 'get', data:{} }) }, getDetail(data) { return request({ url: 'api.php/content/'+data, method: 'get', data:{} }) }, getList(data) { return request({ url: 'api.php/list/'+data, method: 'get', data:{} }) }, getSlide(data) { return request({ url: 'api.php/cms/slide/gid/1', method: 'get', data }) }, getNavScode(data) { return request({ url: 'api.php/cms/nav/scode/8', method: 'get', data }) }, getCompany(data) { return request({ url: 'api.php/cms/company', method: 'get', data }) }, } export default api