diff --git a/public/ad/dlg(1).png b/public/ad/dlg(1).png new file mode 100644 index 00000000..d43b6186 Binary files /dev/null and b/public/ad/dlg(1).png differ diff --git a/public/ad/dlg.png b/public/ad/dlg.png index d43b6186..c63e2a70 100644 Binary files a/public/ad/dlg.png and b/public/ad/dlg.png differ diff --git a/src/api/modules/coursePortal.js b/src/api/modules/coursePortal.js index 8e514d9b..b8cb8a6e 100644 --- a/src/api/modules/coursePortal.js +++ b/src/api/modules/coursePortal.js @@ -78,7 +78,9 @@ const getTeacherByCourseIDs = function(ids){ const studyCounts=function(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 { list, pageList, @@ -86,5 +88,6 @@ export default { ranking, scorelist, getTeacherByCourseIDs, - studyCounts + studyCounts, + courseSearch } diff --git a/src/views/portal/course/Index(1).vue b/src/views/portal/course/Index(1).vue new file mode 100644 index 00000000..d13d5e53 --- /dev/null +++ b/src/views/portal/course/Index(1).vue @@ -0,0 +1,1401 @@ + + + + + + + + + + + 搜索条件 + {{ tag.name }} + + + + + + + 授课方式 + + + + + + 全部 + 录播课 + 线下课 + 学习项目 + + + + + + + + + + + 内容分类 + + + + 全部 + {{item.name}} + + U选小课堂 + + + + + + + + 全部 + {{item.name}} + + + + + 全部 + {{item.name}} + + + + + + + + + 最热 + 最新 + + + + + + + + + 录播课 + 录播课 + 录播课 + 线下课 + 学习项目 + + + + + + + + {{cinfo.authorInfo.name}} + + + {{cinfo.studys}}人学习 + + + + {{toScore(cinfo.score)}} + + 未评分 + + + + + + + + + + 加载更多 + 数据加载中 + 没有更多数据了 + + + + + + + 做课程 + + + + 好评榜 + + + + + + + + + + {{index+1}} + + + + {{ item.name }} + + + + + + + + + + 人气榜 + + + + + + + + + + {{index+1}} + + + + {{ item.name }} + + + + + + + + + + 热度榜 + + + + + + + + + + {{index+1}} + + + + {{ item.courseName }} + + + + + + + + + + + + + + + + + + diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index d13d5e53..fa821ac2 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -627,26 +627,8 @@ export default { //console.log(this.noDataList, this.totalPages, "this.noDataList"); // 隐藏loadMore this.moreState = 2; - this.noDataList && - (await apiOldCourse - .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) + await apiCoursePortal + .courseSearch(this.course) .then(res => { if (res.status == 200 && res.result.list.length > 0) { this.totalPages = res.result.totalPages; @@ -677,7 +659,6 @@ export default { } }); that.loadCouserTeacher(res.result.list, courseIds); - // data.push(...res.result.list); that.moreState = 1; } else { that.noPageList = false; @@ -685,7 +666,7 @@ export default { }) .catch(err => { that.noPageList = false; - })); + }); if (this.course.orderField == "id") { //最新 data.sort(this.pcompare("publishTime", false));