feat: 新增师傅入驻审核与接单状态联动功能

- 新增师傅资质审核模块及权限
- 未审核通过的师傅默认禁用接单状态
- 新增售后退款申诉功能与相关界面
- 新增用户钱包管理及充值功能
- 更新服务定价矩阵相关数据库结构
- 修复微信支付证书验证问题
这个提交包含在:
2026-11-17 10:28:01 +08:00
父节点 ad73da1db4
当前提交 0370cb9bd6
共有 107 个文件被更改,包括 13666 次插入 和 1447 次删除

查看文件

@@ -22,6 +22,41 @@
.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; }
.price-inherit-tag {
display: inline-block;
padding: 1px 6px;
border-radius: 4px;
background: #f1f5f9;
color: #64748b;
font-size: 11px;
margin-right: 4px;
margin-bottom: 3px;
}
.price-custom-tag {
display: inline-block;
padding: 2px 7px;
border-radius: 4px;
background: #eff6ff;
color: #1d4ed8;
border: 1px solid #93c5fd;
font-size: 11px;
font-weight: 700;
margin-right: 4px;
margin-bottom: 3px;
}
.price-addon-custom-tag {
display: inline-block;
padding: 2px 7px;
border-radius: 4px;
background: #fff7ed;
color: #c2410c;
border: 1px solid #fdba74;
font-size: 11px;
font-weight: 700;
margin-right: 4px;
margin-bottom: 3px;
}
</style>
<div class="sd-wrap">
@@ -61,7 +96,7 @@
<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>
<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>
@@ -69,9 +104,9 @@
<table class="table table-bordered table-condensed" style="margin-bottom:0;">
<thead>
<tr class="active">
<th>服务名称</th>
<th>工项名称</th>
<th>标识</th>
<th>定价策略</th>
<th>基准定价</th>
<th>默认首选</th>
</tr>
</thead>
@@ -135,33 +170,90 @@
<div class="sd-card" style="margin-bottom:0;">
<div class="sd-card-hd">
<span><i class="fa fa-tags"></i> 细分型号与款式规格 ({:count($specs)})</span>
<span><i class="fa fa-cubes"></i> 细分型号与规格专属多维定价矩阵 ({:count($specs)})</span>
<small class="text-muted" style="font-weight:400;">(支持每个规格一套独立工项价格,未单独设价自动沿用父级基准价)</small>
</div>
{if empty($specs)}
<div class="text-muted text-center" style="padding:14px 0;">未设置细分型号规格,下单按商品通用标准计价</div>
<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>
<th style="width:46px;text-align:center;">序号</th>
<th style="width:160px;">细分规格/款式</th>
<th style="width:90px;text-align:center;">参考图</th>
<th style="min-width:260px;">主服务工项生效价(专属价 / 继承父级基准)</th>
<th style="min-width:260px;">增值服务生效加价(专属加价 / 继承父级增项)</th>
<th style="width:160px;">施工说明</th>
</tr>
</thead>
<tbody>
{foreach name="specs" item="sp" key="k"}
<?php
$spPrices = isset($sp['prices_map']) ? $sp['prices_map'] : [];
$spAddonPrices = isset($sp['addon_prices_map']) ? $sp['addon_prices_map'] : [];
$spImgRaw = isset($sp['image']) ? trim((string)$sp['image']) : '';
$spImgFull = $spImgRaw !== '' ? (strpos($spImgRaw, 'http') === 0 ? $spImgRaw : cdnurl($spImgRaw, true)) : '';
?>
<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>
<td class="text-center text-muted" style="vertical-align:middle;">{$k+1}</td>
<td style="vertical-align:middle;"><strong>{$sp.name|htmlentities}</strong></td>
<td style="text-align:center;vertical-align:middle;">
{if $spImgFull}
<img src="{$spImgFull|htmlentities}" style="width:34px;height:34px;border-radius:4px;object-fit:cover;border:1px solid #e2e8f0;cursor:pointer;" onclick="window.open(this.src)" title="点击查看大图">
{else /}
<span class="text-muted">沿用主服务默认价</span>
<span class="text-muted" style="font-size:11.5px;">无图</span>
{/if}
</td>
<td class="text-muted">{$sp.description|default='-'|htmlentities}</td>
<td style="vertical-align:middle;">
{if empty($serviceTypes)}
<span class="text-muted" style="font-size:12px;">父级未开启工项</span>
{else /}
<div style="display:flex;flex-wrap:wrap;gap:4px;">
{foreach name="serviceTypes" item="st"}
<?php
$c = $st['code'];
$hasCustom = isset($spPrices[$c]) && (float)$spPrices[$c] > 0;
$effectivePrice = $hasCustom ? (float)$spPrices[$c] : (float)$st['price'];
?>
{if $hasCustom}
<span class="price-custom-tag" title="该规格专属一口价">
{$st.name}: ¥{$effectivePrice} <span style="font-size:10px;font-weight:normal;">(专属)</span>
</span>
{else /}
<span class="price-inherit-tag" title="沿用父级基准一口价">
{$st.name}: ¥{$effectivePrice} <span style="font-size:10px;color:#94a3b8;">(继承)</span>
</span>
{/if}
{/foreach}
</div>
{/if}
</td>
<td style="vertical-align:middle;">
{if empty($addons)}
<span class="text-muted" style="font-size:12px;">未开启增值服务</span>
{else /}
<div style="display:flex;flex-wrap:wrap;gap:4px;">
{foreach name="addons" item="ad"}
<?php
$ac = !empty($ad['code']) ? $ad['code'] : $ad['name'];
$hasAddonCustom = isset($spAddonPrices[$ac]) && (float)$spAddonPrices[$ac] > 0;
$effectiveAddonPrice = $hasAddonCustom ? (float)$spAddonPrices[$ac] : (float)$ad['price'];
?>
{if $hasAddonCustom}
<span class="price-addon-custom-tag" title="该规格专属增值加价">
{$ad.name}: +¥{$effectiveAddonPrice} <span style="font-size:10px;font-weight:normal;">(专属)</span>
</span>
{else /}
<span class="price-inherit-tag" title="沿用父级增项基准加价">
{$ad.name}: +¥{$effectiveAddonPrice} <span style="font-size:10px;color:#94a3b8;">(继承)</span>
</span>
{/if}
{/foreach}
</div>
{/if}
</td>
<td class="text-muted" style="vertical-align:middle;">{$sp.description|default='-'|htmlentities}</td>
</tr>
{/foreach}
</tbody>