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:
@@ -66,7 +66,7 @@
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
courseImage,
|
courseImage,
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
list:{
|
list:{
|
||||||
type:Array,
|
type:Array,
|
||||||
|
|||||||
@@ -611,15 +611,33 @@
|
|||||||
apiCourseStudy.followIds(params).then(res=>{
|
apiCourseStudy.followIds(params).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
list.forEach((item, index) => {
|
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;
|
item.info = con;
|
||||||
return true;
|
}
|
||||||
} else {
|
return true;
|
||||||
return false;
|
}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);
|
// this.getArticleUserData(list);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user