mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
课程笔记
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user