feat: 完善协议管理、师傅资质认证、分账配置并完成测试环境全量部署与同步

这个提交包含在:
2026-11-12 17:19:49 +08:00
父节点 fafddceaf2
当前提交 72cea8445f
共有 179 个文件被更改,包括 29242 次插入 和 3340 次删除

查看文件

@@ -397,6 +397,7 @@
</div>
<span class="msg-box n-right" for="c-image"></span>
</div>
<p class="help-block" style="margin:6px 0 0;font-size:12px;color:#64748b;">上传后同时作为小程序「系统图库」该商品的默认参考图;如需配置多款参考图,可在下方细分规格上传或前往「系统图库」管理。</p>
<ul class="row list-inline faupload-preview plupload-preview" id="p-image"></ul>
</div>
</div>
@@ -438,21 +439,32 @@
<table class="table table-bordered table-hover" id="specs-table" style="margin-bottom: 0;">
<thead>
<tr class="active">
<th style="width: 55px; text-align: center;">序号</th>
<th style="width: 260px;">细分规格/款式名称</th>
<th style="width: 220px;">特殊规格一口价(选填)</th>
<th style="width: 50px; text-align: center;">序号</th>
<th style="width: 220px;">细分规格/款式名称</th>
<th style="width: 155px; text-align: center;">规格参考图(选填)</th>
<th style="width: 195px;">特殊规格一口价(选填)</th>
<th>规格说明或施工提示(选填)</th>
<th style="width: 75px; text-align: center;">操作</th>
<th style="width: 65px; text-align: center;">操作</th>
</tr>
</thead>
<tbody id="specs-tbody">
{foreach name="specs" item="sp" key="idx"}
<?php $spImgRaw = isset($sp['image']) ? trim((string)$sp['image']) : ''; $spImgFull = $spImgRaw !== '' ? (strpos($spImgRaw, 'http') === 0 ? $spImgRaw : cdnurl($spImgRaw, true)) : ''; ?>
<tr data-id="{$sp.id}">
<td style="text-align: center; vertical-align: middle; color: #64748b; font-weight: 600;">{$idx+1}</td>
<td>
<input type="hidden" name="specs[{$idx}][id]" value="{$sp.id}">
<input type="text" name="specs[{$idx}][name]" class="form-control input-sm" value="{$sp.name|htmlentities}" placeholder="如:普通坐便器(马桶) / 智能马桶">
</td>
<td style="text-align: center; vertical-align: middle;">
<div class="spec-img-cell" style="display:inline-flex;align-items:center;gap:6px;">
<input type="hidden" name="specs[{$idx}][image]" class="spec-img-input" value="{$spImgRaw|htmlentities}">
<img class="spec-img-preview" src="{$spImgFull|htmlentities}" style="width:34px;height:34px;border-radius:4px;object-fit:cover;border:1px solid #cbd5e1;{if !$spImgFull}display:none;{/if}" onclick="window.open(this.src)" title="点击查看大图">
<button type="button" class="btn btn-xs btn-default btn-upload-spec-img"><i class="fa fa-upload"></i> {if $spImgFull}更换{else/}上传{/if}</button>
<button type="button" class="btn btn-xs btn-link text-danger btn-clear-spec-img" style="padding:0 2px;{if !$spImgFull}display:none;{/if}" title="移除图片"><i class="fa fa-times"></i></button>
<input type="file" class="spec-img-file" accept="image/*" style="display:none;">
</div>
</td>
<td>
<div class="input-group input-group-sm">
<span class="input-group-addon">¥</span>