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