发表于: 2019-11-18 20:36:55
0 1064
今天完成的事情:写后台树洞管理,用了折叠表格的方式做,和后端探讨前台接口方案,调试接口,完成story1
获取前台视频列表接口方式
const actions = {
//无参获取
async AvideoTwo_video({commit}) {
const response = await axios.get("/a/list/study",{
params:{
page:state.videoTwo.page,
type:20,
// title:ink.state.title,
// sort:ink.state.sort,
// course:home.state.home._course, //等待数据完善开启
// grade:gradeNav.state.gradeNav.grade // 等待数据完善开启
}
})
window.console.log(response.data),
commit('MvideoTwo_video', response.data);
},
//切换年级
async AvideoTwo_cours({commit}) {
const response = await axios.get("/a/list/study",{
params:{
page:state.videoTwo.page,
type:20,
course:home.state.home._course,
}
});
window.console.log(response.data),
commit('MvideoTwo_video', response.data);
},
//视频搜索
async AvideoTwo_sousou({commit}) {
const response = await axios.get("/a/list/study",{
params:{
type:20,
title:ink.state.title,
sort:ink.state.sort,
grade:0
}
});
window.console.log(response.data),
commit('MvideoTwo_video', response.data);
}
明天计划的事情:接通前台所有接口
遇到的问题:
今天写着写着突然报这个错误,郁闷好好久,
出去转了转 发现太蠢了,犯了一个低级错误,队友生病了,剩我一个人,压力比较大,状态不太对
收获:
评论