This commit is contained in:
daihh
2022-07-22 10:51:24 +08:00

View File

@@ -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 = [];