课程图片不显示的问题

This commit is contained in:
daihh
2023-01-09 19:20:49 +08:00
parent cb99ef6e61
commit 20fb399151
2 changed files with 25 additions and 7 deletions

View File

@@ -66,7 +66,7 @@
},
components: {
courseImage,
},
},
props:{
list:{
type:Array,

View File

@@ -611,15 +611,33 @@
apiCourseStudy.followIds(params).then(res=>{
if(res.status == 200) {
list.forEach((item, index) => {
res.result.some(con => {
if (item.contentId == con.courseId && item.aid == con.aid) {
res.result.some(con => {
if (item.contentId == con.courseId){
//item.info = con;
if (item.aid == con.aid) {
//不是一个人的进度,如何处理?
item.info = con;
return true;
} else {
return false;
}
return true;
}else{
return false;
}
});
});
});
//给没有加的加上课程内容
list.forEach((item, index) => {
if(!item.info.courseId){
res.result.some(con => {
if(item.contentId == con.courseId && item.aid != con.aid){
item.info=con;
return true;
}
return false;
});
}
});
// this.getArticleUserData(list);
}
})