mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
提交移动端修改,图片显示问题
This commit is contained in:
@@ -51,19 +51,25 @@
|
||||
},
|
||||
imageUrl(){
|
||||
this.textShow = false;
|
||||
if(this.course && this.course.cmtask_imgurl && this.course.cmtask_imgurl.startsWith('http')) {
|
||||
if(!this.course){
|
||||
this.textShow = true;
|
||||
return this.$config.context+'/static/images/course/courseDefault.png'
|
||||
}
|
||||
if(this.course.cmtask_imgurl && this.course.cmtask_imgurl.startsWith('/upload/')) {
|
||||
return this.course.cmtask_imgurl;
|
||||
} else
|
||||
if(this.course && this.course.coverImg && this.course.coverImg.startsWith('http')) {
|
||||
}
|
||||
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 && this.course.courseImage && this.course.courseImage.startsWith('http')){
|
||||
} else if(this.course.courseImage && this.course.courseImage.startsWith('http')){
|
||||
return this.course.courseImage;
|
||||
}else{
|
||||
if(this.course && this.course.image && this.course.image!=''){
|
||||
if(this.course.image && this.course.image!=''){
|
||||
return this.$config.fileUrl+this.course.image;
|
||||
}else if(this.course && this.course.coverImg && this.course.coverImg!=''){
|
||||
}else if(this.course.coverImg && this.course.coverImg!=''){
|
||||
return this.$config.fileUrl+this.course.coverImg;
|
||||
}else if(this.course && this.course.courseImage && this.course.courseImage!=''){
|
||||
}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;
|
||||
|
||||
Reference in New Issue
Block a user