文件
yjyf/server/application/admin/view/service/detail.html
MiAn fafddceaf2 feat: 新增发票抬头、晒单、钱包日志等模型及后台管理功能
- 新增 invoice_title、showcase、wallet_log 模型及对应语言包
- 新增后台控制器、视图及搜索字段配置
- 修复服务类目删除保护逻辑
- 优化后台登录页面文案及样式
- 新增前端角色切换逻辑及页面拦截
- 新增 SVG 图标及样式变量
- 修复接口权限及下拉框默认值问题
2026-11-11 17:02:35 +08:00

179 行
8.1 KiB
HTML

<style>
.sd-wrap { padding: 4px 8px; color: #1e293b; }
.sd-hero {
background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
border: 1px solid #fed7aa;
border-radius: 10px;
padding: 14px 18px;
margin-bottom: 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.sd-hero-left { display: flex; align-items: center; gap: 14px; }
.sd-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid #fdba74; background: #fff; }
.sd-title { font-size: 17px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.sd-sub { font-size: 12.5px; color: #64748b; margin-top: 4px; }
.sd-stats { display: flex; gap: 10px; }
.sd-stat { background: #fff; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 14px; text-align: center; min-width: 92px; }
.sd-stat b { display: block; font-size: 16px; color: #ea580c; font-weight: 700; }
.sd-stat span { font-size: 11px; color: #64748b; }
.sd-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.sd-card-hd { font-size: 14px; font-weight: 700; color: #0f172a; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.sd-card-hd i { color: #ea580c; margin-right: 6px; }
</style>
<div class="sd-wrap">
<div class="sd-hero">
<div class="sd-hero-left">
<img class="sd-thumb" src="{$row.image|default='/assets/img/qrcode.png'|htmlentities}" onerror="this.src='/assets/img/qrcode.png'">
<div>
<div class="sd-title">
{$row.name|htmlentities}
<span class="label label-warning">{$catName|htmlentities}</span>
{if $row.status == 'normal'}
<span class="label label-success">上架中</span>
{else /}
<span class="label label-default">已隐藏</span>
{/if}
</div>
<div class="sd-sub">
计价单位:{$row.unit|htmlentities} &nbsp;|&nbsp;
步梯搬运:¥{$row.floor_fee}/层({$row.free_floor}层及以下免费) &nbsp;|&nbsp;
排序权重:{$row.weigh}
</div>
</div>
</div>
<div class="sd-stats">
<div class="sd-stat">
<b>{$orderCount}</b>
<span>历史订单(笔)</span>
</div>
<div class="sd-stat">
<b>¥{$orderGmv}</b>
<span>累计成交额</span>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="sd-card">
<div class="sd-card-hd">
<span><i class="fa fa-check-circle"></i> 已启用主服务及定价 ({:count($serviceTypes)})</span>
</div>
{if empty($serviceTypes)}
<div class="text-muted text-center" style="padding:18px 0;">暂未配置主服务</div>
{else /}
<table class="table table-bordered table-condensed" style="margin-bottom:0;">
<thead>
<tr class="active">
<th>服务名称</th>
<th>标识</th>
<th>定价策略</th>
<th>默认首选</th>
</tr>
</thead>
<tbody>
{foreach name="serviceTypes" item="st"}
<tr>
<td><strong>{$st.name|default='-'|htmlentities}</strong></td>
<td><code>{$st.code|default='-'|htmlentities}</code></td>
<td>
{if (isset($st.support_fixed) && $st.support_fixed == 0) || $st.price <= 0}
<span class="label label-default">师傅报价</span>
{else /}
<strong style="color:#16a34a;">¥{$st.price}/{$row.unit|htmlentities}</strong>
{/if}
</td>
<td>
{if !empty($st.is_default)}
<span class="label label-primary">默认首选</span>
{else /}
<span class="text-muted">-</span>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
</div>
<div class="col-sm-6">
<div class="sd-card">
<div class="sd-card-hd">
<span><i class="fa fa-plus-square"></i> 顺带增项服务及加价 ({:count($addons)})</span>
</div>
{if empty($addons)}
<div class="text-muted text-center" style="padding:18px 0;">未开启增项服务</div>
{else /}
<table class="table table-bordered table-condensed" style="margin-bottom:0;">
<thead>
<tr class="active">
<th>增项名称</th>
<th>标识</th>
<th>增项加价</th>
</tr>
</thead>
<tbody>
{foreach name="addons" item="ad"}
<tr>
<td><strong>{$ad.name|default='-'|htmlentities}</strong></td>
<td><code>{$ad.code|default='-'|htmlentities}</code></td>
<td><strong style="color:#ea580c;">+¥{$ad.price}/{$ad.unit|default=$row.unit|htmlentities}</strong></td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
</div>
</div>
<div class="sd-card" style="margin-bottom:0;">
<div class="sd-card-hd">
<span><i class="fa fa-tags"></i> 细分型号与款式规格 ({:count($specs)})</span>
</div>
{if empty($specs)}
<div class="text-muted text-center" style="padding:14px 0;">未设置细分型号规格,下单按商品通用标准计价</div>
{else /}
<table class="table table-bordered table-hover table-condensed" style="margin-bottom:0;">
<thead>
<tr class="active">
<th style="width:60px;text-align:center;">序号</th>
<th>规格/款式名称</th>
<th style="width:180px;">专属一口价</th>
<th>施工说明</th>
</tr>
</thead>
<tbody>
{foreach name="specs" item="sp" key="k"}
<tr>
<td class="text-center text-muted">{$k+1}</td>
<td><strong>{$sp.name|htmlentities}</strong></td>
<td>
{if $sp.base_price > 0}
<strong style="color:#ea580c;">¥{$sp.base_price}</strong>
{else /}
<span class="text-muted">沿用主服务默认价</span>
{/if}
</td>
<td class="text-muted">{$sp.description|default='-'|htmlentities}</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</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>