diff --git a/pages/study/courseStudy.vue b/pages/study/courseStudy.vue index 8544278..15a73ff 100644 --- a/pages/study/courseStudy.vue +++ b/pages/study/courseStudy.vue @@ -640,6 +640,7 @@ export default { // 没有写播放时间 onPlayerPlay() { + console.log(`start play`) this.playerBoxShow = false; this.isAppendTime = true; this.appendStudyTime();//启动追加学习时长 @@ -783,7 +784,6 @@ export default { $this.curContent = c; } }) - } this.contentList = rs.result.contents;//内容列表 this.totalContent = rs.result.contents.length;//一共有向个可以播放的内容 @@ -1474,16 +1474,20 @@ export default { this.appendStartTime = new Date(); //console.log('开始追加学习时长',this.isAppendTime); if (this.studyId == '') { + console.warn(`this.studyId == ''`, this.studyId) return; } if (!this.curContent.id) { + console.warn(`this.curContent.id`, this.studyId) return; } //清除之前的 if (this.appendHandle != null) { + console.warn(`timer clear`) window.clearTimeout(this.appendHandle); } if (!this.isAppendTime) { + console.warn(`this.isAppendTime` , false) return; } //启动下次追加学习时长