mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
提交课程制作的修改
This commit is contained in:
@@ -236,7 +236,7 @@ import WxEditor from "@/components/Editor/index.vue";
|
|||||||
import apiTag from "../../api/modules/tag.js";
|
import apiTag from "../../api/modules/tag.js";
|
||||||
import videoPlayer from "@/components/VideoPlayer/index.vue";
|
import videoPlayer from "@/components/VideoPlayer/index.vue";
|
||||||
import audioPlayer from "@/components/AudioPlayer/index.vue";
|
import audioPlayer from "@/components/AudioPlayer/index.vue";
|
||||||
import apiCourseFile from '../../api/modules/courseFile.js';
|
import apiCourseFile from '@/api/modules/courseFile.js';
|
||||||
import { mapGetters, mapActions } from "vuex";
|
import { mapGetters, mapActions } from "vuex";
|
||||||
// import hyperLink from '@/components/Course/hyperLink.vue';
|
// import hyperLink from '@/components/Course/hyperLink.vue';
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -741,6 +741,7 @@
|
|||||||
this.converStatus = rs.result.converStatus;
|
this.converStatus = rs.result.converStatus;
|
||||||
this.courseFileShow = false;
|
this.courseFileShow = false;
|
||||||
this.cware.content.pdfPath=rs.result.previewFilePath;
|
this.cware.content.pdfPath=rs.result.previewFilePath;
|
||||||
|
this.cware.content.content=rs.result.previewFilePath;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -816,7 +817,7 @@
|
|||||||
chooseHasCWare(row){
|
chooseHasCWare(row){
|
||||||
this.cware.content.contentRefId=row.id;
|
this.cware.content.contentRefId=row.id;
|
||||||
this.cware.content.contentName=row.name;
|
this.cware.content.contentName=row.name;
|
||||||
// this.cware.content.content=row.filePath;
|
this.cware.content.content=row.filePath;
|
||||||
this.cware.curriculumData.url = row.filePath;
|
this.cware.curriculumData.url = row.filePath;
|
||||||
this.cware.content.duration=row.duration;//时长
|
this.cware.content.duration=row.duration;//时长
|
||||||
this.cware.findShow=false;
|
this.cware.findShow=false;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="courseware-div" v-else>
|
<div class="courseware-div" v-else>
|
||||||
<div v-if="coursewareInfo.content.contentType == 10" style="position: relative;">
|
<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"
|
@onPlayerPlaying="onPlayerPlaying"
|
||||||
@onPlayerPlay="onPlayerPlay"
|
@onPlayerPlay="onPlayerPlay"
|
||||||
:initTime="videoPlayingTime"
|
:initTime="videoPlayingTime"
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
<img :src="fileBaseUrl+coursewareInfo.content.content" alt="图片">
|
<img :src="fileBaseUrl+coursewareInfo.content.content" alt="图片">
|
||||||
</div>
|
</div>
|
||||||
<div v-if="coursewareInfo.content.contentType == 40">
|
<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>
|
||||||
<div v-if="coursewareInfo.content.contentType == 41">
|
<div v-if="coursewareInfo.content.contentType == 41">
|
||||||
<div class="couretitle" style="padding: 20px;text-align: left;" v-html="coursewareInfo.content.content"></div>
|
<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;
|
this.curriculumData.url=con.content;
|
||||||
}
|
}
|
||||||
//对url进行加密处理
|
//对url进行加密处理
|
||||||
$this.createPlayUrl(this.curriculumData.url);
|
$this.createPlayUrl(con.contentRefId,this.curriculumData.url);
|
||||||
|
|
||||||
} else if (con.contentType == 40) {
|
} else if (con.contentType == 40) {
|
||||||
//需要读取pdf的路径
|
//需要读取pdf的路径
|
||||||
@@ -483,7 +483,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
createPlayUrl(u){
|
createPlayUrl(fid,u){
|
||||||
let nowDate=new Date();
|
let nowDate=new Date();
|
||||||
let ctime=parseInt(nowDate.getTime()/1000);
|
let ctime=parseInt(nowDate.getTime()/1000);
|
||||||
let beforeUrl=parseInt(nowDate.getTime()/1000)+u;
|
let beforeUrl=parseInt(nowDate.getTime()/1000)+u;
|
||||||
@@ -491,7 +491,8 @@ export default {
|
|||||||
let urlSign=encodeURIComponent(encrypt(beforeUrl));
|
let urlSign=encodeURIComponent(encrypt(beforeUrl));
|
||||||
//console.log(urlSign,'urlSign');
|
//console.log(urlSign,'urlSign');
|
||||||
cookies.set('PLAYSIGN_TIME', ctime);//写客户端的cookie保存
|
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){
|
createVideoBlob(url){
|
||||||
|
|||||||
Reference in New Issue
Block a user