diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue index edf1a8c0..7f9135b9 100644 --- a/src/components/Course/auditCourse1.vue +++ b/src/components/Course/auditCourse1.vue @@ -236,7 +236,7 @@ import WxEditor from "@/components/Editor/index.vue"; import apiTag from "../../api/modules/tag.js"; import videoPlayer from "@/components/VideoPlayer/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 hyperLink from '@/components/Course/hyperLink.vue'; export default { diff --git a/src/components/Course/weikeContent.vue b/src/components/Course/weikeContent.vue index 4ea62005..3576b892 100644 --- a/src/components/Course/weikeContent.vue +++ b/src/components/Course/weikeContent.vue @@ -741,6 +741,7 @@ this.converStatus = rs.result.converStatus; this.courseFileShow = false; this.cware.content.pdfPath=rs.result.previewFilePath; + this.cware.content.content=rs.result.previewFilePath; this.$forceUpdate(); } }); @@ -816,7 +817,7 @@ chooseHasCWare(row){ this.cware.content.contentRefId=row.id; 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.content.duration=row.duration;//时长 this.cware.findShow=false; diff --git a/src/views/portal/course/Micro.vue b/src/views/portal/course/Micro.vue index b3d5d35b..54ef9ed6 100644 --- a/src/views/portal/course/Micro.vue +++ b/src/views/portal/course/Micro.vue @@ -20,7 +20,7 @@
-
- +
@@ -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){