|
|
@ -6,14 +6,14 @@ import { Animated, Easing, Pressable, StyleSheet, View } from 'react-native'; |
|
|
import { colors } from '../../src/theme'; |
|
|
import { colors } from '../../src/theme'; |
|
|
import { useRole } from '../../src/context/RoleContext'; |
|
|
import { useRole } from '../../src/context/RoleContext'; |
|
|
|
|
|
|
|
|
/** 企业端默认落地「概览」Tab */ |
|
|
/** 企业端默认落地「岗位」Tab(与求职端首屏一致) */ |
|
|
export const unstable_settings = { |
|
|
export const unstable_settings = { |
|
|
initialRouteName: 'enterprise-overview', |
|
|
initialRouteName: 'job-management', |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
/** 企业端用 success(绿) 区分求职端 primary(蓝);未选中 -outline,选中填充实心 */ |
|
|
/** 企业端用 success(绿) 区分求职端 primary(蓝);未选中 -outline,选中填充实心 */ |
|
|
const ICON_MAP = { |
|
|
const ICON_MAP = { |
|
|
'enterprise-overview': { outline: 'grid-outline', filled: 'grid' }, |
|
|
'enterprise-overview': { outline: 'person-outline', filled: 'person' }, |
|
|
'job-management': { outline: 'folder-outline', filled: 'folder' }, |
|
|
'job-management': { outline: 'folder-outline', filled: 'folder' }, |
|
|
'talent-recommendation': { outline: 'people-outline', filled: 'people' }, |
|
|
'talent-recommendation': { outline: 'people-outline', filled: 'people' }, |
|
|
'enterprise-chat': { outline: 'chatbubble-outline', filled: 'chatbubble' }, |
|
|
'enterprise-chat': { outline: 'chatbubble-outline', filled: 'chatbubble' }, |
|
|
@ -136,7 +136,7 @@ function TabBar({ state, descriptors, navigation, insets }: BottomTabBarProps) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 企业端底部 Tab 导航:概览 / 岗位 / 人才 / 沟通 |
|
|
* 企业端底部 Tab 导航:岗位 / 人才 / 沟通 / 我的 |
|
|
* 绿色 success 强调,与求职端蓝色 primary 形成视觉区分。 |
|
|
* 绿色 success 强调,与求职端蓝色 primary 形成视觉区分。 |
|
|
*/ |
|
|
*/ |
|
|
export default function EnterpriseTabLayout() { |
|
|
export default function EnterpriseTabLayout() { |
|
|
@ -151,10 +151,10 @@ export default function EnterpriseTabLayout() { |
|
|
screenOptions={{ headerShown: false }} |
|
|
screenOptions={{ headerShown: false }} |
|
|
tabBar={(props) => <TabBar {...props} />} |
|
|
tabBar={(props) => <TabBar {...props} />} |
|
|
> |
|
|
> |
|
|
<Tabs.Screen name="enterprise-overview" options={{ title: '概览' }} /> |
|
|
|
|
|
<Tabs.Screen name="job-management" options={{ title: '岗位' }} /> |
|
|
<Tabs.Screen name="job-management" options={{ title: '岗位' }} /> |
|
|
<Tabs.Screen name="talent-recommendation" options={{ title: '人才' }} /> |
|
|
<Tabs.Screen name="talent-recommendation" options={{ title: '人才' }} /> |
|
|
<Tabs.Screen name="enterprise-chat" options={{ title: '沟通' }} /> |
|
|
<Tabs.Screen name="enterprise-chat" options={{ title: '沟通' }} /> |
|
|
|
|
|
<Tabs.Screen name="enterprise-overview" options={{ title: '我的' }} /> |
|
|
</Tabs> |
|
|
</Tabs> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|