本次更新主要内容: 1. 新增举报功能,支持举报信息和评价,包含防重复提交和频控保护 2. 新增我的举报页面,展示用户提交的举报记录 3. 新增平台客服弹窗,支持微信在线客服和电话客服 4. 优化消息通知,支持跳转业务页面 5. 新增举报原因字典配置,支持自定义举报原因 6. 修复服务电话默认值问题,移除硬编码兜底 7. 新增相关图标和页面组件,完善用户体验
755 行
34 KiB
HTML
755 行
34 KiB
HTML
<style>
|
||
.fc-report-detail {
|
||
padding: 16px;
|
||
background-color: #f1f5f9;
|
||
color: #334155;
|
||
font-size: 13px;
|
||
}
|
||
.fc-card {
|
||
background: #ffffff;
|
||
border-radius: 8px;
|
||
border: 1px solid #e2e8f0;
|
||
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
|
||
margin-bottom: 14px;
|
||
overflow: hidden;
|
||
}
|
||
.fc-card-header {
|
||
padding: 12px 18px;
|
||
border-bottom: 1px solid #f1f5f9;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
background-color: #fafbfd;
|
||
}
|
||
.fc-card-title {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: #1e293b;
|
||
margin: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
.fc-card-body {
|
||
padding: 16px 18px;
|
||
}
|
||
.fc-tag {
|
||
display: inline-block;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
white-space: nowrap;
|
||
}
|
||
.fc-tag-post { background-color: #e0f2fe; color: #0284c7; }
|
||
.fc-tag-comment { background-color: #ede9fe; color: #7c3aed; }
|
||
.fc-tag-pending { background-color: #fef3c7; color: #d97706; }
|
||
.fc-tag-handled { background-color: #dcfce7; color: #15803d; }
|
||
|
||
/* 双边主体画像对照卡 - 等高对齐 */
|
||
.fc-profile-row {
|
||
display: flex;
|
||
gap: 14px;
|
||
margin-bottom: 14px;
|
||
align-items: stretch;
|
||
}
|
||
.fc-profile-col {
|
||
flex: 1;
|
||
background: #ffffff;
|
||
border-radius: 8px;
|
||
border: 1px solid #e2e8f0;
|
||
padding: 14px 16px;
|
||
box-shadow: 0 1px 3px rgba(0,0,0,0.03);
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
}
|
||
.fc-profile-col.reporter-side {
|
||
border-left: 4px solid #3b82f6;
|
||
}
|
||
.fc-profile-col.target-side {
|
||
border-left: 4px solid #ef4444;
|
||
}
|
||
.fc-profile-title {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
margin-bottom: 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.fc-profile-item {
|
||
margin-bottom: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: 12px;
|
||
}
|
||
.fc-profile-item:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.fc-profile-item .label-name {
|
||
color: #64748b;
|
||
width: 75px;
|
||
flex-shrink: 0;
|
||
}
|
||
.fc-profile-item .label-val {
|
||
color: #1e293b;
|
||
font-weight: 600;
|
||
word-break: break-all;
|
||
}
|
||
|
||
/* 交易要素九宫格网格 */
|
||
.fc-props-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 10px;
|
||
margin-bottom: 14px;
|
||
}
|
||
.fc-prop-cell {
|
||
background: #f8fafc;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 6px;
|
||
padding: 8px 12px;
|
||
}
|
||
.fc-prop-cell .cell-title {
|
||
font-size: 11px;
|
||
color: #64748b;
|
||
margin-bottom: 3px;
|
||
}
|
||
.fc-prop-cell .cell-val {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
color: #1e293b;
|
||
word-break: break-all;
|
||
}
|
||
|
||
/* 附图画廊 */
|
||
.fc-gallery {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 10px;
|
||
margin-top: 8px;
|
||
}
|
||
.fc-evidence-img {
|
||
width: 96px;
|
||
height: 96px;
|
||
object-fit: cover;
|
||
border-radius: 6px;
|
||
border: 1px solid #cbd5e1;
|
||
cursor: pointer;
|
||
transition: transform 0.2s, box-shadow 0.2s;
|
||
}
|
||
.fc-evidence-img:hover {
|
||
transform: scale(1.05);
|
||
box-shadow: 0 4px 10px rgba(0,0,0,0.12);
|
||
}
|
||
|
||
/* 处置工作台 */
|
||
.fc-action-card {
|
||
border: 2px solid #00d26a;
|
||
background: #fcfdfd;
|
||
}
|
||
.fc-radio-label {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
margin-right: 24px;
|
||
cursor: pointer;
|
||
font-weight: 600;
|
||
}
|
||
.fc-radio-label input {
|
||
margin-right: 6px;
|
||
}
|
||
</style>
|
||
|
||
<div class="fc-report-detail">
|
||
|
||
<!-- 0. 案件顶栏摘要 -->
|
||
<div class="fc-card" style="margin-bottom: 12px;">
|
||
<div class="fc-card-body" style="padding: 12px 18px; display: flex; align-items: center; justify-content: space-between;">
|
||
<div style="display: flex; align-items: center; gap: 12px;">
|
||
<span style="font-size: 15px; font-weight: 800; color: #0f172a;">工单 #{$row.id}</span>
|
||
<span class="fc-tag {$row.type_tag_class}">{$row.type_tag_text}</span>
|
||
<span style="font-size: 13px; color: #475569;">
|
||
举报原因:<strong class="text-danger">{$row.reason}</strong>
|
||
</span>
|
||
<span style="font-size: 12px; color: #94a3b8;">
|
||
提交时间:{$row.createtime_text}
|
||
</span>
|
||
</div>
|
||
<div style="display: flex; align-items: center; gap: 8px;">
|
||
{if condition="$targetTotalReports > 1"}
|
||
<span class="label label-danger font-12" style="padding: 4px 8px;">
|
||
<i class="fa fa-warning"></i> 累计被举报 {$targetTotalReports} 次
|
||
</span>
|
||
{/if}
|
||
<span class="fc-tag {$row.status_tag_class}">
|
||
{$row.status_tag_text}
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 1. 纠纷双边主体画像(举报方 vs 被举报方) -->
|
||
<div class="fc-profile-row">
|
||
<!-- 举报方画像 -->
|
||
<div class="fc-profile-col reporter-side">
|
||
<div>
|
||
<div class="fc-profile-title text-primary">
|
||
<span><i class="fa fa-user-circle"></i> 举报人(投诉方)画像</span>
|
||
<span class="label label-info" style="font-size: 11px; font-weight: normal;">{$reporter.user_type}</span>
|
||
</div>
|
||
<div class="fc-profile-item">
|
||
<span class="label-name">用户昵称:</span>
|
||
<span class="label-val">{$reporter.nickname} <span class="text-muted font-11">(UID: {$reporter.id})</span></span>
|
||
</div>
|
||
<div class="fc-profile-item">
|
||
<span class="label-name">联系电话:</span>
|
||
<span class="label-val">{$reporter.mobile}</span>
|
||
</div>
|
||
<div class="fc-profile-item">
|
||
<span class="label-name">实名认证:</span>
|
||
<span class="label-val {$reporter.realname_class}">
|
||
<i class="fa fa-check-circle"></i> {$reporter.realname_text}
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="fc-profile-item" style="margin-top: 8px; border-top: 1px dashed #e2e8f0; padding-top: 6px;">
|
||
<span class="label-name">历史举报:</span>
|
||
<span class="label-val text-primary">累计发起 {$reporter.report_count} 次举报</span>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 被举报人画像 -->
|
||
<div class="fc-profile-col target-side">
|
||
<div>
|
||
<div class="fc-profile-title text-danger">
|
||
<span><i class="fa fa-shield"></i> 被举报责任人画像</span>
|
||
<span class="label {$targetAuthor.status_class}" style="font-size: 11px; font-weight: normal;">
|
||
{$targetAuthor.status_text}
|
||
</span>
|
||
</div>
|
||
{if condition="$targetAuthor.id > 0"}
|
||
<div class="fc-profile-item">
|
||
<span class="label-name">责任作者:</span>
|
||
<span class="label-val">{$targetAuthor.nickname} <span class="text-muted font-11">(UID: {$targetAuthor.id})</span></span>
|
||
</div>
|
||
<div class="fc-profile-item">
|
||
<span class="label-name">绑定手机:</span>
|
||
<span class="label-val">{$targetAuthor.mobile}</span>
|
||
</div>
|
||
<div class="fc-profile-item">
|
||
<span class="label-name">身份/实名:</span>
|
||
<span class="label-val">
|
||
{$targetAuthor.user_type} ·
|
||
<span class="{$targetAuthor.realname_class}">{$targetAuthor.realname_text}</span>
|
||
</span>
|
||
</div>
|
||
{else /}
|
||
<div class="text-muted" style="padding: 10px 0;"><i class="fa fa-info-circle"></i> 原作者账号已注销或原内容已彻底清理</div>
|
||
{/if}
|
||
</div>
|
||
<div class="fc-profile-item" style="margin-top: 8px; border-top: 1px dashed #e2e8f0; padding-top: 6px;">
|
||
<span class="label-name">风控记录:</span>
|
||
<span class="label-val">
|
||
名下内容累计被举报 <strong class="{$targetAuthor.reported_class}">{$targetAuthor.reported_count}</strong> 次
|
||
<span class="text-muted font-11">(历史发布: {$targetAuthor.post_count} 条)</span>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 2. 被举报标的物全息信息 -->
|
||
<div class="fc-card">
|
||
<div class="fc-card-header">
|
||
<h4 class="fc-card-title">
|
||
<i class="fa fa-file-text-o text-warning"></i>
|
||
{$row.target_type == 'post' ? '被举报信息(帖子)完整全貌' : '被举报评价原文及交易背景'}
|
||
</h4>
|
||
<span class="text-muted font-12">
|
||
目标ID: #{$row.target_id} |
|
||
当前状态:<span class="label {$targetInfo.status_class}">{$targetInfo.status_text}</span>
|
||
</span>
|
||
</div>
|
||
<div class="fc-card-body">
|
||
{if condition="$row.target_type == 'post'"}
|
||
{if condition="!$targetInfo.is_deleted"}
|
||
<!-- 帖子标题与分类 -->
|
||
<div style="margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">
|
||
<div style="display:flex;align-items:center;gap:10px;">
|
||
<span class="label label-primary font-12">{$targetInfo.category}</span>
|
||
<span class="label label-default font-12">{$targetInfo.identity_type}</span>
|
||
<span class="label {$targetInfo.is_paid == '付费发布' ? 'label-warning' : 'label-default'} font-12">
|
||
{$targetInfo.is_paid}
|
||
</span>
|
||
<h4 style="margin: 0; font-weight: 800; color: #0f172a; font-size: 16px; line-height: 1.4;">{$targetInfo.title}</h4>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 交易与联络要素网格 -->
|
||
<div class="fc-props-grid">
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">商品/服务标价</div>
|
||
<div class="cell-val text-warning" style="font-size: 15px;">
|
||
{if condition="$targetInfo.price != '面议'"}
|
||
¥{$targetInfo.price} {$targetInfo.price_unit}
|
||
{else /}
|
||
面议
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">联系人称呼</div>
|
||
<div class="cell-val">{$targetInfo.contact}</div>
|
||
</div>
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">联系电话</div>
|
||
<div class="cell-val text-primary"><i class="fa fa-phone"></i> {$targetInfo.phone}</div>
|
||
</div>
|
||
<div class="fc-prop-cell" style="background: #f0fdf4; border-color: #86efac;">
|
||
<div class="cell-title" style="color: #15803d;"><i class="fa fa-weixin"></i> 微信号(重点排查引流)</div>
|
||
<div class="cell-val" style="color: #15803d;">{$targetInfo.wechat}</div>
|
||
</div>
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">所在区域与位置</div>
|
||
<div class="cell-val" title="{$targetInfo.address}">
|
||
{$targetInfo.area} · {$targetInfo.address}
|
||
</div>
|
||
</div>
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">发布与更新时间</div>
|
||
<div class="cell-val font-12" style="font-weight: normal;">{$targetInfo.createtime}</div>
|
||
</div>
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">运营曝光数据</div>
|
||
<div class="cell-val font-12" style="font-weight: normal;">
|
||
浏览 <strong>{$targetInfo.views}</strong> · 点赞 <strong>{$targetInfo.likes}</strong> · 评论 <strong>{$targetInfo.comment_count}</strong>
|
||
</div>
|
||
</div>
|
||
<div class="fc-prop-cell">
|
||
<div class="cell-title">审核状态 / 置顶</div>
|
||
<div class="cell-val font-12">{$targetInfo.audit_status} · {$targetInfo.is_top}</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 完整正文内容 -->
|
||
<div style="margin-bottom: 14px;">
|
||
<label class="text-muted" style="display:block;margin-bottom:6px;font-size:12px;font-weight:700;">帖子完整正文长文本:</label>
|
||
<div style="font-size:13px;line-height:1.75;color:#1e293b;white-space:pre-wrap;background:#f8fafc;padding:14px;border-radius:6px;border:1px solid #e2e8f0;">{$targetInfo.content}</div>
|
||
</div>
|
||
|
||
<!-- 原帖附图全集 -->
|
||
{if condition="!empty($targetImages)"}
|
||
<div>
|
||
<label class="text-muted" style="display:block;margin-bottom:6px;font-size:12px;font-weight:700;">原帖所有配图(共 {:count($targetImages)} 张,点击查看高清大图):</label>
|
||
<div class="fc-gallery">
|
||
{foreach name="targetImages" item="tImg"}
|
||
<img src="{$tImg}" class="fc-evidence-img" title="点击查看大图" />
|
||
{/foreach}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{else /}
|
||
<div class="alert alert-warning no-margin">
|
||
<i class="fa fa-warning"></i> 被举报的信息已被彻底删除或不存在,无法查看原文细节。
|
||
</div>
|
||
{/if}
|
||
|
||
{else /}
|
||
<!-- 评价举报场景 -->
|
||
{if condition="!empty($relatedPost)"}
|
||
<!-- 关联原帖背景 -->
|
||
<div style="background: #f8fafc; padding: 12px 14px; border-radius: 6px; border: 1px dashed #cbd5e1; margin-bottom: 14px;">
|
||
<div style="font-size: 11px; color: #64748b; margin-bottom: 4px;"><i class="fa fa-link"></i> 被评价的原信息背景:</div>
|
||
<div style="display:flex;align-items:center;justify-content:space-between;">
|
||
<span style="font-size: 14px; font-weight: 700; color: #0f172a;">《{$relatedPost.title}》</span>
|
||
<span class="text-warning font-bold">
|
||
{if condition="$relatedPost.price != '面议'"}
|
||
¥{$relatedPost.price} {$relatedPost.price_unit}
|
||
{else /}
|
||
面议
|
||
{/if}
|
||
</span>
|
||
</div>
|
||
<div class="text-muted font-12" style="margin-top: 4px;">
|
||
分类:{$relatedPost.category} ·
|
||
发帖商家:<strong>{$relatedPost.author}</strong> (UID: {$relatedPost.author_id} / 电话: {$relatedPost.author_mobile})
|
||
</div>
|
||
<div class="text-muted font-12" style="margin-top: 4px; color: #64748b;">
|
||
原帖摘要:{$relatedPost.content}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if condition="!$targetInfo.is_deleted"}
|
||
<div style="background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 14px;">
|
||
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;">
|
||
<div>
|
||
<span class="text-muted font-12">评价星级:</span>
|
||
<span class="text-warning" style="font-size:15px;font-weight:700;">
|
||
{$targetInfo.score_stars}
|
||
<span style="font-size:12px;">({$targetInfo.score} 星)</span>
|
||
</span>
|
||
</div>
|
||
<span class="text-muted font-12">评价发表时间:{$targetInfo.createtime}</span>
|
||
</div>
|
||
|
||
<div style="font-size:13px;line-height:1.7;color:#0f172a;background:#f8fafc;padding:12px;border-radius:6px;border:1px solid #e2e8f0;">
|
||
{$targetInfo.content}
|
||
</div>
|
||
|
||
{if condition="!empty($targetImages)"}
|
||
<div style="margin-top: 10px;">
|
||
<span class="text-muted font-12" style="display:block;margin-bottom:6px;">评价配图(点击查看大图):</span>
|
||
<div class="fc-gallery">
|
||
{foreach name="targetImages" item="cImg"}
|
||
<img src="{$cImg}" class="fc-evidence-img" title="评价配图" />
|
||
{/foreach}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if condition="!empty($targetInfo.reply)"}
|
||
<div style="margin-top: 12px; background: #eefaf2; border-left: 3px solid #00d26a; padding: 10px 14px; border-radius: 0 4px 4px 0;">
|
||
<div style="font-weight:700;color:#04874a;font-size:12px;">
|
||
<i class="fa fa-reply"></i> 商家公开回复({$targetInfo.replytime}):
|
||
</div>
|
||
<div style="color:#1e293b;margin-top:4px;font-size:13px;">{$targetInfo.reply}</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
{else /}
|
||
<div class="alert alert-warning no-margin">
|
||
<i class="fa fa-warning"></i> 被举报的评价已被彻底删除或不存在。
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 3. 举报人提供的补充文字说明与截图证据 -->
|
||
<div class="fc-card">
|
||
<div class="fc-card-header">
|
||
<h4 class="fc-card-title"><i class="fa fa-bullhorn text-danger"></i> 举报人提供的证据与违规说明</h4>
|
||
</div>
|
||
<div class="fc-card-body">
|
||
<div style="margin-bottom: 12px;">
|
||
<label class="text-muted" style="display:block;margin-bottom:4px;font-size:12px;font-weight:700;">举报补充说明:</label>
|
||
<div style="background:#f8fafc;padding:12px 14px;border-radius:6px;font-size:13px;line-height:1.6;color:#1e293b;border:1px solid #e2e8f0;">
|
||
{$row.remark|default='举报人未填写补充文字说明'}
|
||
</div>
|
||
</div>
|
||
|
||
{if condition="!empty($images)"}
|
||
<div>
|
||
<label class="text-muted" style="display:block;margin-bottom:6px;font-size:12px;font-weight:700;">证据截图凭证(点击查看高清大图):</label>
|
||
<div class="fc-gallery">
|
||
{foreach name="images" item="img"}
|
||
<img src="{$img}" class="fc-evidence-img" title="点击查看大图" />
|
||
{/foreach}
|
||
</div>
|
||
</div>
|
||
{else /}
|
||
<div class="text-muted font-12"><i class="fa fa-info-circle"></i> 举报人未上传截图凭证</div>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 4. 审核处置操作面板(待处理时提供工作台,已处理时展示处理记录) -->
|
||
{if condition="$row.status == 'pending'"}
|
||
<div class="fc-card fc-action-card">
|
||
<div class="fc-card-header" style="background-color: #f0fdf4;">
|
||
<h4 class="fc-card-title text-success"><i class="fa fa-gavel"></i> 举报核实处置工作台</h4>
|
||
<span class="text-muted font-12"><i class="fa fa-bell-o"></i> 处置后系统将自动在数据库事务中向举报人推送通知消息</span>
|
||
</div>
|
||
<div class="fc-card-body">
|
||
<form id="handle-form" class="form-horizontal" role="form">
|
||
<input type="hidden" name="ids" value="{$row.id}" />
|
||
|
||
<div class="form-group">
|
||
<label class="control-label col-xs-12 col-sm-2" style="font-weight:700;">处置措施:</label>
|
||
<div class="col-xs-12 col-sm-10" style="padding-top:7px;">
|
||
<label class="fc-radio-label text-danger">
|
||
<input type="radio" name="action" value="offline" checked />
|
||
<i class="fa fa-ban"></i>
|
||
{$row.target_type == 'post' ? '下架该违规信息,并标记为已处理' : '屏蔽该违规评价,并标记为已处理'}
|
||
</label>
|
||
<label class="fc-radio-label text-muted">
|
||
<input type="radio" name="action" value="none" />
|
||
<i class="fa fa-check-circle"></i>
|
||
无需下架(内容合规,仅标记处理/驳回举报)
|
||
</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label class="control-label col-xs-12 col-sm-2" style="font-weight:700;">回复/备注:</label>
|
||
<div class="col-xs-12 col-sm-10">
|
||
<textarea id="remark" name="remark" class="form-control" rows="3" placeholder="请输入处理备注(该内容将同步通知给举报人)">经平台核实情况属实,已予以处置。感谢您的监督与支持!</textarea>
|
||
<span class="help-block text-muted font-12" style="margin-bottom:0;margin-top:6px;">
|
||
<i class="fa fa-info-circle"></i> 提示:处理完成后,系统将自动向举报用户下发系统消息通知,用户可在小程序【我的举报】中直接查阅。
|
||
</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group" style="margin-bottom:0;">
|
||
<div class="col-xs-12 col-sm-10 col-sm-offset-2">
|
||
<button type="button" id="btn-submit-handle" class="btn btn-success btn-embossed" style="min-width:140px;font-weight:700;">
|
||
<i class="fa fa-check"></i> 确认处理并通知用户
|
||
</button>
|
||
<button type="button" id="btn-close-handle" class="btn btn-default btn-embossed" style="margin-left:12px;">
|
||
取消关闭
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
{else /}
|
||
<div class="fc-card">
|
||
<div class="fc-card-header">
|
||
<h4 class="fc-card-title"><i class="fa fa-check-circle text-success"></i> 平台处理记录</h4>
|
||
<span class="text-muted font-12">处理时间:{$row.updatetime_text}</span>
|
||
</div>
|
||
<div class="fc-card-body">
|
||
<div class="alert alert-success no-margin">
|
||
<p><strong><i class="fa fa-check-square-o"></i> 状态:已核实处理完毕</strong></p>
|
||
<p style="margin-top:8px;margin-bottom:0;font-size:13px;">
|
||
<strong>处理说明 / 回复内容:</strong>{$row.handle_remark|default='已核实处理'}
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
|
||
<script>
|
||
(function () {
|
||
/**
|
||
* 刷新父页面列表表格
|
||
*/
|
||
function refreshParent() {
|
||
try {
|
||
if (window.parent && window.parent.$ && window.parent.$("#table").length) {
|
||
window.parent.$("#table").bootstrapTable('refresh');
|
||
}
|
||
} catch (e) {}
|
||
try {
|
||
if (window.top && window.top.$ && window.top.$("#table").length) {
|
||
window.top.$("#table").bootstrapTable('refresh');
|
||
}
|
||
} catch (e) {}
|
||
try {
|
||
if (window.top && window.top.$) {
|
||
window.top.$('.tab-pane.active iframe').each(function () {
|
||
if (this.contentWindow && this.contentWindow.$ && this.contentWindow.$("#table").length) {
|
||
this.contentWindow.$("#table").bootstrapTable('refresh');
|
||
}
|
||
});
|
||
}
|
||
} catch (e) {}
|
||
}
|
||
|
||
/**
|
||
* 关闭当前弹窗窗口
|
||
*/
|
||
function closeDialog() {
|
||
try {
|
||
var Fast = window.Fast || (window.parent && window.parent.Fast) || (window.top && window.top.Fast);
|
||
if (Fast && Fast.api && Fast.api.close) {
|
||
Fast.api.close();
|
||
return;
|
||
}
|
||
} catch (e) {}
|
||
try {
|
||
var l = (window.parent && window.parent.Layer) || (window.parent && window.parent.layer) || (window.top && window.top.Layer) || (window.top && window.top.layer);
|
||
if (l) {
|
||
var idx = l.getFrameIndex ? l.getFrameIndex(window.name) : null;
|
||
if (idx) {
|
||
l.close(idx);
|
||
return;
|
||
}
|
||
}
|
||
} catch (e) {}
|
||
try {
|
||
window.close();
|
||
} catch (e) {}
|
||
}
|
||
|
||
/**
|
||
* 获取可用 Layer 对象
|
||
*/
|
||
function getLayer() {
|
||
try {
|
||
if (window.Layer) return window.Layer;
|
||
if (window.layer) return window.layer;
|
||
if (window.parent && window.parent.Layer) return window.parent.Layer;
|
||
if (window.parent && window.parent.layer) return window.parent.layer;
|
||
if (window.top && window.top.Layer) return window.top.Layer;
|
||
if (window.top && window.top.layer) return window.top.layer;
|
||
} catch (e) {}
|
||
return null;
|
||
}
|
||
|
||
/**
|
||
* 获取可用 Fast 对象
|
||
*/
|
||
function getFast() {
|
||
try {
|
||
if (window.Fast && window.Fast.api) return window.Fast;
|
||
if (window.parent && window.parent.Fast && window.parent.Fast.api) return window.parent.Fast;
|
||
if (window.top && window.top.Fast && window.top.Fast.api) return window.top.Fast;
|
||
} catch (e) {}
|
||
return null;
|
||
}
|
||
|
||
/**
|
||
* 获取可用 Toastr 对象
|
||
*/
|
||
function getToastr() {
|
||
try {
|
||
if (window.Toastr) return window.Toastr;
|
||
if (window.toastr) return window.toastr;
|
||
if (window.parent && window.parent.Toastr) return window.parent.Toastr;
|
||
if (window.top && window.top.Toastr) return window.top.Toastr;
|
||
} catch (e) {}
|
||
return null;
|
||
}
|
||
|
||
// 1. 动态切换处置话术提示
|
||
document.addEventListener('change', function (e) {
|
||
if (e.target && e.target.name === 'action') {
|
||
var remarkArea = document.getElementById('remark');
|
||
if (remarkArea) {
|
||
if (e.target.value === 'offline') {
|
||
remarkArea.value = '经平台核实情况属实,已予以处置。感谢您的监督与支持!';
|
||
} else {
|
||
remarkArea.value = '经平台核实该内容暂未构成违规。感谢您的反馈与对平台的关注!';
|
||
}
|
||
}
|
||
}
|
||
});
|
||
|
||
// 2. 原生点击事件捕获(双重兜底,即便未加载完 RequireJS 也 100% 响应)
|
||
document.addEventListener('click', function (e) {
|
||
var target = e.target;
|
||
if (!target) return;
|
||
|
||
// 2.1 点击【确认处理并通知用户】按钮
|
||
var submitBtn = target.closest ? target.closest('#btn-submit-handle') : (target.id === 'btn-submit-handle' ? target : null);
|
||
if (submitBtn) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
|
||
if (submitBtn.disabled) return false;
|
||
|
||
var form = document.getElementById('handle-form');
|
||
if (!form) return false;
|
||
|
||
var formData = $(form).serialize();
|
||
var l = getLayer();
|
||
var f = getFast();
|
||
var t = getToastr();
|
||
|
||
var executeSubmit = function () {
|
||
submitBtn.disabled = true;
|
||
submitBtn.innerHTML = '<i class="fa fa-spinner fa-spin"></i> 正在提交处理...';
|
||
|
||
var onDone = function (msg) {
|
||
if (t) t.success(msg || '处理成功');
|
||
// 1. 立即触发父窗口列表刷新
|
||
refreshParent();
|
||
// 2. 平滑关闭当前弹窗
|
||
setTimeout(function () {
|
||
closeDialog();
|
||
}, 350);
|
||
};
|
||
|
||
if (f && f.api && f.api.ajax) {
|
||
f.api.ajax({
|
||
url: 'fc/report/handle',
|
||
data: formData
|
||
}, function (res, ret) {
|
||
onDone(ret && ret.msg ? ret.msg : '处理成功');
|
||
return false;
|
||
}, function (err) {
|
||
submitBtn.disabled = false;
|
||
submitBtn.innerHTML = '<i class="fa fa-check"></i> 确认处理并通知用户';
|
||
return true;
|
||
});
|
||
} else {
|
||
// 原生 jQuery ajax 兜底
|
||
$.ajax({
|
||
url: 'fc/report/handle',
|
||
type: 'POST',
|
||
data: formData,
|
||
dataType: 'json',
|
||
success: function (ret) {
|
||
if (ret.code === 1) {
|
||
onDone(ret.msg || '处理成功');
|
||
} else {
|
||
alert(ret.msg || '处理失败');
|
||
submitBtn.disabled = false;
|
||
submitBtn.innerHTML = '<i class="fa fa-check"></i> 确认处理并通知用户';
|
||
}
|
||
},
|
||
error: function () {
|
||
alert('网络请求异常,请重试');
|
||
submitBtn.disabled = false;
|
||
submitBtn.innerHTML = '<i class="fa fa-check"></i> 确认处理并通知用户';
|
||
}
|
||
});
|
||
}
|
||
};
|
||
|
||
if (l && l.confirm) {
|
||
l.confirm('确定要执行该处置操作吗?系统将自动下发通知给举报人。', {
|
||
title: '审核处置确认',
|
||
icon: 3
|
||
}, function (index) {
|
||
l.close(index);
|
||
executeSubmit();
|
||
});
|
||
} else {
|
||
if (confirm('确定要执行该处置操作吗?系统将自动下发通知给举报人。')) {
|
||
executeSubmit();
|
||
}
|
||
}
|
||
return false;
|
||
}
|
||
|
||
// 2.2 点击【取消关闭】按钮
|
||
var closeBtn = target.closest ? target.closest('#btn-close-handle') : (target.id === 'btn-close-handle' ? target : null);
|
||
if (closeBtn) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
closeDialog();
|
||
return false;
|
||
}
|
||
|
||
// 2.3 点击证据或配图查看高清大图
|
||
var imgTarget = target.closest ? target.closest('.fc-evidence-img') : (target.classList && target.classList.contains('fc-evidence-img') ? target : null);
|
||
if (imgTarget) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
var src = imgTarget.getAttribute('src');
|
||
if (!src) return false;
|
||
var l = getLayer();
|
||
if (l && l.open) {
|
||
l.open({
|
||
type: 1,
|
||
title: false,
|
||
closeBtn: 1,
|
||
area: ['auto', 'auto'],
|
||
skin: 'layui-layer-nobg',
|
||
shadeClose: true,
|
||
content: '<div style="text-align:center;padding:12px;background:#ffffff;border-radius:8px;max-width:92vw;max-height:88vh;overflow:auto;"><img src="' + src + '" style="max-width:100%;max-height:80vh;object-fit:contain;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,0.15);" /></div>'
|
||
});
|
||
} else {
|
||
window.open(src, '_blank');
|
||
}
|
||
return false;
|
||
}
|
||
}, true);
|
||
})();
|
||
</script> |