提交首页

This commit is contained in:
daihh
2022-11-01 21:07:47 +08:00
parent db058b10ba
commit 50d19dcb0e

View File

@@ -828,9 +828,9 @@
}; };
apiIndex.courselist(course).then(res => { apiIndex.courselist(course).then(res => {
if (res.status == 200 && res.result.list.length > 0) { if (res.status == 200 && res.result.length > 0) {
let courseIds = []; let courseIds = [];
res.result.list.forEach(item => { res.result.forEach(item => {
item.authorInfo = { item.authorInfo = {
aid: '', aid: '',
name: '', name: '',
@@ -841,13 +841,13 @@
}; };
courseIds.push(item.id); courseIds.push(item.id);
}); });
this.loadCouserTeacher(res.result.list, courseIds); this.loadCouserTeacher(res.result, courseIds);
this.courseList.list = res.result.list; this.courseList.list = res.result;
this.couname = res.result.list.name; //this.couname = res.result.list.name;
if (res.result.count - pageIndex * num < 8) { // if (res.result.count - pageIndex * num < 8) {
this.pageIndex = 0; // this.pageIndex = 0;
} // }
this.isNext = true; // this.isNext = true;
// } // }