fix(miniprogram): 对齐设计原型 — 移除渐变头部+体征数值内联+卡片布局
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 首页:移除渐变头部改为平铺背景,铃铛图标替代消息按钮
- 首页:体征数值与单位内联显示(同一行 baseline 对齐)
- 健康页:标题改为"健康数据",整体样式贴近原型紧凑风格
- 我的页:移除渐变头部改为平铺卡片,积分/打卡分两个独立卡片
- 我的页:菜单使用 emoji 图标替代文字图标,间距更紧凑
This commit is contained in:
iven
2026-04-30 23:04:36 +08:00
parent 50772878da
commit 63d8b7a65d
6 changed files with 280 additions and 272 deletions

View File

@@ -118,10 +118,10 @@ export default function Index() {
</Text>
</View>
<View
className='greeting-msg'
className='greeting-bell'
onClick={() => Taro.switchTab({ url: '/pages/messages/index' })}
>
<Text className='greeting-msg-icon'></Text>
<Text className='greeting-bell-icon'>🔔</Text>
</View>
</View>
@@ -165,9 +165,11 @@ export default function Index() {
onClick={() => Taro.navigateTo({ url: `/pages/pkg-health/trend/index?indicator=${item.indicator}` })}
>
<Text className='vital-label'>{item.label}</Text>
<Text className='vital-value'>{item.value}</Text>
<View className='vital-bottom'>
<View className='vital-value-row'>
<Text className='vital-value'>{item.value}</Text>
<Text className='vital-unit'>{item.unit}</Text>
</View>
<View className='vital-bottom'>
{tag && <Text className={`vital-tag ${tag.cls}`}>{tag.label}</Text>}
{!item.status && <Text className='vital-tag tag-empty'></Text>}
</View>