Commit e2546370 authored by Mac's avatar Mac

地址处理

parent 8fcf4250
......@@ -252,6 +252,19 @@
},
res => {
this.courseList = res.data.pageData;
if(this.courseList.length>0){
this.courseList.forEach(x=>{
if(x.ImageList.length>0){
x.ImageList.forEach(j=>{
if(j.Path!='' && j.Path.indexOf('http://') ==-1){//对图片地址的不对做处理
console.log(j.Path)
j.Path= j.Path.replace('http:/','http://')
console.log(j.Path)
}
})
}
})
this.selectcourse=this.courseList[this.index];
this.count =res.data.count;
this.img=[];
......@@ -280,6 +293,7 @@
uni.setStorageSync("laststudy", obj);
this.setMyCourseStudyOK()//课程已阅读
}
}
);
},
getAppletCourseCollect(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment