From 6f05888db74feaa2b1e00e429d9684522c91137e Mon Sep 17 00:00:00 2001 From: nisen Date: Thu, 16 Nov 2023 17:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E8=A7=86=E9=A2=91=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 3 ++- pages/study/courseStudy.vue | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/index.js b/config/index.js index 3a5014c..9412c99 100644 --- a/config/index.js +++ b/config/index.js @@ -19,7 +19,8 @@ if(process.env.NODE_ENV === 'development'){ oldApiBaseUrl = '/uboeApi'; statApiBaseUrl='/statApi'; 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'; scormPlayer='https://u-pre.boe.com/scorm-player'; }else if(process.env.ENV_TYPE === 'preview'){ diff --git a/pages/study/courseStudy.vue b/pages/study/courseStudy.vue index e682f7e..fb01886 100644 --- a/pages/study/courseStudy.vue +++ b/pages/study/courseStudy.vue @@ -568,6 +568,12 @@ getSysTypeTree:'sysType/getSysTypeTree', loadSysTypes:'sysType/loadSysTypes' }), + // 没有写播放时间 + onPlayerPlay() { + this.playerBoxShow = false; + this.isAppendTime=true; + this.appendStudyTime();//启动追加学习时长 + }, convertTypeName(code){ if(!code){return '';} return this.sysTypeMap.get(code); @@ -945,7 +951,8 @@ return false; }) this.scrollInfo.scrollLeft=len*this.scrollItemWidth+len*6; - if(con.contentType>20){ + //50事scorm项目单独计时 + if(con.contentType>20 && con.contentType !== 50){ let $this=this; //用户的学习时长,音视频课程学习,单独的处理,不再追加学习时长 this.isAppendTime = false;