From ddfb967c722c21affbf3bb47c1ad81f1748f8f59 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 Mar 2026 15:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E8=BE=93=E5=85=A5=E6=A1=86=E5=A4=B1?= =?UTF-8?q?=E5=8E=BB=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/components/search.vue | 7 ++++++- pages/plugins/video/detail/detail.nvue | 12 +++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pages/plugins/video/components/search.vue b/pages/plugins/video/components/search.vue index 677519a8..b6ad4d6c 100644 --- a/pages/plugins/video/components/search.vue +++ b/pages/plugins/video/components/search.vue @@ -4,7 +4,12 @@ - + + + + + + {{$t('common.search')}} diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 426e51e6..de76776a 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -225,7 +225,7 @@ - + @@ -875,7 +875,8 @@ }, // 关闭评论区 close_comment_modal(e) { - try { + try { + this.active_dropdown_id = null; this.show_comment_modal = false; this.comment_scroll_top = 0 + Math.random(); // 关闭评论时滚动到最顶部 @@ -891,6 +892,10 @@ if (this.comment_move_throttle_timer) { clearTimeout(this.comment_move_throttle_timer); this.comment_move_throttle_timer = null; + } + + if (this.$refs.commentRef) { + this.$refs.commentRef.blur(); } } catch (error) { console.error('close_comment_modal error:', error); @@ -1305,7 +1310,7 @@ }, // 删除回复评论数据 comment_data_delete() { - try { + try { this.active_dropdown_id = null; this.comments_reply_data = {}; } catch (error) { @@ -1654,6 +1659,7 @@ add_comment() { try { //#ifndef H5 + this.active_dropdown_id = null; this.is_add_comment = true; this.active_dropdown_id = null; //#endif