From 0eeef0ddb1434d647c3dc6b5d86a3d99f7a10e51 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 9 Mar 2023 21:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=B7=B3=E8=BD=AC=E8=80=81?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=AF=A6=E7=BB=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/boeframe.vue | 11 ++++++----- src/views/study/TaskList.vue | 3 +++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/portal/boeframe.vue b/src/views/portal/boeframe.vue index 8406b655..5daec39b 100644 --- a/src/views/portal/boeframe.vue +++ b/src/views/portal/boeframe.vue @@ -24,12 +24,12 @@ import portalFooter from "@/components/PortalFooter.vue"; this.id = this.$route.query.id; this.type = this.$route.query.type; let urlPre=window.location.protocol+'//'+window.location.host; - + let params='detailId='+this.id+'&inner=1'; params=encodeURIComponent(params); - + //console.log(urlPre,'urlPre'); - if(this.type == 20 || this.type=='online-course') {//在线课 + if(this.type == 20 || this.type=='online-course') {// 在线课 this.url= `${urlPre}/web/onlineClass?detailId=${this.id}&inner=1` } else if(this.type == 30 || this.type=='face-course') {// 面授课 this.url = `${urlPre}/web/f2fClass?detailId=${this.id}&inner=1` @@ -37,9 +37,10 @@ import portalFooter from "@/components/PortalFooter.vue"; this.url = `${urlPre}/web/learningProject?detailId=${this.id}&inner=1` } else if(this.type == 'quizsummary'){ this.url = `${urlPre}/web/quizsummary?detailId=${this.id}&inner=1` - }else {// 如果没有type,学习任务页面 - this.url = `${urlPre}/web/todo/detail?id=${this.id}&inner=1` + }else if(this.type==3) {// 如果没有type,学习任务页面 + this.url = `${urlPre}/web/todo/detail?id=${this.cmtask_id}&inner=1` } + }, methods:{ diff --git a/src/views/study/TaskList.vue b/src/views/study/TaskList.vue index 065e56f9..11aed826 100644 --- a/src/views/study/TaskList.vue +++ b/src/views/study/TaskList.vue @@ -139,6 +139,9 @@ export default { }else if(item.cmtask_type==2){ //学习项目 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`; + this.$router.push(pushUrl); } },