mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
课程学习页面调整
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<div class="con-audio">
|
||||
<div class="con-audio-title">{{ contentData.contentName }}</div>
|
||||
<div class="con-audio-player">
|
||||
<audioPlayer v-if="resType == 20" :url="fileBaseUrl + curriculumData.url"
|
||||
<audioPlayer v-if="resType == 20" :url="blobUrl"
|
||||
:name="contentData.contentName" @onPlaying="audioPlaying" :isDrag="curriculumData.isDrag"
|
||||
@onPlay="audioPlay" @onPause="audioPause" @onPlayEnd="audioEnd"></audioPlayer>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@
|
||||
</div>
|
||||
<!-- 我的笔记 -->
|
||||
<div class="mynote" v-show="tab == 2">
|
||||
<my-note :data="courseInfo" @videoLocation="videoLocation" @onPlayVideo="onPlayVideo"
|
||||
<my-note ref="mynote" :data="courseInfo" @videoLocation="videoLocation" @onPlayVideo="onPlayVideo"
|
||||
:score="courseInfo.score"></my-note>
|
||||
</div>
|
||||
</div>
|
||||
@@ -378,7 +378,8 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
onPlayVideo(time){
|
||||
onPlayVideo(contentId,time){
|
||||
//这里需要根据contentId,是否切换到对应的内容的视频的时间
|
||||
this.playerBoxShow = false;
|
||||
this.notePlay = null;
|
||||
setTimeout(() => {
|
||||
@@ -387,7 +388,9 @@
|
||||
},
|
||||
// 笔记功能
|
||||
videoLocation() { // 记录笔记视频位置
|
||||
this.$store.dispatch("SetIntTimeNote", this.intTimeNote);
|
||||
//this.$store.dispatch("SetIntTimeNote", this.intTimeNote);
|
||||
console.log(this.contentData.id+'='+this.intTimeNote,'设置视频播放时间')
|
||||
this.$refs.mynote.setVideoTime(this.contentData.id,this.intTimeNote);
|
||||
},
|
||||
coutab(n) {
|
||||
this.courestab =n;
|
||||
@@ -406,7 +409,7 @@
|
||||
} else {
|
||||
this.blobUrl = process.env.VUE_APP_BASE_API + '/xboe/m/course/cware/resource?sign=' + urlSign;
|
||||
}
|
||||
//console.log(this.blobUrl,'this.blobUrl');
|
||||
console.log(this.blobUrl,'this.blobUrl');
|
||||
},
|
||||
widthOpen(url) {
|
||||
window.open(url, '_blank');
|
||||
@@ -458,6 +461,7 @@
|
||||
|
||||
this.playerBoxShow = false;
|
||||
//显示内容部分
|
||||
this.$refs.mynote.showVideoTimeBtn(false);
|
||||
let $this = this;
|
||||
this.resType = r.contentType;
|
||||
this.contentData = r;
|
||||
@@ -470,6 +474,7 @@
|
||||
} else {
|
||||
this.curriculumData.url = r.content;
|
||||
}
|
||||
this.$refs.mynote.showVideoTimeBtn(true);
|
||||
//let url=process.env.VUE_APP_BASE_API+'/xboe/m/course/file/show?cf='+this.curriculumData.url;
|
||||
//let url=this.fileBaseUrl+this.curriculumData.url;
|
||||
this.createPlayUrl(r.contentRefId, this.curriculumData.url);
|
||||
|
||||
Reference in New Issue
Block a user