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.
53 lines
822 B
53 lines
822 B
3 months ago
|
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
|