From cc64938c68a024aa41ec30d6de3aa92171e1f477 Mon Sep 17 00:00:00 2001 From: yangdj <18302547071@163> Date: Sun, 8 Oct 2023 12:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=A7=82=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lookCourse - 副本/components/PracticalTraining/Task1.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/lookCourse - 副本/components/PracticalTraining/Task1.vue b/src/pages/lookCourse - 副本/components/PracticalTraining/Task1.vue index 461a6d5..f12fd1b 100644 --- a/src/pages/lookCourse - 副本/components/PracticalTraining/Task1.vue +++ b/src/pages/lookCourse - 副本/components/PracticalTraining/Task1.vue @@ -282,7 +282,7 @@ export default { onTimeupdate(e){ //判断是否播放完成 总时长:e.target.duration 当前播放时长:e.target.currentTime if(this.examType == 1){ this.num ++; //按照视频每250毫秒触发一次来计算 5秒提交一次数据保存 - if(e.target.currentTime > 0 && e.target.duration != e.target.currentTime && this.num == 20){ + if(e.target.currentTime > 0 && e.target.duration != e.target.currentTime && this.num >= 20){ this.num = 0; if(this.tableData[this.onNum].schedule < 100){ let schedule = Math.floor((e.target.currentTime / e.target.duration) * 100);//计算出播放百分比