- 重构后台所有管理页面工具栏,移除图标改用纯文字按钮 - 新增商户管理的批量审核功能与商家详情/审核页面 - 新增帖子管理的批量审核/上下架功能与帖子详情/审核页面 - 新增多媒体相册字段的前后台处理逻辑 - 新增微信订阅消息兼容导出层 - 更新站点版本号并优化品牌色变量 - 新增商户/帖子控制器的详情与审核方法 - 新增 .sql 文件忽略规则
183 行
9.8 KiB
HTML
183 行
9.8 KiB
HTML
<div class="fc-detail-container" style="padding: 15px 15px 75px 15px; background: #F8FAFC;">
|
|
<!-- 顶部:送审主体与待审提醒 -->
|
|
<div class="panel panel-default" style="border: 1px solid #E2E8F0; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 15px;">
|
|
<div class="panel-body" style="padding: 16px;">
|
|
<div style="display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;">
|
|
<div style="display: flex; align-items: center; gap: 12px;">
|
|
<img src="{$userInfo.avatar|default='/assets/img/avatar.png'}" style="width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #E2E8F0;">
|
|
<div>
|
|
<div style="font-size: 15px; font-weight: 700; color: #1E293B;">
|
|
{$userInfo.nickname|htmlentities}
|
|
<span class="label label-info" style="font-weight: normal; font-size: 11px; margin-left: 6px;">UID: {$userInfo.id}</span>
|
|
</div>
|
|
<div style="font-size: 12px; color: #64748B; margin-top: 3px;">
|
|
绑定手机:<strong>{$userInfo.mobile|default='未绑定'}</strong> · 历史发帖:{$userInfo.post_count} 条 · 提交于:{$row.createtime|date='Y-m-d H:i:s',###}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
{if $row.audit_status == 1}
|
|
<span class="label label-success" style="font-size: 13px; padding: 6px 12px; border-radius: 4px;">当前状态:已审核通过</span>
|
|
{elseif $row.audit_status == 2 /}
|
|
<span class="label label-danger" style="font-size: 13px; padding: 6px 12px; border-radius: 4px;">当前状态:已驳回</span>
|
|
{else /}
|
|
<span class="label label-warning" style="font-size: 13px; padding: 6px 12px; border-radius: 4px;">待人工审核</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
{if $row.audit_status == 2 && $row.audit_reason}
|
|
<div style="margin-top: 14px; padding: 10px 14px; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 6px; color: #991B1B; font-size: 13px;">
|
|
<strong>上次驳回原因:</strong>{$row.audit_reason|htmlentities}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 送审核心内容核验卡 -->
|
|
<div class="panel panel-default" style="border: 1px solid #E2E8F0; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 15px;">
|
|
<div class="panel-body" style="padding: 20px;">
|
|
<div style="display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px;">
|
|
<span class="label label-default" style="font-size: 12px; padding: 4px 8px;">{$row.category_name|default='未分类'}</span>
|
|
<div style="font-size: 20px; font-weight: 700; color: #EA580C;">
|
|
{if $row.price > 0}
|
|
¥ {$row.price} {if $row.price_unit}<small style="color: #64748B; font-size: 13px;">{$row.price_unit}</small>{/if}
|
|
{else /}
|
|
面议 / 免费
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<h3 style="margin: 0 0 14px 0; font-size: 18px; font-weight: 700; color: #0F172A; line-height: 1.4;">
|
|
{$row.title|htmlentities}
|
|
</h3>
|
|
|
|
{if !empty($row.tags)}
|
|
<div style="margin-bottom: 16px;">
|
|
{volist name=":explode(',', (string)$row.tags)" id="tag"}
|
|
{if trim($tag)}
|
|
<span style="display: inline-block; background: #EEF2FF; color: #4338CA; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-right: 6px; margin-bottom: 4px;">{$tag}</span>
|
|
{/if}
|
|
{/volist}
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="row" style="background: #F8FAFC; border: 1px solid #EDEFF3; border-radius: 6px; padding: 12px; margin: 0 0 16px 0; font-size: 13px; color: #334155;">
|
|
<div class="col-xs-12 col-sm-6" style="margin-bottom: 6px;">
|
|
<span style="color: #64748B;">服务区域:</span><strong>{$row.area|default='-'}</strong> {if !empty($row.address)}· {$row.address|htmlentities}{/if}
|
|
</div>
|
|
<div class="col-xs-12 col-sm-6" style="margin-bottom: 6px;">
|
|
<span style="color: #64748B;">联系人:</span><strong>{$row.contact|default='-'}</strong>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-6">
|
|
<span style="color: #64748B;">联系电话:</span><strong>{$row.phone|default='-'}</strong>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-6">
|
|
<span style="color: #64748B;">微信号:</span><strong>{$row.wechat|default='-'}</strong>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="font-weight: 700; color: #1E293B; margin-bottom: 8px; font-size: 14px;">详细内容描述:</div>
|
|
<div style="background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 6px; padding: 14px; min-height: 90px; font-size: 14px; line-height: 1.7; color: #334155; white-space: pre-wrap; word-break: break-all;">
|
|
{$row.content|default='(发布人未填写详细正文描述)'|htmlentities}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 图片资料质检区 -->
|
|
<div class="panel panel-default" style="border: 1px solid #E2E8F0; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 20px;">
|
|
<div class="panel-heading" style="background: #FFFFFF; border-bottom: 1px solid #F1F5F9; font-weight: 700; color: #1E293B; font-size: 14px; padding: 12px 16px;">
|
|
送审图片质检 ({:count($mediaList)} 张)
|
|
</div>
|
|
<div class="panel-body" style="padding: 16px;">
|
|
{if empty($mediaList)}
|
|
<div style="text-align: center; color: #94A3B8; padding: 20px;">用户未上传任何附加图片</div>
|
|
{else /}
|
|
<div style="display: flex; flex-wrap: wrap; gap: 12px;">
|
|
{volist name="mediaList" id="media"}
|
|
<a href="{$media}" target="_blank" title="点击查看大图" style="display: block; width: 110px; height: 110px; border-radius: 6px; overflow: hidden; border: 1px solid #E2E8F0; background: #000;">
|
|
<img src="{$media}" style="width: 100%; height: 100%; object-fit: cover;">
|
|
</a>
|
|
{/volist}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 审核专属底部操作栏:清爽三键 -->
|
|
<div class="fc-detail-footer" style="position: fixed; bottom: 0; left: 0; right: 0; background: #FFFFFF; border-top: 1px solid #E2E8F0; padding: 12px 24px; z-index: 99; display: flex; align-items: center; justify-content: flex-end; gap: 12px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);">
|
|
<button type="button" class="btn btn-danger btn-embossed" id="btn-reject" style="padding: 6px 22px; font-weight: 600;">驳回</button>
|
|
<button type="button" class="btn btn-success btn-embossed" id="btn-pass" style="padding: 6px 22px; font-weight: 600;">通过</button>
|
|
<button type="button" class="btn btn-default btn-embossed" id="btn-close" style="padding: 6px 18px;">关闭</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
/**
|
|
* 审核专属交互逻辑
|
|
*/
|
|
$(function () {
|
|
var postId = {$row.id};
|
|
var lastRejectReason = {$row.audit_reason ? json_encode($row.audit_reason) : '""'};
|
|
|
|
function submitAudit(status, reason) {
|
|
Fast.api.ajax({
|
|
url: 'fc/post/audit',
|
|
type: 'POST',
|
|
data: {
|
|
ids: postId,
|
|
auditStatus: status,
|
|
reason: reason || ''
|
|
}
|
|
}, function (data, ret) {
|
|
Toastr.success(ret.msg || '操作成功');
|
|
setTimeout(function () {
|
|
var index = parent.Layer.getFrameIndex(window.name);
|
|
parent.Layer.close(index);
|
|
if (parent.$ && parent.$('#table').length) {
|
|
parent.$('#table').bootstrapTable('refresh');
|
|
}
|
|
}, 400);
|
|
return false;
|
|
}, function (data, ret) {
|
|
Toastr.error(ret.msg || '操作失败');
|
|
return false;
|
|
});
|
|
}
|
|
|
|
// 点击审核通过:弹出简短确认
|
|
$('#btn-pass').on('click', function () {
|
|
Layer.confirm('确认审核通过此信息吗?', {
|
|
title: '通过确认',
|
|
btn: ['通过', '取消']
|
|
}, function (index) {
|
|
Layer.close(index);
|
|
submitAudit(1, '');
|
|
});
|
|
});
|
|
|
|
// 点击驳回:弹窗确认输入驳回原因
|
|
$('#btn-reject').off('click').on('click', function () {
|
|
Layer.prompt({
|
|
title: '请输入驳回原因(将通知给发布用户)',
|
|
formType: 2,
|
|
value: (lastRejectReason || '')
|
|
}, function (value, promptIndex) {
|
|
var reason = $.trim(value);
|
|
if (!reason) {
|
|
Toastr.warning('驳回原因不可为空');
|
|
return;
|
|
}
|
|
Layer.close(promptIndex);
|
|
submitAudit(2, reason);
|
|
});
|
|
});
|
|
|
|
// 点击关闭弹窗
|
|
$('#btn-close').on('click', function () {
|
|
var index = parent.Layer.getFrameIndex(window.name);
|
|
parent.Layer.close(index);
|
|
});
|
|
});
|
|
</script>
|