Leon 2 years ago
parent
commit
47a8babc4b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/components/navigation/TabBar.tsx

+ 4 - 3
src/components/navigation/TabBar.tsx

@@ -41,12 +41,13 @@ export default function Component(props:{index:number}) {
         <View className={selIndex == 0 ? 'tabbar-item tabbar-item-sel' : 'tabbar-item'} onClick={() => switchTab(0)}>
             <Text>生物钟</Text>
         </View>
-        <View className={selIndex == 1 ? 'tabbar-item tabbar-item-sel' : 'tabbar-item'} onClick={() => switchTab(1)}>
-            <Text>指标</Text>
-        </View>
         <View className={selIndex == 4 ? 'tabbar-item tabbar-item-sel' : 'tabbar-item'} onClick={() => switchTab(4)}>
             <Text>饮食</Text>
         </View>
+        <View className={selIndex == 1 ? 'tabbar-item tabbar-item-sel' : 'tabbar-item'} onClick={() => switchTab(1)}>
+            <Text>指标</Text>
+        </View>
+        
         <View className={selIndex == 2 ? 'tabbar-item tabbar-item-sel' : 'tabbar-item'} onClick={() => switchTab(2)}>
             <Text>运动</Text>
         </View>