mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
Merge remote-tracking branch 'yx/20250821-hz' into master-0626-prod
This commit is contained in:
@@ -1015,49 +1015,54 @@
|
||||
}
|
||||
}else if(con.contentType==50){ //scorm课件的内容
|
||||
|
||||
apiCourseFile.detail(con.contentRefId).then(cfrs => {
|
||||
if(cfrs.status==200){
|
||||
//this.curCFile = cfrs.result;
|
||||
//this.scormUrl=cfrs
|
||||
let pars='?mode=normal&r='+Math.random();
|
||||
pars+='&scormId='+cfrs.result.id;
|
||||
pars+='&courseId='+this.courseId;
|
||||
pars+='&contentId='+con.id;
|
||||
pars+='&studentId='+this.userInfo.aid;
|
||||
pars+='&studentName='+encodeURIComponent(this.userInfo.name);
|
||||
pars+='&lmsId='+this.studyId;
|
||||
pars+='&scoId=';//不指定,scorm模块自动根据学习记录定位
|
||||
pars+='&r='+Math.random();//加一个随机数,以便重新加载
|
||||
let urlPre=window.location.protocol;
|
||||
let configUrl=config.scormPlayer;
|
||||
configUrl=urlPre+configUrl.substring(configUrl.indexOf(':')+1);
|
||||
|
||||
this.scormUrl=configUrl+pars;//播放的首页
|
||||
console.log(this.scormUrl,'this.scormUrl')
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}else if(con.contentType==52){
|
||||
if(con.content.startsWith('\{')){
|
||||
this.conLink=JSON.parse(con.content);
|
||||
}else{
|
||||
this.conLink.url=con.content;
|
||||
this.conLink.openType=1;
|
||||
}
|
||||
if (this.conLink.openType == 2) {
|
||||
//新的窗口直接打开
|
||||
location.href=this.conLink.url
|
||||
}
|
||||
} else if(con.contentType==10 || con.contentType==20) {
|
||||
if(con.content.startsWith('\{')){
|
||||
var d = JSON.parse(con.content)
|
||||
// if(d.url=="/course/2024/4/1224670812274712576.mp4") d.isDrag = false
|
||||
this.curriculumData=d;
|
||||
}else{
|
||||
this.curriculumData.url=con.content;
|
||||
}
|
||||
console.log('this.curriculumData:::',this.curriculumData)
|
||||
apiCourseFile.detail(con.contentRefId).then(cfrs => {
|
||||
if (cfrs.status == 200) {
|
||||
//this.curCFile = cfrs.result;
|
||||
//this.scormUrl=cfrs
|
||||
let pars = '?mode=normal&r=' + Math.random();
|
||||
pars += '&scormId=' + cfrs.result.id;
|
||||
pars += '&courseId=' + this.courseId;
|
||||
pars += '&contentId=' + con.id;
|
||||
pars += '&studentId=' + this.userInfo.aid;
|
||||
pars += '&studentName=' + encodeURIComponent(this.userInfo.name);
|
||||
pars += '&lmsId=' + this.studyId;
|
||||
pars += '&scoId=';//不指定,scorm模块自动根据学习记录定位
|
||||
pars += '&r=' + Math.random();//加一个随机数,以便重新加载
|
||||
let urlPre = window.location.protocol;
|
||||
let configUrl = config.scormPlayer;
|
||||
configUrl = urlPre + configUrl.substring(configUrl.indexOf(':') + 1);
|
||||
|
||||
this.scormUrl = configUrl + pars;//播放的首页
|
||||
console.log(this.scormUrl, 'this.scormUrl')
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
} else if (con.contentType == 52) {
|
||||
if (con.content.startsWith('\{')) {
|
||||
this.conLink = JSON.parse(con.content);
|
||||
} else {
|
||||
this.conLink.url = con.content;
|
||||
this.conLink.openType = 1;
|
||||
}
|
||||
if (this.conLink.openType == 2) {
|
||||
//新的窗口直接打开
|
||||
const url = this.conLink.url
|
||||
if (url.startsWith("/mobile")) {
|
||||
setTimeout(()=>window.open(url.replace("/mobile", ""), "_top"))
|
||||
} else {
|
||||
location.href = url
|
||||
}
|
||||
}
|
||||
} else if (con.contentType == 10 || con.contentType == 20) {
|
||||
if (con.content.startsWith('\{')) {
|
||||
var d = JSON.parse(con.content)
|
||||
// if(d.url=="/course/2024/4/1224670812274712576.mp4") d.isDrag = false
|
||||
this.curriculumData = d;
|
||||
} else {
|
||||
this.curriculumData.url = con.content;
|
||||
}
|
||||
console.log('this.curriculumData:::', this.curriculumData)
|
||||
|
||||
this.blobUrl=this.fileBaseUrl+this.curriculumData.url;
|
||||
this.blobId = con.id;
|
||||
|
||||
2
unpackage/dist/build/h5/index.html
vendored
2
unpackage/dist/build/h5/index.html
vendored
@@ -19,4 +19,4 @@
|
||||
hm.src = "https://hm.baidu.com/hm.js?ea89f02dca369037a73c5e3907e2c14a";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();</script></head><body><div id=app></div><script src=/mobile/static/js/chunk-vendors.b01deae1.js></script><script src=/mobile/static/js/index.19bad2a9.js></script></body></html>
|
||||
})();</script></head><body><div id=app></div><script src=/mobile/static/js/chunk-vendors.b01deae1.js></script><script src=/mobile/static/js/index.a5401564.js></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/h5/static/js/pages-study-courseStudy.4b0551c9.js
vendored
Normal file
1
unpackage/dist/build/h5/static/js/pages-study-courseStudy.4b0551c9.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user