feat: update

This commit is contained in:
chashaobao
2025-07-29 23:00:57 +08:00
parent 1c1bb146fc
commit 10e7f39c92
3 changed files with 3 additions and 9 deletions

View File

@ -16,7 +16,7 @@ import { isValidIdCard, isValidPhone, logWithPrefix } from '@/utils/common';
import { postCertification, getPhone } from '@/utils/company';
import { collectEvent, reportEvent } from '@/utils/event';
import { chooseMedia } from '@/utils/material';
import { navigateBack, redirectTo } from '@/utils/route';
import { redirectTo } from '@/utils/route';
import Toast from '@/utils/toast';
import { dispatchUpdateUser, requestUserInfo } from '@/utils/user';
import { uploadVideo } from '@/utils/video';
@ -148,6 +148,7 @@ export default function Certification() {
await postCreateJob(cachedJobData);
Taro.eventCenter.trigger(EventName.COMPANY_JOB_PUBLISH_CHANGED);
await Toast.success('通告创建成功', 1500, true);
redirectTo(PageUrl.CertificationManage);
} catch (e) {
console.error('submit error', e);
Toast.error('通告审核失败请重试');
@ -190,12 +191,10 @@ export default function Certification() {
// 付钱
setShowBuy(true);
Taro.hideLoading();
return;
} else {
// 获取data创建
await handleCreateJob();
}
redirectTo(PageUrl.CertificationManage);
} catch (e) {
console.error('submit error', e);
Toast.error('认证失败请重试');