feat: 更新统计标签和标题,优化健康数据卡片样式,调整步数和健康相关组件的样式
This commit is contained in:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user