mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
提交
This commit is contained in:
BIN
public/ad/dlg(1).png
Normal file
BIN
public/ad/dlg(1).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 302 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 411 KiB |
@@ -78,7 +78,9 @@ const getTeacherByCourseIDs = function(ids){
|
|||||||
const studyCounts=function(num){
|
const studyCounts=function(num){
|
||||||
return ajax.get('/xboe/school/study/course/studyCounts?num='+num);
|
return ajax.get('/xboe/school/study/course/studyCounts?num='+num);
|
||||||
}
|
}
|
||||||
|
const courseSearch=function(query){
|
||||||
|
return ajax.post('/xboe/m/course/fulltext/search',query);
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
list,
|
list,
|
||||||
pageList,
|
pageList,
|
||||||
@@ -86,5 +88,6 @@ export default {
|
|||||||
ranking,
|
ranking,
|
||||||
scorelist,
|
scorelist,
|
||||||
getTeacherByCourseIDs,
|
getTeacherByCourseIDs,
|
||||||
studyCounts
|
studyCounts,
|
||||||
|
courseSearch
|
||||||
}
|
}
|
||||||
|
|||||||
1401
src/views/portal/course/Index(1).vue
Normal file
1401
src/views/portal/course/Index(1).vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -627,26 +627,8 @@ export default {
|
|||||||
//console.log(this.noDataList, this.totalPages, "this.noDataList");
|
//console.log(this.noDataList, this.totalPages, "this.noDataList");
|
||||||
// 隐藏loadMore
|
// 隐藏loadMore
|
||||||
this.moreState = 2;
|
this.moreState = 2;
|
||||||
this.noDataList &&
|
await apiCoursePortal
|
||||||
(await apiOldCourse
|
.courseSearch(this.course)
|
||||||
.courseList(oldParams)
|
|
||||||
.then(oldRs => {
|
|
||||||
if (oldRs.status == 200 && oldRs.result.dataList.length > 0) {
|
|
||||||
let list = that.filterConversion(oldRs.result.dataList);
|
|
||||||
//list.name = list.name.replace(/<[^>]+>|&[^>]+;/g,"").trim();
|
|
||||||
data.push(...list);
|
|
||||||
that.moreState = 1;
|
|
||||||
} else {
|
|
||||||
that.noDataList = false;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(err => {
|
|
||||||
that.noDataList = false;
|
|
||||||
}));
|
|
||||||
|
|
||||||
this.noPageList &&
|
|
||||||
(await apiCoursePortal
|
|
||||||
.pageList(this.course)
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.status == 200 && res.result.list.length > 0) {
|
if (res.status == 200 && res.result.list.length > 0) {
|
||||||
this.totalPages = res.result.totalPages;
|
this.totalPages = res.result.totalPages;
|
||||||
@@ -677,7 +659,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
that.loadCouserTeacher(res.result.list, courseIds);
|
that.loadCouserTeacher(res.result.list, courseIds);
|
||||||
// data.push(...res.result.list);
|
|
||||||
that.moreState = 1;
|
that.moreState = 1;
|
||||||
} else {
|
} else {
|
||||||
that.noPageList = false;
|
that.noPageList = false;
|
||||||
@@ -685,7 +666,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
that.noPageList = false;
|
that.noPageList = false;
|
||||||
}));
|
});
|
||||||
if (this.course.orderField == "id") {
|
if (this.course.orderField == "id") {
|
||||||
//最新
|
//最新
|
||||||
data.sort(this.pcompare("publishTime", false));
|
data.sort(this.pcompare("publishTime", false));
|
||||||
|
|||||||
Reference in New Issue
Block a user