83 lines
1.7 KiB
JavaScript
83 lines
1.7 KiB
JavaScript
import http from "../http";
|
|
import config from "../config";
|
|
|
|
export default class IndexServe {
|
|
|
|
async class (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.class,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async video (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.video,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async search (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.search,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async banner (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.banner,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async bannerInfo (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.bannerInfo,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
|
|
async threeMeals (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.threeMeals,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async leftMenu (data = {}, header = {}) {
|
|
var res = await http.get({
|
|
url: config.urlList.leftMenu,
|
|
data: data,
|
|
header: header
|
|
})
|
|
res.forEach((v,i)=>{
|
|
v['content']=[]
|
|
}
|
|
)
|
|
return res
|
|
}
|
|
async rightMenu (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.rightMenu,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async rightMenuList (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.rightMenuList,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
async info (data = {}, header = {}) {
|
|
return await http.get({
|
|
url: config.urlList.info,
|
|
data: data,
|
|
header: header
|
|
})
|
|
}
|
|
}
|