From 90ca7e4750a02d104d8dae4de816293d8d55f188 Mon Sep 17 00:00:00 2001 From: joshen <445497689@qq.com> Date: Wed, 16 Oct 2024 19:53:35 +0800 Subject: [PATCH] =?UTF-8?q?pc=E6=92=AD=E6=94=BE=E5=99=A8=E6=8B=96=E5=8A=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PortalHeader.vue | 2 +- src/components/VideoPlayer/index.vue | 2 +- src/components/VideoPlayer/progress-bar.vue | 9 +++++---- src/views/study/coursenew.vue | 10 +++++----- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index b897e63d..a68c4b91 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -209,7 +209,7 @@ export default { this.sex = this.userInfo.sex; this.$store.dispatch('refrashMsg'); this.loadBoeData(); - console.log('this.userInfo::',this.userInfo) + // console.log('this.userInfo::',this.userInfo) //this.loadPopupConfig(); }, methods: { diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index 3869ae06..cb464588 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -318,7 +318,7 @@ export default { } setInterval(() => { - console.log('this.currentProgress::',this.currentProgress,this.isDrag) + //console.log('this.currentProgress::',this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.duration) // 视频播放时本地记录视频实时播放时长,视频设置了禁止拖动时执行 if(!this.isDrag){ var time = localStorage.getItem('videoProgressData') diff --git a/src/components/VideoPlayer/progress-bar.vue b/src/components/VideoPlayer/progress-bar.vue index f9a3c7ca..547937c8 100644 --- a/src/components/VideoPlayer/progress-bar.vue +++ b/src/components/VideoPlayer/progress-bar.vue @@ -86,7 +86,7 @@ export default { if(current<0) current = 0; var time = localStorage.getItem('videoProgressData'); var arr = time&&JSON.parse(time) || {} - console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) + //console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) // 禁止拖动 if(!this.isDrag && time && arr[this.blobId] < current) return; @@ -103,7 +103,7 @@ export default { if(current<0) current = 0; var time = localStorage.getItem('videoProgressData'); var arr = time&&JSON.parse(time) || {} - console.log('move arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) + //console.log('move arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) // 禁止拖动 if(!this.isDrag && time && arr[this.blobId] < current) return; this.$emit("updateProgress", current); @@ -119,11 +119,12 @@ export default { if(current<0) current = 0; var time = localStorage.getItem('videoProgressData'); var arr = time&&JSON.parse(time) || {} - console.log('up arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) + //console.log('up arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) + this.$emit("getMouseDownStatus", false); // 禁止拖动 if(!this.isDrag && time && arr[this.blobId] < current) return; this.$emit("updateProgress", current); - this.$emit("getMouseDownStatus", false); + } }, }, diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 9a3339b5..6620b2b7 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -501,7 +501,7 @@ } treeList.push(treeNode); }); - console.log(treeList,'treeList') + // console.log(treeList,'treeList') return treeList; } }, @@ -652,7 +652,7 @@ } else { this.blobUrl = process.env.VUE_APP_BASE_API + '/xboe/m/course/cware/resource?sign=' + urlSign; } - console.log('this.contentData.id:',this.contentData.id) + // console.log('this.contentData.id:',this.contentData.id) this.blobId = this.contentData.id //console.log(this.blobUrl,'this.blobUrl'); }, @@ -818,7 +818,7 @@ }) - console.log('this.contentData11:',this.contentData,this.curriculumData) + //console.log('this.contentData11:',this.contentData,this.curriculumData) // 视频设置禁用处理逻辑,如果用户已全部观看完该视频,则设置为能全部拖动的逻辑,把isDrag设置为true即可,同时删除本地存储的数据 if(this.contentData.progressVideo ===1){ var obj = JSON.parse(this.contentData.content) @@ -1229,7 +1229,7 @@ itemId: this.contentData.studyItemId, videoTime: intTime }; - console.log('this.courseInfo:',this.contentData) + //console.log('this.courseInfo:',this.contentData) if(!this.curriculumData.isDrag && this.contentData.progressVideo !=1){ var time = localStorage.getItem('videoProgressData') var arr = time&&JSON.parse(time) || {} @@ -1281,7 +1281,7 @@ itemId: this.contentData.studyItemId, videoTime: intTime }; - console.log('this.courseInfo:',this.contentData) + //console.log('this.courseInfo:',this.contentData) if(!this.curriculumData.isDrag && this.contentData.progressVideo !=1){ var time = localStorage.getItem('videoProgressData') var arr = time&&JSON.parse(time) || {}