|
|
|
@ -51,7 +51,6 @@ const MENU_ICON_THEME: Record<string, { bg: string; color: string }> = { |
|
|
|
progress: { bg: colors.infoLight, color: colors.infoText }, |
|
|
|
game: { bg: colors.successLight, color: colors.successText }, |
|
|
|
legal: { bg: colors.primaryLight, color: colors.primaryDark }, |
|
|
|
'enterprise-overview': { bg: colors.primaryLight, color: colors.primary }, |
|
|
|
'job-publish': { bg: colors.actionLight, color: colors.actionText }, |
|
|
|
'job-evaluations': { bg: colors.successLight, color: colors.successText }, |
|
|
|
'candidate-detail': { bg: colors.infoLight, color: colors.infoText }, |
|
|
|
@ -61,7 +60,7 @@ const MENU_ICON_THEME: Record<string, { bg: string; color: string }> = { |
|
|
|
'enterprise-chat': { bg: colors.successLight, color: colors.successText }, |
|
|
|
'operation-rules': { bg: colors.primaryLight, color: colors.primaryText }, |
|
|
|
'audit-report': { bg: colors.infoLight, color: colors.infoText }, |
|
|
|
'enterprise-certification': { bg: colors.successLight, color: colors.successText }, |
|
|
|
'enterprise-certification': { bg: colors.primaryLight, color: colors.primary }, |
|
|
|
}; |
|
|
|
function getMenuIconBg(id: string): string { |
|
|
|
return MENU_ICON_THEME[id]?.bg ?? colors.primaryLight; |
|
|
|
@ -152,7 +151,7 @@ function EnterpriseEntryCard({ entry }: { entry: EnterpriseEntry }) { |
|
|
|
return ( |
|
|
|
<Pressable style={styles.enterpriseCard} onPress={() => router.push('/enterprise-overview')}> |
|
|
|
<View style={styles.enterpriseIconWrap}> |
|
|
|
<Ionicons name="business-outline" size={22} color={colors.success} /> |
|
|
|
<Ionicons name="business-outline" size={22} color={colors.primary} /> |
|
|
|
</View> |
|
|
|
<View style={styles.enterpriseText}> |
|
|
|
<Text style={styles.enterpriseTitle}>{entry.title}</Text> |
|
|
|
@ -692,14 +691,14 @@ const styles = StyleSheet.create({ |
|
|
|
width: 44, |
|
|
|
height: 44, |
|
|
|
borderRadius: 12, |
|
|
|
backgroundColor: colors.successLight, |
|
|
|
backgroundColor: colors.primaryLight, |
|
|
|
alignItems: 'center', |
|
|
|
justifyContent: 'center', |
|
|
|
}, |
|
|
|
enterpriseText: { flex: 1, marginLeft: 12 }, |
|
|
|
enterpriseTitle: { fontSize: 15, fontWeight: '700', color: colors.textPrimary }, |
|
|
|
enterpriseDesc: { fontSize: 12, color: colors.textSecondary, marginTop: 3 }, |
|
|
|
enterpriseAction: { fontSize: 13, fontWeight: '600', color: colors.successText }, |
|
|
|
enterpriseAction: { fontSize: 13, fontWeight: '600', color: colors.primaryDark }, |
|
|
|
/* ---- 功能菜单 ---- */ |
|
|
|
menuCard: { |
|
|
|
backgroundColor: colors.white, |
|
|
|
|