From baa6faacfab5bc0e23fc3e9d7f747105e989f12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E6=99=AE?= <18691763612@163.com> Date: Mon, 18 May 2026 14:23:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=90=A5=E5=85=BB=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=A4=9A=E9=A1=B5=E9=9D=A2=E4=BA=A4=E4=BA=92=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=8F=8A=E6=88=91=E7=9A=84=E5=88=9B=E4=BD=9C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 营养素明细列表增加分类标题(宏量营养素/矿物质/维生素) - 食谱页扫码点餐按钮改为跳转订餐页 - 订餐页菜品添加个性化推荐标签(推荐/低卡/过敏/禁忌) - 创作食谱页增加底部存为草稿+立即发布双按钮 - 做-社区主页banner增加"我的创作"入口 - 新增我的创作列表页(已发布/草稿箱Tab切换) - 导航页SITE_MAP补全新页面条目 Co-Authored-By: Claude Opus 4.6 --- index.html | 1 + .../mini-program/nutrition/eat-nutrition.html | 12 + .../mini-program/nutrition/eat-order.html | 23 +- .../mini-program/nutrition/eat-recipe.html | 2 +- .../mini-program/nutrition/make-create.html | 22 +- .../mini-program/nutrition/make-home.html | 7 + .../nutrition/make-my-recipes.html | 216 ++++++++++++++++++ web-admin/nutrition/doc/营养管理功能说明.md | 0 8 files changed, 270 insertions(+), 13 deletions(-) create mode 100644 other-module/mini-program/nutrition/make-my-recipes.html create mode 100644 web-admin/nutrition/doc/营养管理功能说明.md diff --git a/index.html b/index.html index 615d90e..59f908e 100644 --- a/index.html +++ b/index.html @@ -733,6 +733,7 @@ const SITE_MAP = [ {label:'创作排行', file:'make-ranking.html'}, {label:'分享赚钱', file:'make-share.html'}, {label:'热门创作', file:'make-popular.html'}, + {label:'我的创作', file:'make-my-recipes.html'}, {label:'个人中心', file:'me-home.html'}, {label:'健康档案', file:'me-health.html'}, {label:'我的订单', file:'me-orders.html'}, diff --git a/other-module/mini-program/nutrition/eat-nutrition.html b/other-module/mini-program/nutrition/eat-nutrition.html index 73a7621..be02dab 100644 --- a/other-module/mini-program/nutrition/eat-nutrition.html +++ b/other-module/mini-program/nutrition/eat-nutrition.html @@ -94,6 +94,15 @@ .bar-label .vals .cur { color: #333; font-weight: 600; } .bar-label .vals .sep { color: #ccc; } .bar-label .vals .ref { color: #999; } + /* 分类标题 */ + .category-title { + display: flex; align-items: center; gap: 6px; margin: 14px 0 10px; + padding: 6px 10px; background: #f8f9fa; border-radius: 6px; + border-left: 3px solid #1677ff; + } + .category-title:first-child { margin-top: 0; } + .category-title .cat-name { font-size: 13px; font-weight: 600; color: #333; } + .category-title .cat-count { font-size: 11px; color: #999; } .progress-bar { position: relative; height: 8px; background: #f5f5f5; border-radius: 4px; overflow: hidden; } @@ -199,6 +208,7 @@ 超标(>120%) +
宏量营养素9项
热量1286 / 2000kcal
@@ -236,6 +246,7 @@
+
矿物质7项
2600mg / 2000mg
@@ -265,6 +276,7 @@
+
维生素9项
维生素A320μgRE / 800μgRE
diff --git a/other-module/mini-program/nutrition/eat-order.html b/other-module/mini-program/nutrition/eat-order.html index 2fd15b7..a71d64f 100644 --- a/other-module/mini-program/nutrition/eat-order.html +++ b/other-module/mini-program/nutrition/eat-order.html @@ -54,7 +54,16 @@ display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; } .menu-item .food-info { flex: 1; min-width: 0; } - .menu-item .food-name { font-size: 14px; font-weight: 600; } + .menu-item .food-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } + .food-tag { + font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 3px; + white-space: nowrap; line-height: 16px; + } + .food-tag.recommend { background: #f6ffed; color: #52c41a; } + .food-tag.low-cal { background: #e6f7ff; color: #1677ff; } + .food-tag.high-protein { background: #f9f0ff; color: #722ed1; } + .food-tag.allergy { background: #fff7e6; color: #fa8c16; } + .food-tag.contraindication { background: #fff1f0; color: #f5222d; } .menu-item .food-desc { font-size: 11px; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .menu-item .food-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; } .menu-item .food-price { font-size: 15px; font-weight: 700; color: #f5222d; } @@ -120,7 +129,7 @@