From a4924e1064d766dfc4d9591e5e4c9b1de1f6ac7e Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 21 Jul 2022 19:24:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 8e65def7..d259e8d2 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -395,10 +395,8 @@ export default { }); }, toCourseDetail(item) { - if (isNaN(item.type)) { - return `${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${ - item.type - }`; + if (item.source == 1) { + return `${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`; //此处使用window.open有问题 //window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`); } else { @@ -538,9 +536,9 @@ export default { } this.course.device = 1; this.getTags(); - if(this.course.pageIndex == 1) { - this.courseList = []; - } + // if(this.course.pageIndex == 1) { + // this.courseList = []; + // } let data = []; let isTopList = []; // 隐藏loadMore @@ -551,11 +549,13 @@ export default { if (res.status == 200 && res.result.list.length > 0) { this.totalPages = res.result.totalPages; let courseIds = []; - res.result.list.forEach(item => { - courseIds.push(item.id); - data.push(item); - }); - that.moreState = 1; + // res.result.list.forEach(item => { + // courseIds.push(item.id); + // data.push(item); + // }); + // data = res.result.list; + this.courseList.push(...res.result.list); + this.moreState = 1; } else { this.moreState = 3; } @@ -563,7 +563,7 @@ export default { .catch(err => { this.moreState = 3; }); - this.courseList.push(...data); + }, getTags() { this.searchTags = [];