fix(miniprogram): 对齐设计原型 — 移除渐变头部+体征数值内联+卡片布局
- 首页:移除渐变头部改为平铺背景,铃铛图标替代消息按钮 - 首页:体征数值与单位内联显示(同一行 baseline 对齐) - 健康页:标题改为"健康数据",整体样式贴近原型紧凑风格 - 我的页:移除渐变头部改为平铺卡片,积分/打卡分两个独立卡片 - 我的页:菜单使用 emoji 图标替代文字图标,间距更紧凑
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user