From 47adfa18165d20f635626b7acd83c2e26cb3ca13 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 16:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.nvue | 46 +++++++++++++++----------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 03d1c44a..5e4f0e6f 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -90,8 +90,8 @@ - - + + {{$t('common.comment')}} @@ -145,9 +145,9 @@ @@ -164,17 +164,17 @@ - + - - - - + + + + @@ -236,9 +236,9 @@ - - - + + + @@ -783,7 +783,7 @@ // 图片上传回调 upload_images_event(res) { - try { + try { console.log(res); if((res || null) != null) { // 存储上传图片内容 @@ -834,6 +834,14 @@ } }, + comment_modal_content(e) { + try { + e.stopPropagation(); + } catch (error) { + console.error('comment_modal error:', error); + } + }, + // 收藏 handle_like(e) { try { @@ -882,8 +890,7 @@ }, // 关闭评论区 close_comment_modal(e) { - try { - + try { this.active_dropdown_id = null; this.show_comment_modal = false; this.comment_scroll_top = 0 + Math.random(); // 关闭评论时滚动到最顶部 @@ -899,11 +906,12 @@ 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(); } + + if (this.$refs.commentRef) { + this.$refs.commentRef.blur(); + } + e.stopPropagation(); } catch (error) { console.error('close_comment_modal error:', error); }