diff --git a/src/lib/constants/index.ts b/src/lib/constants/index.ts index e7f9e0a..db37249 100644 --- a/src/lib/constants/index.ts +++ b/src/lib/constants/index.ts @@ -1,5 +1,6 @@ export { COMPANY_INFO } from './company'; -export { NAVIGATION, type NavigationItem } from './navigation'; +export { NAVIGATION, NAVIGATION_V2, MEGA_DROPDOWN_DATA } from './navigation'; +export type { NavigationItem, NavigationItemV2, MegaDropdownItem, MegaDropdownData } from './navigation'; export { STATS, type StatItem } from './stats'; export { SERVICES } from './services'; export { PRODUCTS } from './products'; diff --git a/src/lib/constants/navigation.ts b/src/lib/constants/navigation.ts index e6e08dc..4a2f487 100644 --- a/src/lib/constants/navigation.ts +++ b/src/lib/constants/navigation.ts @@ -14,3 +14,46 @@ export const NAVIGATION: NavigationItem[] = [ { id: 'news', label: '新闻动态', href: '/' }, { id: 'contact', label: '联系', href: '/contact' }, ]; + +export interface NavigationItemV2 { + id: string; + label: string; + href: string; + hasDropdown?: boolean; + dropdownKey?: string; +} + +export interface MegaDropdownItem { + id: string; + title: string; + description: string; + href: string; +} + +export interface MegaDropdownData { + [key: string]: MegaDropdownItem[]; +} + +export const NAVIGATION_V2: NavigationItemV2[] = [ + { id: 'products', label: '产品', href: '/products', hasDropdown: true, dropdownKey: 'products' }, + { id: 'solutions', label: '解决方案', href: '/solutions', hasDropdown: true, dropdownKey: 'solutions' }, + { id: 'services', label: '服务', href: '/services' }, + { id: 'cases', label: '案例', href: '/cases' }, + { id: 'about', label: '关于我们', href: '/about' }, + { id: 'contact', label: '联系我们', href: '/contact' }, +]; + +export const MEGA_DROPDOWN_DATA: MegaDropdownData = { + products: [ + { id: 'erp', title: 'ERP 管理系统', description: '财务·采购·销售·库存·生产', href: '/products/erp' }, + { id: 'crm', title: 'CRM 客户管理', description: '线索·商机·合同·服务', href: '/products/crm' }, + { id: 'bi', title: 'BI 数据平台', description: '报表·仪表盘·预测·决策', href: '/products/bi' }, + { id: 'cms', title: 'CMS 内容平台', description: '建站·运营·分发·分析', href: '/products/cms' }, + ], + solutions: [ + { id: 'manufacturing', title: '制造业', description: '智能制造·MES·质量管控', href: '/solutions/manufacturing' }, + { id: 'retail', title: '零售业', description: '全渠道·会员·精准营销', href: '/solutions/retail' }, + { id: 'education', title: '教育行业', description: '招生·教学·学情分析', href: '/solutions/education' }, + { id: 'healthcare', title: '医疗健康', description: '临床·运营·患者服务', href: '/solutions/healthcare' }, + ], +};