diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index 11a2f7ea..bf7b6f2f 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -576,6 +576,7 @@ export default { // 进度条到终点时修改播放状态 this.isShowPlayer = false this.$emit('onPlayerPlaying', this.videoDom.currentTime,this.videoDom.duration) + this.$emit('progress',this.currentProgress) if (this.currentProgress === 1) { this.isPlaying = false; this.$emit('onPlayerEnded', {}) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 271f6c07..73893027 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -27,7 +27,7 @@
- @@ -320,6 +320,7 @@ }, data() { return { + sendEventProgress: 0, trueFalse: true, audiences:'', isCrowd:false, @@ -1390,6 +1391,9 @@ } }); }, + progress(val) { + this.sendEventProgress = val + }, saveStudyDuration(duration) { //保存本地存储的学习时长 if (duration > 0) { //发送用户学习事件 @@ -1405,7 +1409,9 @@ "objInfo": ""+this.courseInfo.name, "aid":this.userInfo.aid, //当前登录人的id "aname":this.userInfo.name,//当前人的姓名 - "status": 1 //状态 + "status": 1, //状态 + "contentId": this.contentData.id, + "progress": this.sendEventProgress, } //静默处理 apiStat.sendEvent(postData).then(rs=>{