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) {