mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 10:26:45 +08:00
提交修改
This commit is contained in:
@@ -83,7 +83,8 @@
|
||||
<view v-if="articleMore" @click="showMore" style="text-align: center;color: #387DF7;"><text>查看更多∨</text> </view>
|
||||
</view>
|
||||
<div v-if="curContent.contentType == 50" style="min-height: 500px;">
|
||||
<web-view v-if="scormUrl" :src="scormUrl" frameborder="0" scrolling="no" border="0px" style="width:100%;height:100%;border:0px;"></web-view>
|
||||
<!--因为web-view 动态切换地址不好用,所以这里先使用iframe-->
|
||||
<iframe v-if="scormUrl" :src="scormUrl" frameborder="0" scrolling="no" border="0px" style="width:100%;height:500px;border:0px;"></iframe>
|
||||
</div>
|
||||
<view v-if="curContent.contentType==52">
|
||||
<!--外连接-->
|
||||
@@ -709,7 +710,20 @@
|
||||
this.playContent(this.curContent,0);
|
||||
//this.curSection=this.sectionList[0];
|
||||
}else{
|
||||
this.curContent=this.contentList[0];
|
||||
let treelist=this.catalogTree;
|
||||
this.curSection=treelist[0].sec;
|
||||
this.curContent=treelist[0].children[0];
|
||||
// this.curContent=this.contentList[0];
|
||||
// this.curSection=this.sectionList[0];
|
||||
//要不要在这里处理?
|
||||
// if(this.curContent.contentType==10 || this.curContent.contentType==20){
|
||||
// if(this.contentList[0].content.startsWith('\{')){
|
||||
// this.curriculumData=JSON.parse(this.contentList[0].content);
|
||||
// }else{
|
||||
// this.curriculumData.url=this.contentList[0].content;
|
||||
// }
|
||||
// }
|
||||
//this.curContent=this.contentList[0];
|
||||
this.playContent(this.curContent,0);
|
||||
}
|
||||
uni.hideLoading();
|
||||
@@ -821,6 +835,7 @@
|
||||
this.scormUrl='';//清空地址
|
||||
this.articleMore=true;
|
||||
this.clearTimeHandle();
|
||||
//this.curContent=0;
|
||||
// console.log(con,'con');
|
||||
this.playerBoxShow=false;
|
||||
if(con.contentType==40){
|
||||
@@ -851,11 +866,13 @@
|
||||
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')
|
||||
|
||||
}
|
||||
});
|
||||
@@ -877,6 +894,7 @@
|
||||
this.blobUrl=this.fileBaseUrl+this.curriculumData.url;
|
||||
//console.log(this.blobUrl,'this.blobUrl');
|
||||
}
|
||||
//console.log(con.contentType,'con.contentType');
|
||||
this.curContent=con;
|
||||
this.catalogShow=false;
|
||||
this.scoreInfo.itemId=con.id;
|
||||
|
||||
Reference in New Issue
Block a user