Browse Source

refactor(profile): 求职端企业入口与企业入驻菜单主色统一为 primary,去绿

master
doublex001 2 months ago
parent
commit
5e89bfdc13
  1. 9
      app/(tabs)/profile.tsx
  2. 2
      src/api/api.ts

9
app/(tabs)/profile.tsx

@ -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,

2
src/api/api.ts

@ -626,7 +626,7 @@ const MOCK_MENU_ITEMS: MenuItem[] = [
{ id: 'progress', title: '求职进度', icon: 'list-outline', route: '/progress' },
{ id: 'game', title: '通关小游戏', icon: 'trophy-outline', route: '/game' },
{ id: 'legal', title: '阿布阿诺法律服务', icon: 'shield-checkmark-outline', route: '/legal' },
{ id: 'enterprise-overview', title: '企业主页', icon: 'business-outline', route: '/enterprise-overview' },
{ id: 'enterprise-certification', title: '企业入驻', icon: 'business-outline', route: '/enterprise-certification' },
{ id: 'job-publish', title: '发布岗位', icon: 'add-circle-outline', route: '/job-publish' },
{ id: 'job-evaluations', title: '岗位评价管理', icon: 'chatbubbles-outline', route: '/job-evaluations' },
{ id: 'candidate-detail', title: '候选人详情', icon: 'person-outline', route: '/candidate-detail' },

Loading…
Cancel
Save