正常视频播放事件

This commit is contained in:
nisen
2023-11-16 17:57:53 +08:00
parent 381fcd9130
commit 6f05888db7
2 changed files with 10 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ if(process.env.NODE_ENV === 'development'){
oldApiBaseUrl = '/uboeApi'; oldApiBaseUrl = '/uboeApi';
statApiBaseUrl='/statApi'; statApiBaseUrl='/statApi';
socialApiBaseUrl='/socialApi'; socialApiBaseUrl='/socialApi';
fileUrl = 'https://u-pre.boe.com/cdn/upload'; fileUrl = 'https://u-pre.boe.com/upload';
//fileUrl = 'https://u-pre.boe.com/cdn/upload';
loginPath='/mobile/pages/login/login'; loginPath='/mobile/pages/login/login';
scormPlayer='https://u-pre.boe.com/scorm-player'; scormPlayer='https://u-pre.boe.com/scorm-player';
}else if(process.env.ENV_TYPE === 'preview'){ }else if(process.env.ENV_TYPE === 'preview'){

View File

@@ -568,6 +568,12 @@
getSysTypeTree:'sysType/getSysTypeTree', getSysTypeTree:'sysType/getSysTypeTree',
loadSysTypes:'sysType/loadSysTypes' loadSysTypes:'sysType/loadSysTypes'
}), }),
// 没有写播放时间
onPlayerPlay() {
this.playerBoxShow = false;
this.isAppendTime=true;
this.appendStudyTime();//启动追加学习时长
},
convertTypeName(code){ convertTypeName(code){
if(!code){return '';} if(!code){return '';}
return this.sysTypeMap.get(code); return this.sysTypeMap.get(code);
@@ -945,7 +951,8 @@
return false; return false;
}) })
this.scrollInfo.scrollLeft=len*this.scrollItemWidth+len*6; this.scrollInfo.scrollLeft=len*this.scrollItemWidth+len*6;
if(con.contentType>20){ //50事scorm项目单独计时
if(con.contentType>20 && con.contentType !== 50){
let $this=this; let $this=this;
//用户的学习时长,音视频课程学习,单独的处理,不再追加学习时长 //用户的学习时长,音视频课程学习,单独的处理,不再追加学习时长
this.isAppendTime = false; this.isAppendTime = false;