packServer/extension/test/wms-mock.html
liufumingren bd2363bf00 chore: 初始化仓库(backend / frontend / extension 三块)
- backend/:Egg 3 纯 JSON 接口服务(MySQL 8 + Redis),全部走 header 令牌鉴权;
  已彻底去掉服务端渲染(删除 page 控制器 / app/view / nunjucks / session / CSRF),
  开发时把页面请求反代到前端 dev server,生产托管 frontend/dist(SPA 回退)。
  单测 91 个通过(不需要本机数据库)。
- frontend/:Vite + Vue3 + TypeScript 的 SPA(登录 / 注册 / 找回密码 / 扫码登录与确认 /
  首页统计 / 设备管理 / 扫码记录 / 个人中心 / 测试页),vue-tsc 类型检查与构建通过。
- extension/:MV3 浏览器扩展(零构建),注入第三方 WMS 页面识别运单号并打开溯源页。
- 忽略规则统一放根 .gitignore:node_modules、dist、logs / logs-*、run、typings、
  .env*、config.local.js(含本机数据库与 Redis 密码,绝不入库)。
2026-10-17 08:50:32 +08:00

78 lines
4.4 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>WMS 取样页 · 云仓视频溯源注入自测</title>
<style>
body { font: 13px/1.6 "Microsoft YaHei", system-ui, sans-serif; margin: 24px; color: #1f2328; }
h1 { font-size: 16px; margin: 0 0 4px; }
p.note { color: #6b7280; font-size: 12.5px; margin: 0 0 16px; }
table { border-collapse: collapse; width: 900px; }
th, td { border: 1px solid #dcdfe6; padding: 6px 8px; text-align: center; }
th { background: #fafafa; color: #606266; font-weight: 500; }
.click-copy-list { display: flex; align-items: center; justify-content: center; gap: 4px; }
.click-copy-link {
color: #409eff;
cursor: pointer;
font-family: Consolas, monospace;
}
.click-copy-toggle {
border: 0; background: #f0f2f5; color: #606266;
border-radius: 3px; padding: 0 4px; font-size: 11px; cursor: pointer;
}
.ut-status-text--success { color: #67c23a; }
</style>
</head>
<body>
<h1>WMS 取样页(自测用)</h1>
<p class="note">
结构与 <code>https://wms.wms.gztbyc.com/order/orderManagement</code> 的一行一致:<b>只有「运单号」那个 span 带
<code>title="点击复制并查看快递单号二维码"</code></b>,同行的发货单号 / 波次号 / 平台交易单号都不该被标记。<br>
加载扩展后打开本页:运单号应出现青色虚线下划线 + ▶ 角标,点击会打开小窗。
</p>
<table>
<thead>
<tr>
<th>发货单号</th>
<th>运单号(快递单号)</th>
<th>波次号</th>
<th>平台交易单号</th>
<th>状态</th>
<th>下单时间</th>
</tr>
</thead>
<tbody>
<tr>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制发货单号">JY2026101619599</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制并查看快递单号二维码">321408064481776</span><button type="button" class="click-copy-toggle" title="展开查看全部">+1</button></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制波次号">E2026101600069</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制平台交易单号">6930529169563286869</span></div></td>
<td><span class="ut-status-text--success">已打包</span></td>
<td>2026-10-16 13:26:22</td>
</tr>
<tr>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制发货单号">JY2026101615872</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制并查看快递单号二维码">321408064481576</span><button type="button" class="click-copy-toggle" title="展开查看全部">+1</button></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制波次号">E2026101600069</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制平台交易单号">6930516355859054381</span></div></td>
<td><span class="ut-status-text--success">已打包</span></td>
<td>2026-10-16 13:46:54</td>
</tr>
<tr>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制发货单号">JY2026101416270</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制并查看快递单号二维码">321407672814174</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制波次号">B2026101600532</span></div></td>
<td><div class="click-copy-list"><span class="click-copy-link" role="button" tabindex="0" title="点击复制平台交易单号">6918483774881410405</span></div></td>
<td><span class="ut-status-text--success">已打包</span></td>
<td>2026-10-13 08:36:42</td>
</tr>
</tbody>
</table>
<p class="note" style="margin-top:16px">
预期:表格里 <b>3 个运单号</b> 被标记,其余 9 个蓝色文本不受影响。
</p>
</body>
</html>