mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 22:06:43 +08:00
提交修改的修改
This commit is contained in:
@@ -449,17 +449,17 @@ export default {
|
||||
this.playerBoxShow = false;
|
||||
let $this=this;
|
||||
//console.log(this.contentData.status,'this.contentData.status');
|
||||
if(this.contentData.status<9){
|
||||
let completeType=this.curriculumData.completeSetup;
|
||||
//console.log(completeType,'completeType');
|
||||
if(completeType==0){
|
||||
//默认5秒后学习完成.
|
||||
$this.handleTimeout= setTimeout(function() {$this.saveStudyInfo();}, 5000); //5秒后记录学习完成
|
||||
}else{
|
||||
//先记录进行中的学习内容
|
||||
this.saveStudyItem();
|
||||
}
|
||||
}
|
||||
// if(this.contentData.status<9){
|
||||
// let completeType=this.curriculumData.completeSetup;
|
||||
// //console.log(completeType,'completeType');
|
||||
// if(completeType==0){
|
||||
// //默认5秒后学习完成.
|
||||
// $this.handleTimeout= setTimeout(function() {$this.saveStudyInfo();}, 5000); //5秒后记录学习完成
|
||||
// }else{
|
||||
// //先记录进行中的学习内容
|
||||
// this.saveStudyItem();
|
||||
// }
|
||||
// }
|
||||
},
|
||||
onPlayerPause() {
|
||||
//console.log("暂停");
|
||||
@@ -475,15 +475,15 @@ export default {
|
||||
this.appendStartTime=null;
|
||||
//console.log("当前播放"+itme);
|
||||
//console.log("当前播放11"+itme);
|
||||
if (this.contentData.contentType && this.contentData.contentType == 10) {
|
||||
if (this.contentData.contentType && this.contentData.contentType == 10){
|
||||
let intTime = parseInt(itme);
|
||||
//判断是否完成
|
||||
let completeType=this.curriculumData.completeSetup;
|
||||
let completeSecond=this.curriculumData.second;
|
||||
if(!completeSecond){
|
||||
if(!completeSecond || completeType==0){
|
||||
completeSecond=5;//如果没有就采用默认的时间了
|
||||
}
|
||||
if(completeType>0 && this.contentData.status<9){ //因为1按进度,2按时长都是计算时间,所以这里直接大于0处理
|
||||
if(this.contentData.status<9){ //因为1按进度,2按时长都是计算时间,所以这里直接大于0处理
|
||||
if(completeType==1){
|
||||
let finishPercent=this.curriculumData.setupTage;
|
||||
let videDuration=this.contentData.duration;
|
||||
@@ -491,7 +491,7 @@ export default {
|
||||
if(percent>=finishPercent){
|
||||
this.finishStudyItem();
|
||||
}
|
||||
}else if(completeType==2){
|
||||
}else{
|
||||
if(intTime>=completeSecond){
|
||||
this.finishStudyItem();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user