From 3e8ec03c0e148b449c33242a0900f35ee5f271f2 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 3 Jul 2024 11:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=A4=E8=A7=86=E9=A2=91=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E8=80=83=E8=AF=95=E4=B8=89=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/exam.vue | 1 + src/views/study/coursenew.vue | 23 +++++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index 2b743b04..6483bf69 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -326,6 +326,7 @@ export default { return qitems; }, startTest(){ + this.$emit('startTest',true); if(this.info.paperType==2){ apiExamPaper.getPaperContent(this.info.paperId).then(rs=>{ if(rs.status=200){ diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index e21e86c5..2ee022a1 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -102,7 +102,7 @@
- +
@@ -738,9 +738,11 @@ } if (this.contentData.status < 2) { // this.contentData.status = 2; //进行中 - setTimeout(() => { - this.contentData.status = 2; // 一秒后变为进行中 - }, 3000); + if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){ + setTimeout(() => { + this.contentData.status = 2; + }, 3000); + } } //以下是学习记录,50是scorm项目 if (this.contentData.contentType > 20 && this.contentData.contentType !== 50) { //非视频类的 @@ -1227,6 +1229,9 @@ }, audioPlay() { //console.log("开始播放"); + if(this.contentData.contentType == 20){ + this.contentData.status = 2; + } let $this = this; this.isAppendTime=true; this.appendStudyTime();//启动追加学习时长 @@ -1450,9 +1455,19 @@ } }); }, + startTest(val){ + if(this.contentData.contentType == 61){ + this.contentData.status = 2; + } + }, progress(val) { const progressValue = parseFloat(val) * 100; this.sendEventProgress = Number(progressValue.toFixed(2)); + if(this.contentData.contentType == 10){ + if(this.sendEventProgress>0&&this.sendEventProgress<3){ + this.contentData.status = 2; + } + } }, saveStudyDuration(duration) { //保存本地存储的学习时长 if (duration > 0) {