修改举报事件

master
于肖磊 2026-02-12 10:11:08 +08:00
parent e4e8df5499
commit 30e09aece0
2 changed files with 35 additions and 21 deletions

View File

@ -11,7 +11,7 @@
</view>
<!-- 下拉菜单 -->
<view v-if="drop_down_visible" class="dropdown-menu" @tap.stop>
<view v-for="(item, index) in dropdownOptions.filter(item => (propComment.is_can_delete == 1 && item.type == 'delete') || (propComment.is_can_report == 1 && item.type == 'report'))" :key="index" class="dropdown-item" :class="{ 'dropdown-item-divided': item.divided }" :data-value="item" @tap="handle_dropdown_item_click">
<view v-for="(item, index) in dropdownOptions.filter(item => (propComment.is_can_delete == 1 && item.type == 'delete') || (propComment.is_can_report == 1 && item.type == 'report'))" :key="index" class="dropdown-item" :data-value="item" @tap="handle_dropdown_item_click">
<text>{{ item.label }}</text>
</view>
</view>

View File

@ -151,7 +151,14 @@
</view>
</view>
</view>
<component-popup :propShow="popup_report_status" propPosition="bottom" @onclose="popup_close_event">
<view class="flex-col jc-c gap-20">
<view v-for="(item, index) in report_type_list" :key="index" class="flex-row align-c gap-10" @tap="handle_report_type_click(index)">
<iconfont name="icon-checkbox" size="32rpx" color="#999"></iconfont>
<view class="fs-32rpx">{{ item.name }}</view>
</view>
</view>
</component-popup>
<!-- 分享弹窗 -->
<component-share-popup ref="share"></component-share-popup>
</view>
@ -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;