课程笔记

This commit is contained in:
zhaofang
2022-09-09 15:00:17 +08:00
parent 6b8e77fcf1
commit 75036cc5fc
5 changed files with 138 additions and 30 deletions

View File

@@ -25,6 +25,7 @@
:src="blobUrl"
@onPlayerPlaying="onPlayerPlaying"
:initTime="contentData.lastStudyTime"
:notePlay="notePlay"
@onPlayerPlay="onPlayerPlay"
:isDrag="curriculumData.isDrag"
@onFullscreen="onFullscreen"
@@ -142,7 +143,7 @@
</div>
<!-- 我的笔记 -->
<div class="mynote" v-if="tab == 2">
<my-note :data="contentData" @videoLocation="videoLocation"></my-note>
<my-note :data="contentData" @videoLocation="videoLocation" @onPlayVideo="onPlayVideo"></my-note>
</div>
</div>
<div class="coures-tearch">
@@ -210,6 +211,7 @@ export default {
components: {courseImage, portalHeader, hyperLink, comments, homework, exam, interactBar, assess, pdfPreview, audioPlayer, videoPlayer,myNote },
data(){
return{
notePlay:null,
intTimeNote:'',
courestab:true,
curCFile:{
@@ -301,8 +303,14 @@ export default {
}
},
methods: {
onPlayVideo(time) {
this.playerBoxShow = false;
this.notePlay = null;
setTimeout(()=>{
this.notePlay = time;
},1000)
},
// 笔记功能
videoLocation() {// 记录笔记视频位置
this.$store.dispatch("SetIntTimeNote", this.intTimeNote);
},