mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
提交课程播放页的修改及首页加上判断
This commit is contained in:
@@ -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];
|
||||
}
|
||||
});
|
||||
},
|
||||
//文章跳转详情
|
||||
|
||||
Reference in New Issue
Block a user