dev_oauth
杨树明 6 years ago
parent 10df83a6ce
commit 5a90c368d8

@ -81,32 +81,7 @@ class PathDetailIndex extends Component{
cardsModalsave:this.cardsModalsave,
user_id:undefined,
loadtype:false,
courses:[
{
course_id: 1309,
first_category_url: "/courses/1309/informs",
start_date: "2019-07-16", // 开始时间
end_date: "2050-12-31", // 结束时间
student_count: 112, // 学习人数
course_identity: 5, // 当前用户在该课堂的身份
course_status: {
status: 1, // status0即将开课 1进行中 2已结束
time: "进行至第5周共1642周" // time当前进度
}
},
{
course_id: 1319,
first_category_url: "/courses/1319/shixun_homeworks/11549",
start_date:"2019-08-16",
end_date:"2050-12-31",
student_count: 112,
course_identity: 1,
course_status: {
status: 0,
time: ""
}
}
],
courses:undefined,
items: getItems(10)
}
this.onDragEnd = this.onDragEnd.bind(this);
@ -187,7 +162,7 @@ class PathDetailIndex extends Component{
if(result.data.allow_visit===true){
this.setState({
detailInfoList:result.data,
// courses:result.data.courses
courses:result.data.courses
// items: getItems(result.data.members.length),
})
}

Loading…
Cancel
Save