From c81bc914855ea849c0b489126a2e6b8fef93c810 Mon Sep 17 00:00:00 2001 From: yanghang Date: Fri, 11 Jul 2025 17:36:31 +0800 Subject: [PATCH 1/2] fix: bug --- .../image-preview/video-preview.vue | 31 +++++++++++++--- src/pages/course/components/talkingItem.vue | 37 ++++++++++++++++--- src/pages/course/components/touchBtn.vue | 29 ++++++++++----- src/pages/course/study.vue | 3 +- 4 files changed, 77 insertions(+), 23 deletions(-) diff --git a/src/components/image-preview/video-preview.vue b/src/components/image-preview/video-preview.vue index fc0cc02f..bdb15883 100644 --- a/src/components/image-preview/video-preview.vue +++ b/src/components/image-preview/video-preview.vue @@ -1,6 +1,11 @@ @@ -17,6 +22,7 @@ }, data() { return { + showModel: false, fileUrlShow:'', watching:false }; @@ -30,7 +36,7 @@ watch: { fileId: { handler(newval, oldval) { - if(newval.indexOf('http:') === 0){ + if(newval.indexOf('http') === 0){ this.fileUrlShow = newval return } @@ -43,6 +49,9 @@ } }, methods: { + playError(info){ + console.log('err:',info) + }, getPreviewUrlBlob(id) { if (!id) { this.fileUrlShow = '' @@ -60,8 +69,9 @@ }, }, mounted() { + console.log(this.fileId) if (this.fileId) { - if(this.fileId.indexOf('http:') === 0){ + if(this.fileId.indexOf('http') === 0){ this.fileUrlShow = this.fileId }else{ this.getPreviewUrlBlob(this.fileId); @@ -72,13 +82,22 @@ } -