diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 568d0543..66c11dca 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -780,7 +780,7 @@ this.$nextTick(function(){ - if(this.contentData.progressVideo){ + if (r.contentType == 10) { this.$refs.myVideoPlayer.updateProgressByClickBar2(this.contentData.lastStudyTime,this.contentData.progressVideo); } @@ -1397,6 +1397,7 @@ //对已学习的内容进行比对,重要的字段, 学习内容id,在后缀的 let playIndex = -1; this.contentList.forEach((con, conIdx) => { + con.progressVideo = con.progressVideo || 0; result.contentStudys.forEach((scon, sconIdx) => { if (scon.contentId == con.id) { //定位显示的内容 @@ -1409,7 +1410,7 @@ } } con.lastStudyTime = scon.lastStudyTime; - con.progressVideo = scon.progressVideo; + con.progressVideo = scon.progressVideo || 0; //以下判断是为了兼容之前的问题,学习状态 if (scon.status) { con.status = scon.status;