feat: 更新统计标签和标题,优化健康数据卡片样式,调整步数和健康相关组件的样式

This commit is contained in:
2025-08-30 22:37:27 +08:00
parent f4dd40ed46
commit 6bdfda9fd3
11 changed files with 68 additions and 118 deletions

View File

@@ -48,7 +48,7 @@ export default function TabLayout() {
case 'goals':
return { icon: 'flag.fill', title: '习惯' } as const;
case 'statistics':
return { icon: 'chart.pie.fill', title: '统计' } as const;
return { icon: 'chart.pie.fill', title: '健康' } as const;
case 'personal':
return { icon: 'person.fill', title: '个人' } as const;
default:
@@ -132,15 +132,15 @@ export default function TabLayout() {
}}>
<Tabs.Screen
name="coach"
name="statistics"
options={{
title: 'Seal',
title: '统计',
tabBarIcon: ({ color }) => {
const isCoachSelected = pathname === '/coach';
const isStatisticsSelected = pathname === '/statistics';
return (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<IconSymbol size={22} name="person.3.fill" color={color} />
{isCoachSelected && (
<IconSymbol size={22} name="chart.pie.fill" color={color} />
{isStatisticsSelected && (
<Text
numberOfLines={1}
style={{
@@ -151,7 +151,7 @@ export default function TabLayout() {
textAlign: 'center',
flexShrink: 0,
}}>
Seal
</Text>
)}
</View>
@@ -188,17 +188,16 @@ export default function TabLayout() {
},
}}
/>
<Tabs.Screen
name="statistics"
name="coach"
options={{
title: '统计',
title: 'Seal',
tabBarIcon: ({ color }) => {
const isStatisticsSelected = pathname === '/statistics';
const isCoachSelected = pathname === '/coach';
return (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<IconSymbol size={22} name="chart.pie.fill" color={color} />
{isStatisticsSelected && (
<IconSymbol size={22} name="person.3.fill" color={color} />
{isCoachSelected && (
<Text
numberOfLines={1}
style={{
@@ -209,7 +208,7 @@ export default function TabLayout() {
textAlign: 'center',
flexShrink: 0,
}}>
Seal
</Text>
)}
</View>
@@ -217,6 +216,7 @@ export default function TabLayout() {
},
}}
/>
<Tabs.Screen
name="goals"
options={{