You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
3.2 KiB
67 lines
3.2 KiB
import { OnboardingProvider, useOnboarding } from '../src/hooks';
|
|
import { P1Login } from '../components/onboarding/screens/P1Login';
|
|
import { P2PhoneCode } from '../components/onboarding/screens/P2PhoneCode';
|
|
import { P2QuickLogin } from '../components/onboarding/screens/P2QuickLogin';
|
|
import { P3Identity } from '../components/onboarding/screens/P3Identity';
|
|
import { P4Intent } from '../components/onboarding/screens/P4Intent';
|
|
import { P5City } from '../components/onboarding/screens/P5City';
|
|
import { P6ExpectedPosition } from '../components/onboarding/screens/P6ExpectedPosition';
|
|
import { P7Salary } from '../components/onboarding/screens/P7Salary';
|
|
import { P8Resume1 } from '../components/onboarding/screens/P8Resume1';
|
|
import { P9JobStatus } from '../components/onboarding/screens/P9JobStatus';
|
|
import { P10FirstWork } from '../components/onboarding/screens/P10FirstWork';
|
|
import { P11CurrentPosition } from '../components/onboarding/screens/P11CurrentPosition';
|
|
import { P12Company } from '../components/onboarding/screens/P12Company';
|
|
import { P13JoinDate } from '../components/onboarding/screens/P13JoinDate';
|
|
import { P14Skills } from '../components/onboarding/screens/P14Skills';
|
|
import { P16WorkContent } from '../components/onboarding/screens/P16WorkContent';
|
|
import { P17Reference } from '../components/onboarding/screens/P17Reference';
|
|
import { P18Education } from '../components/onboarding/screens/P18Education';
|
|
import { P20School } from '../components/onboarding/screens/P20School';
|
|
import { P21Avatar } from '../components/onboarding/screens/P21Avatar';
|
|
import { P22Done } from '../components/onboarding/screens/P22Done';
|
|
import { P23Home } from '../components/onboarding/screens/P23Home';
|
|
import { B1Wechat } from '../components/onboarding/screens/B1Wechat';
|
|
import { B2Agreement } from '../components/onboarding/screens/B2Agreement';
|
|
import { B3Recruiter } from '../components/onboarding/screens/B3Recruiter';
|
|
|
|
function FlowRouter() {
|
|
const { current } = useOnboarding();
|
|
switch (current) {
|
|
case 'P1': return <P1Login />;
|
|
case 'P2': return <P2PhoneCode />;
|
|
case 'P2Q': return <P2QuickLogin />;
|
|
case 'P3': return <P3Identity />;
|
|
case 'P4': return <P4Intent />;
|
|
case 'P5': return <P5City />;
|
|
case 'P6': return <P6ExpectedPosition />;
|
|
case 'P7': return <P7Salary />;
|
|
case 'P8': return <P8Resume1 />;
|
|
case 'P9': return <P9JobStatus />;
|
|
case 'P10': return <P10FirstWork />;
|
|
case 'P11': return <P11CurrentPosition />;
|
|
case 'P12': return <P12Company />;
|
|
case 'P13': return <P13JoinDate />;
|
|
case 'P14': return <P14Skills />;
|
|
case 'P16': return <P16WorkContent />;
|
|
case 'P17': return <P17Reference />;
|
|
case 'P18': return <P18Education />;
|
|
case 'P20': return <P20School />;
|
|
case 'P21': return <P21Avatar />;
|
|
case 'P22': return <P22Done />;
|
|
case 'P23': return <P23Home />;
|
|
case 'B1': return <B1Wechat />;
|
|
case 'B2': return <B2Agreement />;
|
|
case 'B3': return <B3Recruiter />;
|
|
default: return <P1Login />;
|
|
}
|
|
}
|
|
|
|
/** 新用户注册全流程:默认注册入口 /register */
|
|
export default function RegisterFlow() {
|
|
return (
|
|
<OnboardingProvider>
|
|
<FlowRouter />
|
|
</OnboardingProvider>
|
|
);
|
|
}
|
|
|