mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
图片修改及测试
This commit is contained in:
@@ -55,29 +55,27 @@
|
||||
this.textShow = true;
|
||||
return this.$config.context+'/static/images/course/courseDefault.png'
|
||||
}
|
||||
if(this.course.cmtask_imgurl && this.course.cmtask_imgurl.startsWith('/upload/')) {
|
||||
if(this.course.cmtask_imgurl){
|
||||
console.log('this.course.cmtask_imgurl',this.course.cmtask_imgurl);
|
||||
return this.course.cmtask_imgurl;
|
||||
}
|
||||
if(this.course.cmtask_imgurl && this.course.cmtask_imgurl.startsWith('http')) {
|
||||
return this.course.cmtask_imgurl;
|
||||
} else if(this.course.coverImg && this.course.coverImg.startsWith('http')) {
|
||||
return this.course.coverImg;
|
||||
} else if(this.course.courseImage && this.course.courseImage.startsWith('http')){
|
||||
return this.course.courseImage;
|
||||
}else{
|
||||
if(this.course.image && this.course.image!=''){
|
||||
return this.$config.fileUrl+this.course.image;
|
||||
}else if(this.course.coverImg && this.course.coverImg!=''){
|
||||
return this.$config.fileUrl+this.course.coverImg;
|
||||
}else if(this.course.courseImage && this.course.courseImage!=''){
|
||||
return this.$config.fileUrl+this.course.courseImage;
|
||||
}else if(this.course.coverImg == '' || this.course.courseImage == '' || this.course.image == ''){
|
||||
this.textShow = true;
|
||||
return this.$config.context+'/static/images/course/courseDefault.png'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(this.course.coverImg){
|
||||
if(this.course.coverImg.startsWith('http')){
|
||||
return this.course.coverImg;
|
||||
}else{
|
||||
return this.$config.fileUrl+this.course.coverImg;
|
||||
}
|
||||
}
|
||||
if(this.course.courseImage){
|
||||
if(this.course.courseImage.startsWith('http')){
|
||||
return this.course.courseImage;
|
||||
}else{
|
||||
return this.$config.fileUrl+this.course.courseImage;
|
||||
}
|
||||
}
|
||||
this.textShow = true;
|
||||
return this.$config.context+'/static/images/course/courseDefault.png'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
@@ -520,6 +520,9 @@
|
||||
|
||||
apiManage.userTaskList(params).then(res => {
|
||||
if(res.code==200){
|
||||
// res.data.records.forEach(r=>{
|
||||
// r.cmtask_imgurl='/upload/temp/1647074306.jpg';
|
||||
// })
|
||||
this.taskCount = parseInt(res.data.total);
|
||||
this.couresList.push(...res.data.records);
|
||||
if (this.taskCount > this.taskPageIndex * this.taskPageSize) {
|
||||
|
||||
Reference in New Issue
Block a user