diff --git a/src/components/VideoPlayer/progress-bar.vue b/src/components/VideoPlayer/progress-bar.vue index 84bc066d..ab79c995 100644 --- a/src/components/VideoPlayer/progress-bar.vue +++ b/src/components/VideoPlayer/progress-bar.vue @@ -86,10 +86,9 @@ 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) + // 禁止拖动 true:禁止拖动,false:允许拖动 if(!this.isDrag && time && arr[this.blobId] < current) return; - this.$emit("updateProgress", current); // } @@ -103,7 +102,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,12 +118,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); } }, },