|
@@ -273,6 +273,8 @@ export default defineComponent({
|
|
|
}
|
|
|
// 当前章节下的所有资源列表
|
|
|
let allResource: any = [];
|
|
|
+
|
|
|
+ console.log(data.allList, 'data.allList');
|
|
|
data.allList.forEach((item: any) => {
|
|
|
item.knowledgeList.forEach((material: any) => {
|
|
|
material.materialInfo.forEach((resource: any) => {
|
|
@@ -283,14 +285,16 @@ export default defineComponent({
|
|
|
? resource.materialId
|
|
|
: resource.bizId;
|
|
|
resource.url =
|
|
|
- resource.coverImg || resource.type === 'SONG'
|
|
|
+ resource.coverImg ||
|
|
|
+ (resource.type === 'SONG'
|
|
|
? 'https://oss.dayaedu.com/ktqy/1698420034679a22d3f7a.png'
|
|
|
: resource.type === 'PPT'
|
|
|
? 'https://oss.dayaedu.com/ktqy/12/1701931810284.png'
|
|
|
- : resource.coverImg;
|
|
|
+ : resource.coverImg);
|
|
|
});
|
|
|
allResource = allResource.concat(material.materialInfo);
|
|
|
});
|
|
|
+ console.log(allResource, 'allResource');
|
|
|
});
|
|
|
|
|
|
// 当前章节下,所选的课件所有资源列表
|
|
@@ -302,11 +306,12 @@ export default defineComponent({
|
|
|
resource.bizId =
|
|
|
route.query.tab == 'course' ? resource.materialId : resource.bizId;
|
|
|
resource.url =
|
|
|
- resource.type === 'SONG'
|
|
|
+ resource.coverImg ||
|
|
|
+ (resource.type === 'SONG'
|
|
|
? 'https://oss.dayaedu.com/ktqy/1698420034679a22d3f7a.png'
|
|
|
: resource.type === 'PPT'
|
|
|
? 'https://oss.dayaedu.com/ktqy/12/1701931810284.png'
|
|
|
- : resource.coverImg;
|
|
|
+ : resource.coverImg);
|
|
|
});
|
|
|
allKjResource = allKjResource.concat(material.materialInfo);
|
|
|
});
|