mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
提交课程制作的修改
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="courseware-div" v-else>
|
||||
<div v-if="coursewareInfo.content.contentType == 10" style="position: relative;">
|
||||
<videoPlayer id="myVideoPlayer" :src="fileBaseUrl+curriculumData.url" style="width: 100%;"
|
||||
<videoPlayer id="myVideoPlayer" :src="blobUrl" style="width: 100%;"
|
||||
@onPlayerPlaying="onPlayerPlaying"
|
||||
@onPlayerPlay="onPlayerPlay"
|
||||
:initTime="videoPlayingTime"
|
||||
@@ -77,7 +77,7 @@
|
||||
<img :src="fileBaseUrl+coursewareInfo.content.content" alt="图片">
|
||||
</div>
|
||||
<div v-if="coursewareInfo.content.contentType == 40">
|
||||
<pdfPreview :autoScroll="true" v-if="coursewareInfo.content.contentType == 40" :filePath="fileBaseUrl+coursewareInfo.content.content"></pdfPreview>
|
||||
<pdfPreview :autoScroll="true" v-if="coursewareInfo.content.contentType == 40 && coursewareInfo.content.content" :filePath="fileBaseUrl+coursewareInfo.content.content"></pdfPreview>
|
||||
</div>
|
||||
<div v-if="coursewareInfo.content.contentType == 41">
|
||||
<div class="couretitle" style="padding: 20px;text-align: left;" v-html="coursewareInfo.content.content"></div>
|
||||
@@ -433,7 +433,7 @@ export default {
|
||||
this.curriculumData.url=con.content;
|
||||
}
|
||||
//对url进行加密处理
|
||||
$this.createPlayUrl(this.curriculumData.url);
|
||||
$this.createPlayUrl(con.contentRefId,this.curriculumData.url);
|
||||
|
||||
} else if (con.contentType == 40) {
|
||||
//需要读取pdf的路径
|
||||
@@ -483,7 +483,7 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
createPlayUrl(u){
|
||||
createPlayUrl(fid,u){
|
||||
let nowDate=new Date();
|
||||
let ctime=parseInt(nowDate.getTime()/1000);
|
||||
let beforeUrl=parseInt(nowDate.getTime()/1000)+u;
|
||||
@@ -491,7 +491,8 @@ export default {
|
||||
let urlSign=encodeURIComponent(encrypt(beforeUrl));
|
||||
//console.log(urlSign,'urlSign');
|
||||
cookies.set('PLAYSIGN_TIME', ctime);//写客户端的cookie保存
|
||||
this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/m/course/play/resource?sign='+urlSign;
|
||||
//this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/m/course/play/resource?sign='+urlSign;
|
||||
this.blobUrl='http://localhost:9090/xboe/course/resource?fid='+fid;
|
||||
|
||||
},
|
||||
createVideoBlob(url){
|
||||
|
||||
Reference in New Issue
Block a user