From 5e89bfdc137e4344dce174ea491c0f9070e52338 Mon Sep 17 00:00:00 2001 From: doublex001 <16157008+doublex001@user.noreply.gitee.com> Date: Tue, 1 Sep 2026 14:05:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(profile):=20=E6=B1=82=E8=81=8C?= =?UTF-8?q?=E7=AB=AF=E4=BC=81=E4=B8=9A=E5=85=A5=E5=8F=A3=E4=B8=8E=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=85=A5=E9=A9=BB=E8=8F=9C=E5=8D=95=E4=B8=BB=E8=89=B2?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=B8=BA=20primary=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E7=BB=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(tabs)/profile.tsx | 9 ++++----- src/api/api.ts | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/(tabs)/profile.tsx b/app/(tabs)/profile.tsx index d07a3ec..628663b 100644 --- a/app/(tabs)/profile.tsx +++ b/app/(tabs)/profile.tsx @@ -51,7 +51,6 @@ const MENU_ICON_THEME: Record = { 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 = { '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 ( router.push('/enterprise-overview')}> - + {entry.title} @@ -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, diff --git a/src/api/api.ts b/src/api/api.ts index 641d62a..09f2e64 100644 --- a/src/api/api.ts +++ b/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' },