From bc3d15109d2aedd01108307d2a949aa7980f50c4 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 13 Jun 2023 15:00:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E5=BC=80=E5=8F=91=E7=9A=84=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E8=B7=B3=E8=BD=AC=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E6=97=B6=E9=95=BF=E5=AE=9A=E6=97=B6=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=85=B3=E9=97=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/TeacherList.vue | 9 +++++---- src/views/study/coursenew.vue | 9 +++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/course/TeacherList.vue b/src/views/course/TeacherList.vue index 9ebc9888..82760779 100644 --- a/src/views/course/TeacherList.vue +++ b/src/views/course/TeacherList.vue @@ -325,15 +325,16 @@ export default { // let routeData = this.$router.resolve({ path: '/course/detail?id='+item.id}); // window.open(this.webBaseUrl+routeData.href, '_blank'); // window.open(this.webBaseUrl + '/course/detail?id=' + item.id, '_blank'); - this.$router.push({path:'/course/detail',query:{id:item.id}}) - // } + //this.$router.push({path:'/course/detail',query:{id:item.id}}) + this.$router.push({path:'/course/studyindex',query:{id:item.id}}) + // } } else { // if (item.type == 10) { // // window.open(`${this.webBaseUrl}/course/microPreview?id=${item.id}`); // this.$router.push({path:'/course/microPreview',query:{id:item.id}}) // } else { - // window.open(`${this.webBaseUrl}/course/rePreview?id=${item.id}`); - this.$router.push({path:'/course/rePreview',query:{id:item.id}}) + // window.open(`${this.webBaseUrl}/course/rePreview?id=${item.id}`); + this.$router.push({path:'/course/rePreview',query:{id:item.id}}) // } } }, diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 49c7c2bf..99107031 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -397,6 +397,8 @@ this.$watermark.set(this.userInfo.name + this.userInfo.loginName); this.courseId = this.$route.query.id; this.initContentId = this.$route.query.contentId; + this.stopStudyTime();//先关闭 + this.cleanAppendTime();// this.loadData(); //console.log(this.$xpage.constants.fileBaseUrl,'this.$xpage.constants.fileBaseUrl'); }, @@ -436,6 +438,7 @@ } }, destroyed(){ + this.cleanAppendTime(); this.stopStudyTime(); }, methods: { @@ -446,6 +449,12 @@ //视频点定位,直接到播放的视频位置 this.timer = new Date().getTime() }, + //清空追加学习时长事件 + cleanAppendTime(){ + if(this.appendStudyOtherHandle){ + window.clearTimeout(this.appendStudyOtherHandle); + } + }, //非音视频课学习时长的增加,每一分钟保存一次 appendStudyOtherTime() { //console.log('开始追加学习时长',this.isAppendTime);