From 99f34a62235526390d8dccd567a8cced9506ff73 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 8 Jun 2026 02:07:19 +0800 Subject: [PATCH] =?UTF-8?q?chore(web):=20=E5=88=A0=E9=99=A4=20scan.html?= =?UTF-8?q?=EF=BC=8C=E6=B8=85=E7=90=86=20/scan/=20nginx=20=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=92=8C=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scan.html 从未被实际触发——二维码 URL 格式为 /product/, 由 Flutter Web PublicProductScreen 处理,scan.html 是孤立死页。 - 删除 web/scan.html - 移除 nginx-jiu.conf 中 /scan/ location 块 - 更新文档路由表(/scan/ → /product/) - 标记 todo #4 完成 Co-Authored-By: Claude Sonnet 4.6 --- deploy/nginx-jiu.conf | 6 - docs/deployment-nas-gitea.md | 5 +- todo/todo.html | 46 ++--- todo/todo.json | 8 +- web/scan.html | 379 ----------------------------------- 5 files changed, 29 insertions(+), 415 deletions(-) delete mode 100644 web/scan.html diff --git a/deploy/nginx-jiu.conf b/deploy/nginx-jiu.conf index 6818fb1..09ec4a6 100644 --- a/deploy/nginx-jiu.conf +++ b/deploy/nginx-jiu.conf @@ -53,12 +53,6 @@ server { try_files $uri /app/index.html; } - # 扫码页(/scan/ → scan.html,JS 从 URL 读取 id) - location /scan/ { - root /opt/jiu/marketing; - try_files /scan.html =404; - } - # 桌面客户端安装包下载(Windows .exe / macOS .zip) location /downloads/ { alias /opt/jiu/downloads/; diff --git a/docs/deployment-nas-gitea.md b/docs/deployment-nas-gitea.md index 5f6f456..dc04c9d 100644 --- a/docs/deployment-nas-gitea.md +++ b/docs/deployment-nas-gitea.md @@ -155,8 +155,7 @@ git push nas main && git push nas v1.1.0 │ ├── assets/ │ ├── index.html │ ├── docs.html -│ ├── download.html -│ └── scan.html +│ └── download.html ├── images/ # 商品图片上传目录 └── web-old/ # 上一版本 Flutter Web(回滚备用) ``` @@ -175,5 +174,5 @@ Systemd 服务名:`jiu` | `/api/*`, `/health`, `/version` | Go 后端 API | | `/images/*` | 商品图片静态文件 | | `/app/` | Flutter 管理端 SPA | +| `/product/` | 商品扫码公开页(Flutter Web 路由) | | `/` | 营销首页 | -| `/scan/` | 商品扫码页 | diff --git a/todo/todo.html b/todo/todo.html index 1db0418..bce6bad 100644 --- a/todo/todo.html +++ b/todo/todo.html @@ -102,8 +102,8 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; }
生成于 2026-06-08 · 真相源 todo/todo.json
6全部
-
5未完成
-
1已完成
+
4未完成
+
2已完成
@@ -132,7 +132,7 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; }
-
📋 未完成(5)
+
📋 未完成(4)
  • -
  • -
    - scan.html / features 走 passthrough 不享模板 - 一般 / 优化 -
    -
    features/scan.html 直接复制,不经 njk 模板,页脚/备案/CSS 都得手动同步。建议长期改造为模板化。
    - -
  • -
  • -
    ✅ 已完成(1)
    +
    ✅ 已完成(2)