This commit is contained in:
chashaobao
2026-01-30 21:47:50 +08:00
parent d17a3e1461
commit 4cc4aaa707
20 changed files with 247 additions and 205 deletions

View File

@ -97,11 +97,11 @@ export default function MaterialViewPage() {
}
const jobDetail = await requestJobDetail(jobId);
if (jobDetail.status !== JobManageStatus.Open) {
if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
store.dispatch(cacheJobId(jobId));
navigateTo(PageUrl.CertificationStart);
return;
}
// if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
// store.dispatch(cacheJobId(jobId));
// navigateTo(PageUrl.CertificationStart);
// return;
// }
setShowBuy(true);
return;
@ -137,6 +137,13 @@ export default function MaterialViewPage() {
}, [profile, jobId]);
const handleNext = useCallback(async () => {
setShowBuy(false);
if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
store.dispatch(cacheJobId(jobId!));
navigateTo(PageUrl.CertificationStart);
return;
}
try {
await postPublishJob(jobId!);
await handleClickContact();
@ -150,7 +157,7 @@ export default function MaterialViewPage() {
}
collectEvent(CollectEventName.PUBLISH_JOB_FAILED, e);
}
}, [handleClickContact, jobId]);
}, [handleClickContact, jobId, userInfo.bossAuthStatus]);
const handleClickNoViewTimes = useCallback(() => {
setNoTimeDialogVisible(false);
navigateBack();