fix(admin): 下线退款重发功能并优化用户详情页布局
- 移除后台订单和支付流水的退款重发按钮及接口 - 新增用户详情页分区导航和资金流水筛选功能 - 升级账号安全页面为企业资质认证功能 - 新增企业资质相关测试用例和图标 - 升级版本号至1.0.96
这个提交包含在:
@@ -25,6 +25,9 @@
|
||||
.ud-card-hd { padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 13.5px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; }
|
||||
.ud-card-hd i { color: #ea580c; }
|
||||
.ud-card-bd { padding: 14px 16px; }
|
||||
.ud-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
|
||||
.ud-section-nav a { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 5px; color: #475569; background: #fff; }
|
||||
.ud-stat small { display: block; max-width: 180px; color: #64748b; font-size: 11px; font-weight: normal; }
|
||||
</style>
|
||||
|
||||
<div class="ud-wrap">
|
||||
@@ -61,7 +64,8 @@
|
||||
</div>
|
||||
<div class="ud-stat">
|
||||
<b>¥{$totalSpent}</b>
|
||||
<span>累计实付</span>
|
||||
<span>已支付订单金额(退款前)</span>
|
||||
<small>不含已取消订单,未扣除退款</small>
|
||||
</div>
|
||||
<div class="ud-stat">
|
||||
<b>¥{$row.money}</b>
|
||||
@@ -70,17 +74,25 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if !empty($enterpriseCert)}
|
||||
<div class="ud-card">
|
||||
<nav class="ud-section-nav" aria-label="详情分区">
|
||||
<a href="#enterprise-cert">企业资质</a><a href="#user-addresses">地址</a><a href="#user-coupons">优惠券</a><a href="#user-wallet">资金流水</a><a href="#user-orders">订单</a>
|
||||
</nav>
|
||||
|
||||
<div class="ud-card" id="enterprise-cert">
|
||||
<div class="ud-card-hd"><i class="fa fa-certificate"></i> 企业资质认证</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($enterpriseCert)}
|
||||
<table class="table table-bordered table-condensed" style="margin-bottom:0;"><tbody>
|
||||
<tr><th>企业名称</th><td>{$enterpriseCert.company_name|htmlentities}</td><th>营业执照号码</th><td>{$enterpriseCert.license_no|htmlentities}</td></tr>
|
||||
<tr><th>法人姓名</th><td>{$enterpriseCert.legal_person|default='未填写'|htmlentities}</td><th>审核结果</th><td>{if $enterpriseCert.verify_status=='pass'}已通过{elseif $enterpriseCert.verify_status=='pending'/}待审核{else/}已驳回:{$enterpriseCert.audit_msg|htmlentities}{/if}</td></tr>
|
||||
<tr><th>提交时间</th><td>{if $enterpriseCert.createtime}{$enterpriseCert.createtime|datetime}{else/}未记录{/if}</td><th>营业执照图片</th><td>{if !empty($enterpriseCert.license_image)}<a class="js-image-preview-link" href="{:htmlentities(cdnurl($enterpriseCert.license_image, true))}" target="_blank" rel="noopener noreferrer">查看营业执照</a>{else/}未提供{/if}</td></tr>
|
||||
</tbody></table>
|
||||
{else /}
|
||||
<span class="text-muted">未提交企业资质</span>
|
||||
{/if}
|
||||
{if $auth->check('merchant/certificates')}<p style="margin:10px 0 0;"><a href="{:url('merchant/certificates')}" class="addtabsit" title="企业资质审核">进入企业资质审核</a></p>{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($merchantProfile) && !empty($merchantProfile.id) && $auth->check('merchant/detail')}
|
||||
<div class="ud-card">
|
||||
@@ -109,8 +121,8 @@
|
||||
<div class="row">
|
||||
<!-- 常用上门服务地址簿 -->
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="ud-card">
|
||||
<div class="ud-card-hd"><i class="fa fa-map-marker"></i> 常用上门服务地址簿 ({:count($addressList)})</div>
|
||||
<div class="ud-card" id="user-addresses">
|
||||
<div class="ud-card-hd"><i class="fa fa-map-marker"></i> 上门服务地址(最多显示 6 条)</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($addressList)}
|
||||
<table class="table table-bordered table-condensed" style="font-size:12px; margin-bottom:0;">
|
||||
@@ -138,8 +150,8 @@
|
||||
|
||||
<!-- 优惠券领取与核销 -->
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="ud-card">
|
||||
<div class="ud-card-hd"><i class="fa fa-ticket"></i> 优惠券领用与核销记录 ({:count($coupons)})</div>
|
||||
<div class="ud-card" id="user-coupons">
|
||||
<div class="ud-card-hd"><i class="fa fa-ticket"></i> 最近优惠券记录(最多显示 8 条)</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($coupons)}
|
||||
<table class="table table-bordered table-condensed" style="font-size:12px; margin-bottom:0;">
|
||||
@@ -175,9 +187,9 @@
|
||||
</div>
|
||||
|
||||
<!-- 近期资金收支流水 -->
|
||||
<div class="ud-card" style="margin-bottom:16px;">
|
||||
<div class="ud-card" id="user-wallet" style="margin-bottom:16px;">
|
||||
<div class="ud-card-hd" style="display:flex;align-items:center;justify-content:space-between;">
|
||||
<span><i class="fa fa-money"></i> 账户收支明细 ({:count($recentWalletLogs)})</span>
|
||||
<span><i class="fa fa-money"></i> 账户收支明细(最近 6 条) {if $auth->check('wallet_log/index')}<a href="{:url('wallet_log/index', ['scope_user_id' => $row.id])}" class="addtabsit" title="用户全部资金流水">查看全部</a>{/if}</span>
|
||||
<span class="text-muted" style="font-weight:normal;font-size:12px;">实时账户余额:<strong style="color:#ea580c;font-size:14px;">¥{$row.money}</strong></span>
|
||||
</div>
|
||||
<div class="ud-card-bd">
|
||||
@@ -189,7 +201,7 @@
|
||||
<tbody>
|
||||
{foreach name="recentWalletLogs" item="wl"}
|
||||
<tr>
|
||||
<td><code>#WL{$wl.id}</code></td>
|
||||
<td>{if $auth->check('wallet_log/detail')}<a href="{:url('wallet_log/detail', ['ids' => $wl.id])}" class="dialogit" data-title="资金流水详情">#WL{$wl.id}</a>{else/}<code>#WL{$wl.id}</code>{/if}</td>
|
||||
<td>
|
||||
{if $wl.type=='recharge'}<span class="label label-success">账户充值</span>
|
||||
{elseif $wl.type=='consume'/}<span class="label label-warning">余额消费</span>
|
||||
@@ -214,8 +226,8 @@
|
||||
</div>
|
||||
|
||||
<!-- 近期服务订单记录 -->
|
||||
<div class="ud-card" style="margin-bottom:0;">
|
||||
<div class="ud-card-hd"><i class="fa fa-list-alt"></i> 近期预约下单记录 ({:count($recentOrders)})</div>
|
||||
<div class="ud-card" id="user-orders" style="margin-bottom:0;">
|
||||
<div class="ud-card-hd"><i class="fa fa-list-alt"></i> 近期预约下单记录(最多显示 8 条) {if $auth->check('order/index')}<a href="{:url('order/index', ['scope_user_id' => $row.id])}" class="addtabsit" title="用户全部订单">查看全部</a>{/if}</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($recentOrders)}
|
||||
<table class="table table-bordered table-hover table-condensed" style="font-size:12px; margin-bottom:0;">
|
||||
@@ -225,7 +237,7 @@
|
||||
<tbody>
|
||||
{foreach name="recentOrders" item="o"}
|
||||
<tr>
|
||||
<td><code>{$o.order_no|htmlentities}</code></td>
|
||||
<td>{if $auth->check('order/detail')}<a href="{:url('order/detail', ['ids' => $o.id])}" class="dialogit" data-title="订单详情">{$o.order_no|htmlentities}</a>{else/}<code>{$o.order_no|htmlentities}</code>{/if}</td>
|
||||
<td><strong>{$o.service_name|htmlentities}</strong></td>
|
||||
<td>{$o.province|htmlentities}{$o.city|htmlentities}{$o.district|htmlentities}{$o.address|htmlentities}</td>
|
||||
<td>{$o.master_name|default='待指派'|htmlentities}</td>
|
||||
|
||||
在新工单中引用
屏蔽一个用户