diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index 827932a2..3b6492e4 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2630,22 +2630,7 @@ export default { item.courseId; } if (item.type == 2) { - // let date1 = new Date(item.endTime).getTime(); - // let date2 = new Date().getTime(); - // if (date1 < date2) return message.warning("当前面授课已结束"); - // if (item.taskStatus == 1 || item.taskStatus == 2) - // return message.error("该任务无法学习,请联系管理员进行替换。"); - - // codeUrl = - // window.location.protocol + - // process.env.VUE_APP_H5 + - // "/faceteach?type=2&courseId=" + - // item.courseId + - // "&id=" + - // item.id; pathmappage?routerId=513&chapterId=730&isStudy=true - - // codeUrl = window.location.protocol + process.env.VUE_APP_H5 + "/pathdetails?routerId=" + state.routerId; - codeUrl = window.location.protocol + process.env.VUE_APP_H5 + "/pathmappage?routerId=" + state.routerId + "&chapterId=" + item.chapterId + "&isStudy=true"; + codeUrl = `${window.location.protocol + process.env.VUE_APP_H5}/FaceTeachCourseList?courseId=${item.courseId}&type=2&taskId=${item.id}`; } if (item.type == 3) return message.error("请在pc端完成"); diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 8e6e07be..e37f3156 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -4612,15 +4612,7 @@ export default { item.courseId; } if (item.type == 2) { - // codeUrl = - // window.location.protocol + - // process.env.VUE_APP_H5 + - // "/faceteach?type=1&courseId=" + - // item.courseId + - // "&id=" + - // item.id; - - codeUrl = window.location.protocol + process.env.VUE_APP_H5 + "/projectdetails?type=1&projectId=" + state.projectId; + codeUrl = `${window.location.protocol + process.env.VUE_APP_H5}/FaceTeachCourseList?courseId=${item.courseId}&type=1&taskId=${item.id}`; } if (item.type == 3) return message.error("请在pc端完成"); if (item.type == 4) {