mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal
This commit is contained in:
@@ -65,10 +65,10 @@ export default {
|
||||
},
|
||||
imageUrl() {
|
||||
this.isShow = false;
|
||||
if(this.course && this.course.coverImg && this.course.coverImg.startsWith('h')) {
|
||||
if(this.course && this.course.coverImg && this.course.coverImg.startsWith('http')) {
|
||||
return this.course.coverImg;
|
||||
}
|
||||
if(this.course && this.course.courseImage && this.course.courseImage.startsWith('h')) {
|
||||
if(this.course && this.course.courseImage && this.course.courseImage.startsWith('http')) {
|
||||
return this.course.courseImage;
|
||||
}
|
||||
if (this.course && this.course.coverImg && this.course.coverImg != "") {
|
||||
|
||||
@@ -183,6 +183,7 @@ export default {
|
||||
if(flag){
|
||||
this.page.pageIndex=1;
|
||||
}
|
||||
let $this=this;
|
||||
this.isSearch=false;
|
||||
let reqData={
|
||||
courseName:this.params.courseName,
|
||||
@@ -198,6 +199,11 @@ export default {
|
||||
this.loading=true;
|
||||
apiCourseStudy.myStudysFromES(reqData).then(res=>{
|
||||
if(res.status==200){
|
||||
res.result.list.forEach(item=>{
|
||||
if(item.courseImage.startsWith('/upload')){
|
||||
item.courseImage=$this.fileUrl+item.courseImage.substring(7)
|
||||
}
|
||||
})
|
||||
this.couresList=res.result.list;
|
||||
this.page.count=res.result.count;
|
||||
}else{
|
||||
|
||||
@@ -140,7 +140,7 @@ export default {
|
||||
let params=encodeURIComponent('projectId='+item.cmtask_id);
|
||||
this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params);
|
||||
}else if(item.cmtask_type==3){
|
||||
let pushUrl=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}&type=3`;
|
||||
let pushUrl=`/portal/boeframe?id=${item.cmtask_id}&type=3`;
|
||||
this.$router.push(pushUrl);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user