From 6ec5e4ce45634f2e8ed7be97e7c34669ae347463 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 3 Jul 2024 15:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index ddc7cd24..b0922b3c 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1088,6 +1088,11 @@ onPlayerPlay() { //console.log("开始播放"); + if(this.contentData.contentType == 10){ + if(this.contentData.status<2){ + this.contentData.status = 2; + } + } this.playerBoxShow = false; let $this = this; //这里有些不准备,如果文件未能加载,这个事件就是错误的 @@ -1463,12 +1468,6 @@ progress(val) { const progressValue = parseFloat(val) * 100; this.sendEventProgress = Number(progressValue.toFixed(2)); - console.log('进度') - if(this.contentData.contentType == 10){ - if(this.sendEventProgress>0&&this.contentData.status<2){ - this.contentData.status = 2; - } - } }, saveStudyDuration(duration) { //保存本地存储的学习时长 if (duration > 0) {