diff --git a/index.html b/index.html index 13c7ec9..1691a39 100644 --- a/index.html +++ b/index.html @@ -647,6 +647,7 @@ const SITE_MAP = [ {label:'吃-首页', file:'eat-home.html'}, {label:'营养明细', file:'eat-nutrition.html'}, {label:'今日食谱', file:'eat-recipe.html'}, + {label:'今日食谱展示', file:'eat-recipe-today.html'}, {label:'菜品详情', file:'eat-dish-detail.html'}, {label:'订餐', file:'eat-order.html'}, {label:'订单确认', file:'eat-order-confirm.html'}, @@ -657,6 +658,9 @@ const SITE_MAP = [ {label:'做-社区', file:'make-home.html'}, {label:'照做食谱', file:'make-follow.html'}, {label:'创作食谱', file:'make-create.html'}, + {label:'创作排行', file:'make-ranking.html'}, + {label:'分享赚钱', file:'make-share.html'}, + {label:'热门创作', file:'make-popular.html'}, {label:'个人中心', file:'me-home.html'}, {label:'健康档案', file:'me-health.html'}, {label:'我的订单', file:'me-orders.html'}, diff --git a/other-module/mini-program/.gitkeep b/other-module/mini-program/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/other-module/mini-program/nutrition/ask-home.html b/other-module/mini-program/nutrition/ask-home.html index 361f834..3302b3e 100644 --- a/other-module/mini-program/nutrition/ask-home.html +++ b/other-module/mini-program/nutrition/ask-home.html @@ -47,7 +47,9 @@ text-decoration: none; padding: 4px 12px; border: 1px solid #1677ff; border-radius: 12px; } .faq-section { padding: 16px; } - .faq-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #333; } + .faq-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } + .faq-title { font-size: 13px; font-weight: 600; color: #333; } + .faq-toggle { font-size: 12px; color: #1677ff; cursor: pointer; } .faq-list { display: flex; flex-direction: column; gap: 8px; } .faq-item { display: block; padding: 12px 14px; background: #fff; border-radius: 10px; @@ -86,14 +88,17 @@
-
常见问题
-
+
+
常见问题
+ 展开全部 › +
+
@@ -111,5 +116,18 @@
+ diff --git a/other-module/mini-program/nutrition/eat-cart.html b/other-module/mini-program/nutrition/eat-cart.html new file mode 100644 index 0000000..02415f7 --- /dev/null +++ b/other-module/mini-program/nutrition/eat-cart.html @@ -0,0 +1,199 @@ + + + + + + 购物车 | 智能餐养小程序 + + + +
+
+ 09:41 +
📶WiFi🔋
+
+ +
+ +
+
已选菜品(3)
+
+
🍗
+
+
宫保鸡丁
+
285kcal/份 · 蛋白质 22.4g
+
+ ¥12 +
+ + 1 + +
+
+
+
+
+
🥦
+
+
炒西兰花
+
68kcal/份 · 蛋白质 3.2g
+
+ ¥8 +
+ + 1 + +
+
+
+
+
+
🐟
+
+
清蒸鱼
+
142kcal/份 · 蛋白质 20.8g
+
+ ¥18 +
+ + 1 + +
+
+
+
+
+ + +
+
本单营养概览
+
+
495
总热量(kcal)
+
46.4g
蛋白质
+
22.6g
脂肪
+
16.4g
碳水
+
+
+ + +
+
备注
+ +
+
+ + +
+
+
合计 ¥38.00
+
已享员工餐补优惠
+
+ 提交订单 +
+
+
+ + diff --git a/other-module/mini-program/nutrition/eat-dish-detail.html b/other-module/mini-program/nutrition/eat-dish-detail.html index f2f8c60..edec152 100644 --- a/other-module/mini-program/nutrition/eat-dish-detail.html +++ b/other-module/mini-program/nutrition/eat-dish-detail.html @@ -57,11 +57,6 @@ .crowd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .crowd-tag { padding: 4px 12px; border-radius: 14px; background: #e6f4ff; color: #1677ff; font-size: 12px; } .avoid-tip { padding: 8px 10px; background: #fff7e6; border-radius: 8px; font-size: 12px; color: #fa8c16; } - .trace-link { - display: block; text-align: center; padding: 12px; background: #fff; - margin: 0 16px 16px; border-radius: 12px; font-size: 13px; color: #1677ff; - text-decoration: none; border: 1px solid #e6f4ff; - } @@ -119,8 +114,6 @@
⚠ 痛风急性期慎食(含嘌呤)
- - 🔍 查看食材溯源信息 ›
diff --git a/other-module/mini-program/nutrition/eat-home.html b/other-module/mini-program/nutrition/eat-home.html index c2ba596..a95f815 100644 --- a/other-module/mini-program/nutrition/eat-home.html +++ b/other-module/mini-program/nutrition/eat-home.html @@ -58,7 +58,23 @@ .canteen-select { display: flex; align-items: center; gap: 6px; cursor: pointer; } .canteen-select .label { font-size: 13px; color: #999; } .canteen-select .name { font-size: 15px; font-weight: 600; } - .canteen-select .arrow { font-size: 12px; color: #999; } + .canteen-select .arrow { font-size: 12px; color: #999; transition: transform 0.2s; } + .canteen-select .arrow.open { transform: rotate(180deg); } + /* 食堂下拉菜单 */ + .canteen-header { position: relative; } + .canteen-dropdown { + display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; + background: #fff; border-top: 0.5px solid #f0f0f0; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); + } + .canteen-dropdown.show { display: block; } + .canteen-option { + padding: 12px 16px; font-size: 14px; color: #333; cursor: pointer; + border-bottom: 0.5px solid #f5f5f5; + } + .canteen-option:last-child { border-bottom: none; } + .canteen-option:active { background: #f5f5f5; } + .canteen-option.selected { color: #1677ff; font-weight: 600; } .action-btns { display: flex; gap: 12px; padding: 16px 16px 12px; background: #fff; border-bottom: 0.5px solid #f5f5f5; @@ -97,20 +113,6 @@ .meal-item .food-name { font-size: 14px; font-weight: 500; } .meal-item .food-meta { font-size: 12px; color: #999; margin-top: 2px; } .meal-item .food-cal { font-size: 13px; font-weight: 600; color: #fa8c16; flex-shrink: 0; } - .nutri-summary { - margin: 12px 16px; padding: 14px; background: #fff; border-radius: 12px; - } - .nutri-summary .summary-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; } - .nutri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } - .nutri-card { - background: #f8f9fa; border-radius: 10px; padding: 10px 8px; text-align: center; - } - .nutri-card .val { font-size: 16px; font-weight: 700; } - .nutri-card .unit { font-size: 11px; color: #999; margin-top: 2px; } - .nutri-link { - display: block; text-align: center; font-size: 12px; color: #1677ff; - margin-top: 10px; cursor: pointer; text-decoration: none; - } @@ -127,10 +129,16 @@
-
+
当前食堂 - 长庆食堂A区 - + 长庆食堂A区 + +
+
+
长庆食堂A区
+
长庆食堂B区
+
总部食堂
+
西区员工餐厅
@@ -184,19 +192,25 @@
232kcal + +
🥬
+
+
蒜蓉油麦菜
+
蛋白质 1.8g · 脂肪 3.2g
+
+ 52kcal +
+ +
🍲
+
+
番茄蛋花汤
+
蛋白质 4.6g · 脂肪 2.1g
+
+ 48kcal +
- -
-
午餐营养摘要
-
-
727
千卡 / 热量
-
50.6g
蛋白质
-
22.6g
脂肪
-
- 查看完整营养分析 › -
@@ -209,5 +223,80 @@
+ diff --git a/other-module/mini-program/nutrition/eat-meal-record.html b/other-module/mini-program/nutrition/eat-meal-record.html index 6dbdc6c..1511225 100644 --- a/other-module/mini-program/nutrition/eat-meal-record.html +++ b/other-module/mini-program/nutrition/eat-meal-record.html @@ -58,7 +58,7 @@ .record-item .r-time { font-size: 11px; color: #999; margin-top: 2px; } .record-item .r-cal { font-size: 13px; font-weight: 600; color: #fa8c16; flex-shrink: 0; } .day-summary { - margin: 0 16px 16px; padding: 14px; background: #fff; border-radius: 12px; + margin: 0 16px 8px; padding: 14px; background: #fff; border-radius: 12px; } .day-summary .ds-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; } .ds-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; } @@ -84,28 +84,42 @@ 2026年5月13日(今天) + +
+
今日摄入汇总
+
+
1827
千卡
+
107g
蛋白质
+
69g
脂肪
+
+
-
🌅 早餐 共 386kcal
+
🌅 早餐 共 413kcal
🥛
-
牛奶(250ml)
07:32
- 156kcal +
豆浆
07:30
+ 65kcal +
+ +
🥖
+
油条
07:30
+ 198kcal
🥚
-
水煮蛋 ×2
07:32
- 144kcal +
水煮蛋
07:32
+ 78kcal
-
🍞
-
全麦面包
07:35
- 86kcal +
🥣
+
小米粥
07:35
+ 72kcal
-
☀️ 午餐 共 727kcal
+
☀️ 午餐 共 827kcal
🍗
宫保鸡丁
12:05
@@ -126,15 +140,40 @@
米饭(中碗)
12:05
232kcal
+ +
🥬
+
蒜蓉油麦菜
12:08
+ 52kcal +
+ +
🍲
+
番茄蛋花汤
12:08
+ 48kcal +
- -
-
今日摄入汇总
-
-
1113
千卡
-
68g
蛋白质
-
42g
脂肪
-
+ +
+
🌙 晚餐 共 587kcal
+ +
🍳
+
番茄炒蛋
18:10
+ 156kcal +
+ +
🫑
+
青椒肉丝
18:10
+ 178kcal +
+ +
🥬
+
紫菜蛋花汤
18:12
+ 32kcal +
+ +
🍞
+
馒头
18:12
+ 221kcal +
diff --git a/other-module/mini-program/nutrition/eat-nutrition.html b/other-module/mini-program/nutrition/eat-nutrition.html index 518a961..73a7621 100644 --- a/other-module/mini-program/nutrition/eat-nutrition.html +++ b/other-module/mini-program/nutrition/eat-nutrition.html @@ -24,25 +24,71 @@ .status-bar .icons { display: flex; gap: 6px; align-items: center; } .page-content { flex: 1; overflow-y: auto; background: #f5f5f5; } .page-content::-webkit-scrollbar { display: none; } - /* 导航栏 */ - .nav-bar { - height: 44px; background: #fff; display: flex; align-items: center; - padding: 0 16px; border-bottom: 0.5px solid #f0f0f0; flex-shrink: 0; position: relative; + /* 食堂选择栏 */ + .canteen-header { + background: #fff; padding: 10px 16px; display: flex; align-items: center; + justify-content: space-between; border-bottom: 0.5px solid #f0f0f0; position: relative; } - .nav-bar .back { font-size: 22px; color: #1677ff; cursor: pointer; text-decoration: none; line-height: 1; } - .nav-bar .title { - position: absolute; left: 50%; transform: translateX(-50%); - font-size: 17px; font-weight: 600; + .canteen-select { display: flex; align-items: center; gap: 6px; cursor: pointer; } + .canteen-select .label { font-size: 13px; color: #999; } + .canteen-select .name { font-size: 15px; font-weight: 600; } + .canteen-select .arrow { font-size: 12px; color: #999; transition: transform 0.2s; } + .canteen-select .arrow.open { transform: rotate(180deg); } + .canteen-dropdown { + display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; + background: #fff; border-top: 0.5px solid #f0f0f0; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); } - .nav-bar .action { - margin-left: auto; padding: 3px 10px; border-radius: 10px; - border: 1px solid #1677ff; background: #fff; color: #1677ff; font-size: 11px; cursor: pointer; + .canteen-dropdown.show { display: block; } + .canteen-option { + padding: 12px 16px; font-size: 14px; color: #333; cursor: pointer; + border-bottom: 0.5px solid #f5f5f5; } + .canteen-option:last-child { border-bottom: none; } + .canteen-option:active { background: #f5f5f5; } + .canteen-option.selected { color: #1677ff; font-weight: 600; } + /* 营养/食谱 卡片 */ + .action-btns { + display: flex; gap: 12px; padding: 16px 16px 12px; background: #fff; + border-bottom: 0.5px solid #f5f5f5; + } + .action-btn { + flex: 1; padding: 14px 0; border-radius: 14px; border: 2px solid #d9d9d9; + background: #fff; color: #333; font-size: 15px; font-weight: 600; + cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; + text-decoration: none; + } + .action-btn.active { border-color: #1677ff; background: #1677ff; color: #fff; } + .action-btn .btn-icon { font-size: 24px; } + /* 返回就餐记录入口 */ + .back-record { + display: flex; align-items: center; gap: 4px; padding: 10px 16px; + background: #fff; border-bottom: 0.5px solid #f0f0f0; + font-size: 13px; color: #1677ff; cursor: pointer; text-decoration: none; + } + .back-record .back-arrow { font-size: 16px; } + /* 内容Tab切换 */ + .content-tabs { + display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; + } + .content-tab { + flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: #999; + cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; + } + .content-tab.active { color: #1677ff; border-bottom-color: #1677ff; font-weight: 600; } + .tab-panel { display: none; } + .tab-panel.active { display: block; } /* 业务样式 */ - .section { background: #fff; margin-bottom: 8px; padding: 14px 16px; } - .section-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; } - .bar-item { margin-bottom: 12px; } - .bar-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; } + .section { background: #fff; padding: 14px 16px; } + .legend { + display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; + padding-bottom: 10px; border-bottom: 0.5px solid #f5f5f5; + } + .legend span { font-size: 10px; color: #999; display: flex; align-items: center; gap: 3px; } + .legend .dot { display: inline-block; width: 10px; height: 6px; border-radius: 2px; } + .bar-item { margin-bottom: 10px; } + .bar-item:last-child { margin-bottom: 0; } + .bar-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .bar-label .name { font-size: 12px; color: #555; font-weight: 500; } .bar-label .vals { font-size: 11px; } .bar-label .vals .cur { color: #333; font-weight: 600; } @@ -52,31 +98,48 @@ position: relative; height: 8px; background: #f5f5f5; border-radius: 4px; overflow: hidden; } .progress-bar .fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; } - .legend { - display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; - padding-top: 10px; border-top: 0.5px solid #f5f5f5; + /* 膳食宝塔 - 金字塔样式 */ + .tower-pyramid { + display: flex; flex-direction: column; align-items: center; gap: 0; + padding: 0 0 6px; position: relative; } - .legend span { font-size: 10px; color: #999; display: flex; align-items: center; gap: 3px; } - .legend .dot { display: inline-block; width: 10px; height: 6px; border-radius: 2px; } - /* 膳食宝塔 */ - .tower-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } - .tower-block { - padding: 4px; border-radius: 6px; text-align: center; flex-shrink: 0; + /* 塔尖:纯CSS三角形,宽度与第一层对齐 */ + .tower-pyramid::before { + content: ''; display: block; width: 0; height: 0; + border-left: 58px solid transparent; border-right: 58px solid transparent; + border-bottom: 22px solid #fff3e0; } - .tower-block .icon { font-size: 14px; } - .tower-block .name { font-size: 9px; font-weight: 600; } - .tower-info { flex: 1; } - .tower-info .rec { font-size: 11px; color: #999; } - .tower-info .actual { font-size: 11px; margin-top: 2px; } - /* 评分卡片 */ - .score-grid { display: flex; gap: 8px; margin-bottom: 10px; } - .score-card { flex: 1; border-radius: 10px; padding: 10px; text-align: center; } - .score-card .num { font-size: 20px; font-weight: 800; } - .score-card .desc { font-size: 11px; color: #999; margin-top: 2px; } - .warn-tip { - padding: 8px 10px; background: #fff7e6; border-radius: 8px; - font-size: 12px; color: #fa8c16; + .tower-level { + display: flex; flex-direction: column; align-items: center; justify-content: center; + padding: 6px 8px 5px; border-bottom: 1.5px solid #fff; } + .tower-level:last-child { border-bottom: none; border-radius: 0 0 8px 8px; } + /* 第一行:图标 + 名称 */ + .t-row1 { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; } + .t-row1 .t-icon { font-size: 13px; line-height: 1; } + .t-row1 .t-name { font-size: 11px; font-weight: 700; } + /* 第二行:推荐 / 实际 / 结果 */ + .t-row2 { display: flex; align-items: center; gap: 6px; } + .t-row2 .t-rec { font-size: 9px; color: rgba(0,0,0,0.45); } + .t-row2 .t-actual { font-size: 9px; font-weight: 600; } + .t-row2 .t-result { + font-size: 9px; font-weight: 700; padding: 1px 6px; + border-radius: 8px; white-space: nowrap; + } + .t-result.ok { background: rgba(82,196,26,0.15); color: #389e0d; } + .t-result.warn { background: rgba(250,140,22,0.15); color: #d46b08; } + .t-result.over { background: rgba(245,34,45,0.15); color: #cf1322; } + /* 底部 Tab 栏 */ + .tab-bar { + height: 50px; background: #fff; border-top: 0.5px solid #e8e8e8; + display: flex; align-items: center; flex-shrink: 0; + } + .tab-item { + flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; + text-decoration: none; font-size: 10px; color: #999; padding: 6px 0; + } + .tab-item .tab-icon { font-size: 22px; line-height: 1; } + .tab-item.active { color: #1677ff; } .home-indicator { height: 20px; display: flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0; @@ -93,98 +156,245 @@ 09:41
📶WiFi🔋
- -
- -
-
📊 营养素明细
-
-
热量1286 / 2000kcal
-
+ +
+
+ 当前食堂 + 长庆食堂A区 +
-
-
蛋白质68g / 75g
-
-
-
-
脂肪42g / 65g
-
-
-
-
碳水化合物186g / 275g
-
-
-
-
膳食纤维12g / 25g
-
-
-
-
2600mg / 2000mg
-
-
-
-
420mg / 800mg
-
-
-
-
维生素C42mg / 100mg
-
-
-
- 不足(<60%) - 达标(60~100%) - 偏高(100~120%) - 超标(>120%) +
+
长庆食堂A区
+
长庆食堂B区
+
总部食堂
+
西区员工餐厅
- -
-
🏛️ 膳食宝塔评估
-
-
🌾
谷薯类
-
推荐:250~400g
实际:186g✓ 适量
-
-
-
🥦
蔬菜水果
-
推荐:300~500g
实际:280g✓ 适量
-
-
-
🥩
畜禽鱼蛋
-
推荐:120~200g
实际:168g✓ 适量
-
-
-
🥛
奶豆坚果
-
推荐:25~35g
实际:20g⚠ 注意
-
-
-
🧂
烹调油盐
-
推荐:油<25g
实际:偏高⚠ 注意
-
-
-
💧
饮水
-
推荐:1500ml+
实际:800ml⚠ 注意
+ + + + + 返回就餐记录 + + +
+
营养素明细
+
膳食宝塔评估
+
+ + +
+
+ +
+ 不足(<60%) + 达标(60~100%) + 偏高(100~120%) + 超标(>120%) +
+ +
+
热量1286 / 2000kcal
+
+
+
+
蛋白质68g / 75g
+
+
+
+
脂肪42g / 65g
+
+
+
+
碳水化合物186g / 275g
+
+
+
+
膳食纤维12g / 25g
+
+
+
+
饱和脂肪酸18g / 20g
+
+
+
+
反式脂肪酸0.4g / 2g
+
+
+
+
38g / 50g
+
+
+
+
胆固醇286mg / 300mg
+
+
+ +
+
2600mg / 2000mg
+
+
+
+
1100mg / 2000mg
+
+
+
+
420mg / 800mg
+
+
+
+
10mg / 12mg
+
+
+
+
7mg / 12mg
+
+
+
+
680mg / 720mg
+
+
+
+
180mg / 330mg
+
+
+ +
+
维生素A320μgRE / 800μgRE
+
+
+
+
维生素B10.8mg / 1.4mg
+
+
+
+
维生素B20.9mg / 1.4mg
+
+
+
+
维生素B61.1mg / 1.4mg
+
+
+
+
维生素B121.8μg / 2.4μg
+
+
+
+
维生素C42mg / 100mg
+
+
+
+
维生素D3.2μg / 10μg
+
+
+
+
维生素E9mg / 14mg
+
+
+
+
叶酸180μgDFE / 400μgDFE
+
+
+
+
烟酸11mg / 14mg
+
+
- -
-
📈 营养评分对比
-
-
78
本人评分
-
82
部门均值
-
80
全公司均值
+ +
+
+
+ +
+
🧂烹调油盐
+
油<25g 盐<5g偏高注意
+
+ +
+
💧饮水
+
推荐 1500ml+实际 800ml不足
+
+ +
+
🥛奶豆坚果
+
推荐 25~35g实际 20g不足
+
+ +
+
🥩畜禽鱼蛋
+
推荐 120~200g实际 168g适量
+
+ +
+
🥦蔬菜水果
+
推荐 300~500g实际 280g适量
+
+ +
+
🌾谷薯类
+
推荐 250~400g实际 186g适量
+
+
-
⚠ 钠摄入偏高(130%),建议减少腌制品;膳食纤维不足,建议增加蔬菜
+ + +
+ diff --git a/other-module/mini-program/nutrition/eat-order.html b/other-module/mini-program/nutrition/eat-order.html index b1fff40..2fd15b7 100644 --- a/other-module/mini-program/nutrition/eat-order.html +++ b/other-module/mini-program/nutrition/eat-order.html @@ -62,6 +62,15 @@ width: 24px; height: 24px; border-radius: 50%; background: #1677ff; color: #fff; border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; } + .qty-ctrl { display: none; align-items: center; gap: 0; } + .qty-ctrl.show { display: flex; } + .qty-btn { + width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d9d9d9; + background: #fff; font-size: 14px; color: #333; cursor: pointer; + display: flex; align-items: center; justify-content: center; line-height: 1; + } + .qty-btn:active { background: #f5f5f5; } + .qty-num { width: 28px; text-align: center; font-size: 13px; font-weight: 600; } /* 底部购物车栏 */ .cart-bar { height: 56px; background: #fff; border-top: 1px solid #f0f0f0; @@ -92,7 +101,7 @@
📶WiFi🔋
@@ -108,52 +117,76 @@
diff --git a/other-module/mini-program/nutrition/make-follow.html b/other-module/mini-program/nutrition/make-follow.html index 29e801d..64abe3c 100644 --- a/other-module/mini-program/nutrition/make-follow.html +++ b/other-module/mini-program/nutrition/make-follow.html @@ -36,6 +36,22 @@ .recipe-cover { height: 200px; background: linear-gradient(135deg,#f6ffed,#d9f7be); display: flex; align-items: center; justify-content: center; font-size: 64px; + position: relative; + } + .play-btn { + position: absolute; width: 52px; height: 52px; border-radius: 50%; + background: rgba(0,0,0,0.45); display: flex; align-items: center; + justify-content: center; cursor: pointer; + } + .play-btn::after { + content: ''; width: 0; height: 0; border-style: solid; + border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; + margin-left: 3px; + } + .cover-badge { + position: absolute; top: 10px; right: 10px; padding: 3px 10px; + border-radius: 10px; background: rgba(0,0,0,0.5); color: #fff; + font-size: 11px; font-weight: 500; } .recipe-info { padding: 16px; } .recipe-info .title { font-size: 18px; font-weight: 700; margin-bottom: 6px; } @@ -48,13 +64,31 @@ .ingredient-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 0.5px solid #f5f5f5; font-size: 13px; } .ingredient-item .name { color: #333; } .ingredient-item .amount { color: #999; } - .step-list { display: flex; flex-direction: column; gap: 14px; } - .step-item { display: flex; gap: 10px; } + .step-list { display: flex; flex-direction: column; gap: 16px; } + .step-item { display: flex; gap: 10px; flex-wrap: wrap; } .step-num { width: 24px; height: 24px; border-radius: 50%; background: #1677ff; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } - .step-text { font-size: 13px; color: #333; line-height: 1.6; padding-top: 2px; } + .step-text { font-size: 13px; color: #333; line-height: 1.6; padding-top: 2px; flex: 1; } + .step-media { + width: 100%; margin-left: 34px; margin-top: 6px; border-radius: 10px; + overflow: hidden; position: relative; + } + .step-media .media-box { + height: 100px; background: #f5f5f5; display: flex; align-items: center; + justify-content: center; font-size: 36px; border-radius: 10px; + } + .step-media .video-play { + position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); + width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.4); + display: flex; align-items: center; justify-content: center; + } + .step-media .video-play::after { + content: ''; width: 0; height: 0; border-style: solid; + border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; + margin-left: 2px; + } .action-bar { padding: 12px 16px; background: #fff; border-top: 0.5px solid #f0f0f0; display: flex; gap: 12px; flex-shrink: 0; @@ -80,7 +114,7 @@
-
🥗
+
🥗
01:32
低脂鸡胸肉沙拉
👤 营养师小王 · 15分钟 · 220kcal
@@ -103,10 +137,29 @@
制作步骤
-
1
鸡胸肉用盐和黑胡椒腌制10分钟
-
2
平底锅少油煎至两面金黄,切片备用
-
3
生菜洗净撕小块,黄瓜切片,小番茄对半切
-
4
所有食材摆盘,淋上橄榄油,撒黑胡椒即可
+
+
1
+
鸡胸肉用盐和黑胡椒腌制10分钟
+
🧂
+
+
+
2
+
平底锅少油煎至两面金黄,切片备用
+
+
🍳
+
+
+
+
+
3
+
生菜洗净撕小块,黄瓜切片,小番茄对半切
+
🥬
+
+
+
4
+
所有食材摆盘,淋上橄榄油,撒黑胡椒即可
+
🥗
+
diff --git a/other-module/mini-program/nutrition/make-home.html b/other-module/mini-program/nutrition/make-home.html index d3ce318..d639f4f 100644 --- a/other-module/mini-program/nutrition/make-home.html +++ b/other-module/mini-program/nutrition/make-home.html @@ -22,9 +22,68 @@ } .status-bar .time { font-size: 15px; font-weight: 700; } .status-bar .icons { display: flex; gap: 6px; align-items: center; } - .tab-bar { height: 50px; background: #fff; border-top: 0.5px solid #e8e8e8; display: flex; align-items: center; flex-shrink: 0; } .page-content { flex: 1; overflow-y: auto; background: #f5f5f5; } .page-content::-webkit-scrollbar { display: none; } + + /* Banner */ + .banner { + background: linear-gradient(135deg, #ff8c38, #ff6b1a); + padding: 24px 20px 28px; position: relative; overflow: hidden; + } + .banner::after { + content: '做'; position: absolute; right: -10px; top: -10px; + font-size: 120px; font-weight: 900; color: rgba(255,255,255,0.12); line-height: 1; + } + .banner .title { font-size: 20px; font-weight: 700; color: #fff; position: relative; z-index: 1; } + .banner .desc { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 6px; position: relative; z-index: 1; } + + /* 四宫格入口 */ + .grid-nav { + display: grid; grid-template-columns: repeat(4, 1fr); + background: #fff; padding: 18px 0 14px; margin-bottom: 10px; + } + .grid-nav-item { + display: flex; flex-direction: column; align-items: center; gap: 6px; + text-decoration: none; color: #333; cursor: pointer; + } + .grid-nav-item .nav-icon { + width: 46px; height: 46px; border-radius: 14px; display: flex; + align-items: center; justify-content: center; font-size: 22px; + } + .grid-nav-item .nav-label { font-size: 12px; font-weight: 500; } + + /* 热门创作 */ + .section-header { + display: flex; align-items: center; justify-content: space-between; + padding: 14px 16px 10px; background: #fff; + } + .section-header .sec-title { font-size: 16px; font-weight: 700; color: #1a1a1a; } + .section-header .sec-more { + font-size: 12px; color: #999; text-decoration: none; display: flex; align-items: center; gap: 2px; + } + .recipe-list { background: #fff; padding: 0 16px 12px; } + .recipe-item { + display: flex; align-items: center; gap: 12px; padding: 12px 0; + border-bottom: 0.5px solid #f0f0f0; text-decoration: none; color: inherit; + } + .recipe-item:last-child { border-bottom: none; } + .recipe-item .avatar { + width: 52px; height: 52px; border-radius: 12px; display: flex; + align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; + } + .recipe-item .content { flex: 1; min-width: 0; } + .recipe-item .recipe-title { + font-size: 14px; font-weight: 600; color: #1a1a1a; + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + } + .recipe-item .recipe-meta { font-size: 12px; color: #999; margin-top: 3px; } + .recipe-item .recipe-likes { font-size: 11px; color: #ff6b6b; margin-top: 3px; } + + /* 底部 Tab 栏 */ + .tab-bar { + height: 50px; background: #fff; border-top: 0.5px solid #e8e8e8; + display: flex; align-items: center; flex-shrink: 0; + } .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 10px; color: #999; padding: 6px 0; @@ -32,33 +91,13 @@ .tab-item .tab-icon { font-size: 22px; line-height: 1; } .tab-item.active { color: #1677ff; } .home-indicator { - height: 20px; display: flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0; + height: 20px; display: flex; align-items: center; justify-content: center; + background: #fff; flex-shrink: 0; } - .home-indicator::after { content: ''; width: 120px; height: 5px; background: #1a1a1a; border-radius: 3px; opacity: 0.2; } - /* 业务样式 */ - .make-header { background: #fff; padding: 16px; margin-bottom: 8px; } - .make-header .title { font-size: 18px; font-weight: 700; margin-bottom: 4px; } - .make-header .desc { font-size: 13px; color: #666; } - .make-actions { - display: flex; gap: 10px; padding: 0 16px 12px; background: #fff; margin-bottom: 8px; + .home-indicator::after { + content: ''; width: 120px; height: 5px; background: #1a1a1a; + border-radius: 3px; opacity: 0.2; } - .make-action-btn { - flex: 1; padding: 14px 0; border-radius: 12px; border: none; color: #fff; - font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; - } - .recipe-card { - margin: 0 16px 12px; background: #fff; border-radius: 12px; overflow: hidden; - text-decoration: none; color: inherit; display: block; - } - .recipe-card .cover { - height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; - } - .recipe-card .card-body { padding: 12px 14px; } - .recipe-card .card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; } - .recipe-card .card-meta { font-size: 12px; color: #999; margin-bottom: 8px; } - .recipe-card .card-footer { display: flex; align-items: center; justify-content: space-between; } - .recipe-card .author { font-size: 11px; color: #666; } - .recipe-card .stats { font-size: 11px; color: #999; display: flex; gap: 10px; } @@ -68,49 +107,66 @@
📶WiFi🔋
-
-
🍳 健康食谱社区
-
分享你的健康食谱,一起吃出好身体
+ + -
- 📖 照做食谱 - ✏️ 我要创作 + + + - - -
🥗
-
-
低脂鸡胸肉沙拉
-
热量 220kcal · 蛋白质 28g · 准备时间 15分钟
-