From ea2be7af8c21897b14d5dc053c6ba8112946251d Mon Sep 17 00:00:00 2001 From: linda Date: Fri, 6 Nov 2026 10:25:41 +0800 Subject: [PATCH] =?UTF-8?q?style(ui):=20=E5=9B=BE=E6=A0=87=E6=95=B4?= =?UTF-8?q?=E4=BD=93=E6=94=BE=E5=A4=A7=E5=B9=B6=E4=B8=8E=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=AF=94=E4=BE=8B=E5=8D=8F=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按 6 级尺寸阶梯统一放大图标,避免小而散、提升大气感: - 底部导航 40 -> 48,容器 104 -> 116,标签 22 -> 23 - 首页快捷入口 40 -> 52,容器 96 -> 112、圆角 32 -> 36,标签 22 -> 24 - 首页品牌花标 40 -> 46,牌标容器 72 -> 84 - 今日心语 52 -> 62,提醒 38 -> 46 - 情绪选择 40 -> 50(容器 76),记录 30 -> 36,疗愈内容 34 -> 42 - 健康 Tab 26 -> 32(Tab 76 -> 84),建议项 34 -> 42(容器 84) - 我的设置项 32 -> 40,头像 108 -> 116 - 备孕/关系/亲子勾选 20 -> 24(容器 40 -> 46),会员勾选 18 -> 22 - 咨询师头像 40 -> 50(容器 100),热线 34/36 -> 42,急救工具 44 -> 54 - 空状态与会员锁 72 -> 96,内容详情头图 64 -> 78,登录花瓣与输入框图标同步放大 - 大尺寸图标描边降至 1.6-1.8,小尺寸保持 1.8-2.4,线宽视觉统一 - 文档补充「图标尺寸阶梯」规范 验证:no_emoji 0 问题 / 契约 84 接口 0 偏差 / Vue 20-20 / SCSS 19-19 --- components/hq-icon/hq-icon.vue | 2 +- components/hq-tabbar/hq-tabbar.vue | 12 ++++----- docs/04-前端设计系统与联调验证.md | 17 ++++++++++++ pages/consult/index.vue | 14 +++++----- pages/content/detail.vue | 2 +- pages/cycle/index.vue | 14 +++++----- pages/cycle/report.vue | 2 +- pages/family/index.vue | 10 +++---- pages/health/index.vue | 15 ++++++----- pages/index/index.vue | 42 +++++++++++++----------------- pages/login/index.vue | 14 +++++----- pages/member/index.vue | 6 ++--- pages/mine/index.vue | 16 ++++++------ pages/mood/firstaid.vue | 8 +++--- pages/mood/index.vue | 30 ++++++++++----------- pages/parenting/index.vue | 8 +++--- pages/prepare/index.vue | 10 +++---- pages/relation/index.vue | 8 +++--- 18 files changed, 121 insertions(+), 109 deletions(-) diff --git a/components/hq-icon/hq-icon.vue b/components/hq-icon/hq-icon.vue index 74993b1..3b63dd5 100644 --- a/components/hq-icon/hq-icon.vue +++ b/components/hq-icon/hq-icon.vue @@ -22,7 +22,7 @@ export default { /** 图标名,或历史 emoji(自动映射) */ name: { type: String, default: 'flower' }, /** 尺寸,单位 rpx */ - size: { type: [Number, String], default: 40 }, + size: { type: [Number, String], default: 44 }, /** 颜色 */ color: { type: String, default: '#E8604C' }, /** 描边宽度 */ diff --git a/components/hq-tabbar/hq-tabbar.vue b/components/hq-tabbar/hq-tabbar.vue index fe82376..b9e4642 100644 --- a/components/hq-tabbar/hq-tabbar.vue +++ b/components/hq-tabbar/hq-tabbar.vue @@ -10,7 +10,7 @@ > @@ -66,7 +66,7 @@ export default { display: flex; align-items: center; justify-content: space-between; - height: 104rpx; + height: 116rpx; } .hq-tab { @@ -75,14 +75,14 @@ export default { flex-direction: column; align-items: center; justify-content: center; - padding: 8rpx 0; - border-radius: 24rpx; + padding: 10rpx 0; + border-radius: 26rpx; transition: background-color 0.2s ease; } .hq-tab-label { - margin-top: 6rpx; - font-size: 22rpx; + margin-top: 10rpx; + font-size: 23rpx; color: #B9A79E; letter-spacing: 1rpx; } diff --git a/docs/04-前端设计系统与联调验证.md b/docs/04-前端设计系统与联调验证.md index 4aa01b3..a55788f 100644 --- a/docs/04-前端设计系统与联调验证.md +++ b/docs/04-前端设计系统与联调验证.md @@ -89,6 +89,23 @@ | 兼容历史数据 | 后端返回的 emoji 字段(如 `cover_emoji`)由 `resolveIcon()` 自动映射成矢量图标 | | 语义映射 | `iconForContentType / iconForMood / iconForReminder / iconForSymptom / iconForVaccine / iconForRelation` | +**图标尺寸阶梯(rpx)**——保证"放大后仍然协调"的统一尺度: + +| 场景 | 尺寸 | 说明 | +|---|---|---| +| 导航 / 主 Tab | 48 | 底部导航,选中态配 `#FFF1E9` 胶囊底 | +| 首页快捷入口 | 52 | 容器 112×112、圆角 36,视觉重量与文字标签平衡 | +| 情绪选择 / 大按钮组 | 50 | 容器 76 高,图标占容器约 2/3 | +| 区块内容图标(列表卡) | 42 | 容器 84×84,配副标题层级 | +| 建议/子 Tab 行内图标 | 32 | 与 24rpx 文字同行,垂直居中 | +| 单元格 / 设置项 | 40 | 左侧图标,右侧文字与箭头 | +| 内联标签 / 症状胶囊 | 28 | 与 24rpx 文字搭配 | +| 勾选态 | 22–24 | 圆形勾选容器 38–46 | +| 空状态 / 会员锁 | 96 | 大留白插图感,颜色 `#E6D3C9` | +| 内容详情头图 | 78 | 标题上方主视觉 | + +描边随尺寸微调:≥42rpx 用 `stroke 1.6–1.8`,≤32rpx 用 `1.8–1.9`,勾选等小尺寸用 `2.4`,保证线宽视觉一致、不糊不飘。 + **硬规则** 1. 页面与组件中**不允许出现 emoji 或字符图标**(含 ✓ ✿ ☾ ⚡ ☎ 等),一律使用 ``; 2. 新增图标必须先加入 `utils/icons.js` 的 `PATHS`,再在页面引用; diff --git a/pages/consult/index.vue b/pages/consult/index.vue index 8d42ffa..6556f6e 100644 --- a/pages/consult/index.vue +++ b/pages/consult/index.vue @@ -7,7 +7,7 @@ - + 如果此刻很难,请先联系热线 全国心理援助热线 12356 · 紧急情况请拨 120 @@ -18,7 +18,7 @@ - + @@ -83,7 +83,7 @@ - + 还没有咨询预约 @@ -240,7 +240,7 @@ export default { .crisis { display: flex; align-items: center; - padding: 24rpx 28rpx; + padding: 28rpx 30rpx; border-radius: 28rpx; background: linear-gradient(135deg, #FFF1E0 0%, #FFE3D3 100%); border: 2rpx solid #F7DCC8; @@ -279,9 +279,9 @@ export default { } .counselor-avatar { - width: 88rpx; - height: 88rpx; - border-radius: 28rpx; + width: 100rpx; + height: 100rpx; + border-radius: 30rpx; background-color: #FFF1E9; display: flex; align-items: center; diff --git a/pages/content/detail.vue b/pages/content/detail.vue index d1993fc..b93d39a 100644 --- a/pages/content/detail.vue +++ b/pages/content/detail.vue @@ -1,7 +1,7 @@