import { useState } from 'react'; import { Pressable, StyleSheet, Text, View } from 'react-native'; import { colors } from '../../../src/theme'; import { useOnboarding } from '../../../src/hooks'; import { ScreenShell } from '../ui/ScreenShell'; import { SearchInput } from '../ui/SearchInput'; import { Tag, TagGroup } from '../ui/Tag'; const CATS = ['互联网AI', '设计', '金融', '客服运营', '电商']; const POS: Record = { 互联网AI: ['全栈工程师', '鸿蒙开发工程师', '前端开发工程师', 'Java工程师', '测试工程师'], 设计: ['UI设计师', '视觉设计师'], 金融: ['风控专员', '财务分析'], 客服运营: ['客服专员', '用户运营'], 电商: ['电商运营', '内容运营'], }; const BLOCKS = ['客服', '内容运营', '电商运营', '用户运营']; export function P11CurrentPosition() { const { data, setData, navigate, back, meta } = useOnboarding(); const [cat, setCat] = useState('互联网AI'); const choose = (p: string) => { setData({ currentPosition: p }); navigate('P12'); }; return ( {}} placeholder="搜索职位" /> {CATS.map((c) => ( setCat(c)}> {c} ))} 猜你做过 {POS[cat].map((p) => ( choose(p)} /> ))} 或者从这些板块选 {BLOCKS.map((b) => ( choose(b)} /> ))} ); } const styles = StyleSheet.create({ body: { flexDirection: 'row', gap: 14, marginTop: 8 }, cats: { width: 92 }, catItem: { paddingVertical: 12, borderRadius: 10 }, catItemActive: { backgroundColor: colors.primaryLight }, catText: { fontSize: 13, color: colors.textSecondary, textAlign: 'center' }, catTextActive: { color: colors.primaryText, fontWeight: '700' }, col: { flex: 1 }, colTitle: { fontSize: 14, fontWeight: '700', color: colors.textPrimary, marginBottom: 12 }, blockTitle: { fontSize: 14, fontWeight: '700', color: colors.textPrimary, marginVertical: 16 }, });