- 新增 invoice_title、showcase、wallet_log 模型及对应语言包 - 新增后台控制器、视图及搜索字段配置 - 修复服务类目删除保护逻辑 - 优化后台登录页面文案及样式 - 新增前端角色切换逻辑及页面拦截 - 新增 SVG 图标及样式变量 - 修复接口权限及下拉框默认值问题
173 行
9.3 KiB
HTML
173 行
9.3 KiB
HTML
<style>
|
|
.ud-wrap { padding: 5px 10px; font-size: 13px; color: #334155; }
|
|
.ud-hero {
|
|
background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
|
|
border: 1px solid #fed7aa;
|
|
border-radius: 12px;
|
|
padding: 18px 22px;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
.ud-hero-left { display: flex; align-items: center; gap: 16px; }
|
|
.ud-avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid #ea580c; background: #fff; }
|
|
.ud-name { font-size: 18px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.ud-sub { font-size: 12.5px; color: #64748b; margin-top: 4px; }
|
|
.ud-stats { display: flex; gap: 12px; }
|
|
.ud-stat { background: #fff; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 14px; text-align: center; min-width: 92px; }
|
|
.ud-stat b { display: block; font-size: 16px; color: #ea580c; font-weight: 800; }
|
|
.ud-stat span { font-size: 11px; color: #64748b; }
|
|
|
|
.ud-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
|
|
.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; }
|
|
</style>
|
|
|
|
<div class="ud-wrap">
|
|
<div class="ud-hero">
|
|
<div class="ud-hero-left">
|
|
<img class="ud-avatar" src="{$row.avatar|htmlentities}" onerror="this.src='/assets/img/avatar.png'" />
|
|
<div>
|
|
<div class="ud-name">
|
|
<span>{$row.nickname|default=$row.username|htmlentities}</span>
|
|
<span class="label {if $row.status=='normal'}label-success{else/}label-default{/if}">{if $row.status=='normal'}正常{else/}已停用{/if}</span>
|
|
{if !empty($masterProfile) && $masterProfile.verify_status=='pass'}
|
|
<span class="label label-warning"><i class="fa fa-wrench"></i> 认证师傅:{$masterProfile.realname|htmlentities}</span>
|
|
{/if}
|
|
{if !empty($merchantProfile) && $merchantProfile.verify_status=='pass'}
|
|
<span class="label label-primary"><i class="fa fa-building-o"></i> 关联企业:{$merchantProfile.name|htmlentities}</span>
|
|
{/if}
|
|
</div>
|
|
<div class="ud-sub">
|
|
账号: {$row.username|htmlentities} |
|
|
手机: <strong>{$row.mobile|default='未绑定'|htmlentities}</strong> |
|
|
注册时间: {$row.jointime|datetime} |
|
|
最近登录: {:$row.logintime > 0 ? datetime($row.logintime) : '-'}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ud-stats">
|
|
<div class="ud-stat">
|
|
<b>{$orderCount}</b>
|
|
<span>下单总计(笔)</span>
|
|
</div>
|
|
<div class="ud-stat">
|
|
<b>¥{$totalSpent}</b>
|
|
<span>累计实付</span>
|
|
</div>
|
|
<div class="ud-stat">
|
|
<b>¥{$row.money}</b>
|
|
<span>账户余额</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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-bd">
|
|
{if !empty($addressList)}
|
|
<table class="table table-bordered table-condensed" style="font-size:12px; margin-bottom:0;">
|
|
<thead><tr class="active"><th>联系人</th><th>省市区与门牌</th><th>楼层电梯</th></tr></thead>
|
|
<tbody>
|
|
{foreach name="addressList" item="ad"}
|
|
<tr>
|
|
<td>
|
|
<strong>{$ad.contact|htmlentities}</strong><br>
|
|
<span class="text-muted">{$ad.mobile|htmlentities}</span>
|
|
{if $ad.is_default}<span class="label label-warning">默认</span>{/if}
|
|
</td>
|
|
<td>{$ad.province|htmlentities}{$ad.city|htmlentities}{$ad.district|htmlentities}{$ad.address|htmlentities}</td>
|
|
<td>{$ad.floor}层 · {if $ad.has_elevator}电梯{else/}步梯{/if}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{else /}
|
|
<div class="text-muted text-center" style="padding:14px 0;">暂未保存上门地址</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 优惠券领取与核销 -->
|
|
<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-bd">
|
|
{if !empty($coupons)}
|
|
<table class="table table-bordered table-condensed" style="font-size:12px; margin-bottom:0;">
|
|
<thead><tr class="active"><th>券名称</th><th>面额门槛</th><th>状态</th><th>核销工单</th></tr></thead>
|
|
<tbody>
|
|
{foreach name="coupons" item="cp"}
|
|
<tr>
|
|
<td><strong>{$cp.coupon_name|default='优惠券'|htmlentities}</strong></td>
|
|
<td>
|
|
{if $cp.coupon_type=='discount'}
|
|
<span class="text-warning">{:round($cp.coupon_discount * 10, 1)}折</span>
|
|
{else/}
|
|
<span class="text-danger">¥{$cp.coupon_amount}</span>
|
|
{/if}
|
|
<small class="text-muted">(满¥{$cp.min_amount})</small>
|
|
</td>
|
|
<td>
|
|
{if $cp.status=='used'}<span class="label label-success">已核销</span>
|
|
{elseif $cp.status=='expired'/}<span class="label label-default">已过期</span>
|
|
{else/}<span class="label label-info">未使用</span>{/if}
|
|
</td>
|
|
<td><code>{$cp.order_no|default='-'|htmlentities}</code></td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{else /}
|
|
<div class="text-muted text-center" style="padding:14px 0;">暂无领券记录</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</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-bd">
|
|
{if !empty($recentOrders)}
|
|
<table class="table table-bordered table-hover table-condensed" style="font-size:12px; margin-bottom:0;">
|
|
<thead>
|
|
<tr class="active"><th>订单号</th><th>服务项目</th><th>服务地址</th><th>承接师傅</th><th>实付金额</th><th>工单状态</th><th>下单时间</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach name="recentOrders" item="o"}
|
|
<tr>
|
|
<td><code>{$o.order_no|htmlentities}</code></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>
|
|
<td style="color:#ea580c;font-weight:700;">¥{$o.pay_amount}</td>
|
|
<td><span class="label {if $o.status==8}label-success{elseif $o.status==9/}label-default{else/}label-primary{/if}">{$o.status_label|htmlentities}</span></td>
|
|
<td>{$o.createtime|datetime}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{else /}
|
|
<div class="text-muted text-center" style="padding:16px 0;">该会员暂无下单记录</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group layer-footer">
|
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<button type="button" class="btn btn-primary btn-embossed" onclick="parent.Layer.closeAll();"><i class="fa fa-check"></i> 关闭窗口</button>
|
|
</div>
|
|
</div>
|
|
</div>
|