提交课程播放页的修改及首页加上判断

This commit is contained in:
daihh
2022-11-13 17:15:11 +08:00
parent 4e5681ec25
commit df9605a584
2 changed files with 121 additions and 45 deletions

View File

@@ -155,15 +155,20 @@
let key = 'mobileIndex1';
apiPlace.detail(key).then(res => {
this.resonimg = [];
let lmj = JSON.parse(res.result.content)
lmj.forEach(item=>{
this.resonimg.push(this.fileUrl+item.image);
})
if(res.result.content && res.result.content.length>10){
let lmj = JSON.parse(res.result.content)
lmj.forEach(item=>{
this.resonimg.push(this.fileUrl+item.image);
})
}
});
let keyImg = 'mobileIndex2';
apiPlace.detail(keyImg).then(res => {
let lmj = JSON.parse(res.result.content)
this.placeholderImg = lmj[0];
if(res.result.content && res.result.content.length>10){
let lmj = JSON.parse(res.result.content)
this.placeholderImg = lmj[0];
}
});
},
//文章跳转详情