From 21af412d88c93125e6bfad1069d5b3590c21371e Mon Sep 17 00:00:00 2001 From: zhangsir Date: Mon, 27 May 2024 17:40:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8=E7=BA=BF=E8=AF=BE?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/study/courseStudy.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pages/study/courseStudy.vue b/pages/study/courseStudy.vue index 7f15126..38d1ba5 100644 --- a/pages/study/courseStudy.vue +++ b/pages/study/courseStudy.vue @@ -426,6 +426,7 @@ export default { data(){ return{ + trueFalse: true, loading:false,//加载中 courseId:'',//当前课程的id studyId: '',//当前学习的id @@ -1524,6 +1525,20 @@ } }, onPlayerPlaying(e){ + if(e.detail.currentTime > 2 && this.trueFalse){ + let params ={ + studyId: this.studyId,//学习id, + courseId: this.courseId,//课程id, + contentId: this.curContent.id,//内容id, + contentType: this.curContent.contentType, + contentName: this.curContent.contentName,//内容名称 + progress: 1, + status: 2, + contentTotal:this.totalContent + } + apiCourseStudy.studyContent(params) + this.trueFalse = false + } //console.log("当前播放11",itme); //console.log("当前播放11"+itme); let intTime=parseInt(e.detail.currentTime);