184 行
11 KiB
HTML
184 行
11 KiB
HTML
<div class="fc-detail-container" style="padding: 15px 15px 70px 15px; background: #F8FAFC;">
|
|
<!-- 概览卡片 -->
|
|
<div class="row" style="margin: 0 0 15px 0;">
|
|
<div class="col-xs-6 col-sm-3" style="padding: 0 6px 0 0;">
|
|
<div style="background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px; text-align: center;">
|
|
<div style="font-size: 11px; color: #64748B;">资质状态</div>
|
|
<div style="font-size: 14px; font-weight: 700; margin-top: 4px;">
|
|
{if $row.audit_status == 1}
|
|
<span class="text-success">已通过</span>
|
|
{elseif $row.audit_status == 2 /}
|
|
<span class="text-danger">已驳回</span>
|
|
{else /}
|
|
<span class="text-warning">待审核</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-3" style="padding: 0 6px;">
|
|
<div style="background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px; text-align: center;">
|
|
<div style="font-size: 11px; color: #64748B;">营业状态</div>
|
|
<div style="font-size: 14px; font-weight: 700; margin-top: 4px;">
|
|
{if $row.shop_status == 'normal'}
|
|
<span class="text-success">正常营业</span>
|
|
{else /}
|
|
<span class="text-muted">暂停歇业</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-3" style="padding: 0 6px;">
|
|
<div style="background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px; text-align: center;">
|
|
<div style="font-size: 11px; color: #64748B;">推荐位</div>
|
|
<div style="font-size: 14px; font-weight: 700; margin-top: 4px;">
|
|
{if $row.recommend == 1}
|
|
<span class="text-warning">首页推荐</span>
|
|
{else /}
|
|
<span class="text-muted">普通</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-3" style="padding: 0 0 0 6px;">
|
|
<div style="background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px; text-align: center;">
|
|
<div style="font-size: 11px; color: #64748B;">累计发帖</div>
|
|
<div style="font-size: 14px; font-weight: 700; color: #0F172A; margin-top: 4px;">{$row.post_count|default=0} 篇</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 审核结论提示条(若已驳回则突出展示原因) -->
|
|
{if $row.audit_status == 2}
|
|
<div style="margin-bottom: 15px; padding: 14px 18px; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 8px;">
|
|
<div style="display: flex; align-items: baseline; gap: 8px;">
|
|
<span class="label label-danger" style="font-size: 12px; padding: 3px 8px;">已驳回</span>
|
|
<span style="font-weight: 700; color: #991B1B; font-size: 14px;">资质审核未通过原因:</span>
|
|
</div>
|
|
<div style="margin-top: 8px; font-size: 13px; line-height: 1.6; color: #7F1D1D; word-break: break-all; background: #FFFFFF; padding: 10px 14px; border-radius: 6px; border: 1px solid #FECACA;">
|
|
{$row.audit_reason|default='(管理员未填写具体驳回原因)'|htmlentities}
|
|
</div>
|
|
</div>
|
|
{elseif $row.audit_status == 1 /}
|
|
<div style="margin-bottom: 15px; padding: 10px 16px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; display: flex; align-items: center; justify-content: space-between;">
|
|
<div style="color: #166534; font-size: 13px; font-weight: 600;">
|
|
<span class="label label-success" style="font-size: 11px; margin-right: 6px;">已通过</span> 该商户资质已通过人工审核
|
|
</div>
|
|
{if !empty($row.updatetime)}
|
|
<span style="font-size: 12px; color: #15803D;">审核时间:{$row.updatetime|date='Y-m-d H:i:s',###}</span>
|
|
{/if}
|
|
</div>
|
|
{else /}
|
|
<div style="margin-bottom: 15px; padding: 10px 16px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; display: flex; align-items: center; justify-content: space-between;">
|
|
<div style="color: #92400E; font-size: 13px; font-weight: 600;">
|
|
<span class="label label-warning" style="font-size: 11px; margin-right: 6px;">待审核</span> 该商户正在等待资质核验
|
|
</div>
|
|
<a href="javascript:;" id="btn-banner-to-audit" title="立即前往审核" style="color: #D97706; font-size: 12px; font-weight: 600; text-decoration: underline;">审核</a>
|
|
</div>
|
|
{/if}
|
|
|
|
<!-- 商家主体档案 -->
|
|
<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="{$row.logo|default='/assets/img/avatar.png'}" style="width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid #E2E8F0;">
|
|
<div>
|
|
<div style="font-size: 16px; font-weight: 700; color: #1E293B;">
|
|
{$row.name|htmlentities}
|
|
<span class="label label-info" style="font-weight: normal; font-size: 11px; margin-left: 6px;">商户ID: {$row.id}</span>
|
|
</div>
|
|
<div style="font-size: 12px; color: #64748B; margin-top: 3px;">
|
|
行业分类:<strong>{$row.category|default='未归类'}</strong> · 绑定用户:{$userInfo.nickname|htmlentities} (UID: {$userInfo.id})
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="font-size: 12px; color: #94A3B8; text-align: right;">
|
|
<div>入驻时间:{$row.createtime|date='Y-m-d H:i:s',###}</div>
|
|
{if !empty($row.updatetime)}
|
|
<div style="margin-top: 2px;">更新时间:{$row.updatetime|date='Y-m-d H:i:s',###}</div>
|
|
{/if}
|
|
</div>
|
|
</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: 15px;">
|
|
<div class="panel-body" style="padding: 16px;">
|
|
<div class="row" style="margin: 0; font-size: 13px; color: #334155;">
|
|
<div class="col-xs-12 col-sm-6" style="margin-bottom: 10px;">
|
|
<span style="color: #64748B;">联系人:</span><strong>{$row.contact|default='-'}</strong>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-6" style="margin-bottom: 10px;">
|
|
<span style="color: #64748B;">绑定电话:</span><strong>{$userInfo.mobile|default='未绑定'}</strong>
|
|
</div>
|
|
<div class="col-xs-12" style="margin-top: 6px;">
|
|
<span style="color: #64748B;">商户公告/简介:</span>
|
|
<div style="background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 4px; padding: 10px; margin-top: 6px; line-height: 1.6;">
|
|
{$row.notice|default='(暂未设置商户公告)'|htmlentities}
|
|
</div>
|
|
</div>
|
|
</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: 15px;">
|
|
<div class="panel-heading" style="background: #FFFFFF; border-bottom: 1px solid #F1F5F9; font-weight: 700; color: #1E293B; font-size: 14px; padding: 12px 16px;">
|
|
证照与门店照片
|
|
</div>
|
|
<div class="panel-body" style="padding: 16px;">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-6">
|
|
<div style="font-size: 12px; color: #64748B; margin-bottom: 6px;">营业执照:</div>
|
|
{if !empty($row.license)}
|
|
<a href="{$row.license}" target="_blank" title="点击查看大图" style="display: inline-block; max-width: 100%; border: 1px solid #CBD5E1; border-radius: 6px; overflow: hidden;">
|
|
<img src="{$row.license}" style="max-height: 160px; max-width: 100%; object-fit: contain;">
|
|
</a>
|
|
{else /}
|
|
<div style="padding: 16px; background: #F8FAFC; border: 1px dashed #E2E8F0; border-radius: 4px; text-align: center; color: #94A3B8;">未上传</div>
|
|
{/if}
|
|
</div>
|
|
<div class="col-xs-12 col-sm-6">
|
|
<div style="font-size: 12px; color: #64748B; margin-bottom: 6px;">门店横幅:</div>
|
|
{if !empty($row.banner)}
|
|
<a href="{$row.banner}" target="_blank" title="点击查看大图" style="display: inline-block; max-width: 100%; border: 1px solid #CBD5E1; border-radius: 6px; overflow: hidden;">
|
|
<img src="{$row.banner}" style="max-height: 160px; max-width: 100%; object-fit: contain;">
|
|
</a>
|
|
{else /}
|
|
<div style="padding: 16px; background: #F8FAFC; border: 1px dashed #E2E8F0; border-radius: 4px; text-align: center; color: #94A3B8;">未上传</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</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 20px; z-index: 99; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);">
|
|
<div>
|
|
<button type="button" class="btn btn-default btn-xs" id="btn-to-audit" style="color: #64748B;" title="重新审核资质">重审</button>
|
|
</div>
|
|
<div>
|
|
<button type="button" class="btn btn-default btn-embossed" id="btn-close" style="padding: 6px 22px;">关闭</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
/**
|
|
* 商家详情交互
|
|
*/
|
|
$(function () {
|
|
var merchantId = {$row.id};
|
|
|
|
$('#btn-to-audit, #btn-banner-to-audit').on('click', function () {
|
|
location.href = 'fc/merchant/detail?ids=' + merchantId + '&mode=audit';
|
|
});
|
|
|
|
$('#btn-close').on('click', function () {
|
|
var index = parent.Layer.getFrameIndex(window.name);
|
|
parent.Layer.close(index);
|
|
});
|
|
});
|
|
</script>
|