feat: get phone

This commit is contained in:
eleanor.mao
2025-04-02 22:53:55 +08:00
parent d25187c9c8
commit 77a33989c4
7 changed files with 52 additions and 29 deletions

View File

@ -18,6 +18,7 @@ import { isFullTimePriceRequired, isPartTimePriceRequired } from '@/utils/job';
import { updateProfile, subscribeMaterialMessage } from '@/utils/material';
import { navigateBack } from '@/utils/route';
import Toast from '@/utils/toast';
import useLocation from '@/hooks/use-location';
import './index.less';
@ -73,6 +74,7 @@ const isValidFormData = (type: ProfileGroupType, data: Partial<MaterialProfile>)
};
export default function MaterialCreateProfile() {
const location = useLocation();
const [groupType, setGroupType] = useState<ProfileGroupType>(ProfileGroupType.Intention);
const ref = useRef<{ getData: () => Partial<MaterialProfile> } | null>(null);
const ProfileFragment =
@ -121,7 +123,7 @@ export default function MaterialCreateProfile() {
return (
<div className={PREFIX}>
<ProfileFragment ref={ref} profile={{}} />
<ProfileFragment ref={ref} profile={{cityCodes: location.cityCode || '' }} />
<SafeBottomPadding />
<div className={`${PREFIX}__footer`}>
<Button className={`${PREFIX}__submit-btn`} onClick={handleSubmit}>