feat: job publish

This commit is contained in:
chashaobao
2025-07-28 23:35:51 +08:00
parent 260e543fe6
commit 1c1bb146fc
15 changed files with 167 additions and 19 deletions

View File

@ -99,12 +99,8 @@ export function CompanyPublishJobDialog(props: IProps) {
const handleNext = useCallback(async () => {
onClose(true);
if (userInfo.bossAuthStatus) {
navigateTo(PageUrl.JobPublish);
} else {
navigateTo(PageUrl.CertificationStart);
}
}, [userInfo, onClose]);
navigateTo(PageUrl.JobPublish);
}, [onClose]);
useEffect(() => {
initRef.current = async () => {

View File

@ -16,6 +16,7 @@ import { postSubscribe, subscribeMessage } from '@/utils/subscribe';
import Toast from '@/utils/toast';
interface IProps {
defaultSelect?: number;
onNext: () => void;
}
@ -85,8 +86,8 @@ const subscribe = async () => {
};
export default function CompanyPublishJobBuy(props: IProps) {
const { onNext } = props;
const [selectItem, setSelectItem] = useState(LIST[0]);
const { onNext, defaultSelect = 0 } = props;
const [selectItem, setSelectItem] = useState(LIST[defaultSelect]);
const handleClickItem = useCallback((newSelectItem: Item) => setSelectItem(newSelectItem), []);