From f9dd091be437d6351e48cdff9b94d3e32deed513 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 6 Jul 2022 14:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=9F=B3=E9=A2=91=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=A7=E5=88=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/PortalIndex.vue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/study/PortalIndex.vue b/src/views/study/PortalIndex.vue index 9371e0de..bf27b744 100644 --- a/src/views/study/PortalIndex.vue +++ b/src/views/study/PortalIndex.vue @@ -520,10 +520,10 @@ export default { //判断是否完成 let completeType=this.curriculumData.completeSetup; let completeSecond=this.curriculumData.second; - if(!completeSecond){ + if(!completeSecond || completeType=0){ completeSecond=5;//如果没有就采用默认的时间了 } - if(completeType>0 && this.contentData.status<9){ //因为1按进度,2按时长都是计算时间,所以这里直接大于0处理 + if(this.contentData.status<9){ //因为1按进度,2按时长都是计算时间,所以这里直接大于0处理 if(completeType==1){ let finishPercent=this.curriculumData.setupTage; let videDuration=this.contentData.duration; @@ -531,7 +531,7 @@ export default { if(percent>=finishPercent){ this.finishStudyItem(); } - }else if(completeType==2){ + }else{ if(intTime>=completeSecond){ this.finishStudyItem(); } @@ -556,16 +556,16 @@ export default { audioPlay() { //console.log("开始播放"); let $this=this; - if(this.contentData.status!=9){ - let completeType=this.curriculumData.completeSetup; - if(completeType==0){ - //默认5秒后学习完成. - $this.handleTimeout= setTimeout(function() {$this.saveStudyInfo();}, 5000); //5秒后记录学习完成 - }else{ - //先记录进行中的学习内容 - this.saveStudyItem(); - } - } + // if(this.contentData.status!=9){ + // let completeType=this.curriculumData.completeSetup; + // if(completeType==0){ + // //默认5秒后学习完成. + // $this.handleTimeout= setTimeout(function() {$this.saveStudyInfo();}, 5000); //5秒后记录学习完成 + // }else{ + // //先记录进行中的学习内容 + // this.saveStudyItem(); + // } + // } }, audioPause() { //console.log("暂停");