From 50bd68bd19ec3b86babb4d32aeb8aa9609996d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 13 Feb 2026 11:07:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.vue | 6 ++- pages/plugins/video/search/search.vue | 73 +++++++++++++++++---------- 2 files changed, 50 insertions(+), 29 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 773555e6..21466e95 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -327,11 +327,13 @@ this.init(); }, mounted() { + // #ifdef H5 // 添加全局点击事件监听 document.addEventListener('click', this.handle_global_click); // 添加触摸事件监听(移动端兼容) document.addEventListener('touchstart', this.handle_global_click); + //#endif // 创建监听事件 this.bind_keyboard_listener(); }, @@ -352,11 +354,11 @@ if (typeof document !== 'undefined') { document.removeEventListener('keydown', this.handle_keydown); } - // #endif - this.unbind_keyboard_listener(); // 移除全局事件监听器 document.removeEventListener('click', this.handle_global_click); document.removeEventListener('touchstart', this.handle_global_click); + // #endif + this.unbind_keyboard_listener(); }, methods: { isEmpty, diff --git a/pages/plugins/video/search/search.vue b/pages/plugins/video/search/search.vue index 2b2b9ad3..9585b116 100644 --- a/pages/plugins/video/search/search.vue +++ b/pages/plugins/video/search/search.vue @@ -1,5 +1,6 @@