From 30e09aece005d6727821bece280110c66fdc34c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 12 Feb 2026 10:11:08 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BE=E6=8A=A5=E4=BA=8B?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../plugins/video/components/comment-info.vue | 2 +-
pages/plugins/video/detail/detail.vue | 54 ++++++++++++-------
2 files changed, 35 insertions(+), 21 deletions(-)
diff --git a/pages/plugins/video/components/comment-info.vue b/pages/plugins/video/components/comment-info.vue
index bc2a79e4..c9a00366 100644
--- a/pages/plugins/video/components/comment-info.vue
+++ b/pages/plugins/video/components/comment-info.vue
@@ -11,7 +11,7 @@
-
+
+
+
+
+ {{ item.name }}
+
+
+
@@ -228,7 +235,8 @@
share_info: {},
params: {},
header_padding_left: '',
- report_type_list: [],
+ report_type_list: [], // 举报类型列表
+ popup_report_status: false, // 举报弹窗状态
direction: 'direction',
base_config_data: {
is_video_auto_play: 0,
@@ -1234,26 +1242,28 @@
},
// 关闭下拉菜单
- handle_dropdown_item_click(id, data) {
+ handle_dropdown_item_click(comment_id, data) {
if (this.active_dropdown_id == comment_id) {
this.active_dropdown_id = null;
}
- // 处理不同操作
- if (data.action == 'delete') {
- // 确认删除
- uni.showModal({
- title: '确认删除',
- content: '确定删除此评论吗?',
- success: (res) => {
- if (res.confirm) {
- // 调用删除接口
- this.delete_comment(id);
- }
- }
- });
- } else if (data.action == 'report') {
- // 举报评论
- }
+ this.popup_report_status = true;
+ debugger;
+ // // 处理不同操作
+ // if (data.action == 'delete') {
+ // // 确认删除
+ // uni.showModal({
+ // title: '确认删除',
+ // content: '确定删除此评论吗?',
+ // success: (res) => {
+ // if (res.confirm) {
+ // // 调用删除接口
+ // this.delete_comment(id);
+ // }
+ // }
+ // });
+ // } else if (data.action == 'report') {
+ // // 举报评论
+ // }
},
// 删除评论
delete_comment(comment_id) {
@@ -1299,6 +1309,10 @@
this.active_dropdown_id = null;
}
},
+ // 关闭举报弹窗
+ popup_close_event() {
+ this.popup_report_status = false;
+ }
},
mounted() {
// 添加全局点击事件监听
@@ -1516,7 +1530,7 @@
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
- z-index: 999;
+ z-index: 99;
display: flex;
justify-content: center;
align-items: flex-end;