This commit is contained in:
chashaobao
2026-02-05 00:53:13 +08:00
parent 4cc4aaa707
commit 1e29b34518
7 changed files with 26 additions and 7 deletions

View File

@ -12,6 +12,11 @@
line-height: 48px; line-height: 48px;
margin-bottom: 31px; margin-bottom: 31px;
text-align: center; text-align: center;
.highlight {
color: @blHighlightColor;
display: inline;
}
} }
&__body { &__body {

View File

@ -86,7 +86,10 @@ export function PrejobPopup({ onCancel, isCreateResume, onConfirm, onRefresh }:
<Fragment> <Fragment>
<Popup rounded className={PREFIX} placement="bottom" open={openPopup} onClose={onCancel}> <Popup rounded className={PREFIX} placement="bottom" open={openPopup} onClose={onCancel}>
<div className={`${PREFIX}__content`}> <div className={`${PREFIX}__content`}>
<div className={`${PREFIX}__title`}></div> <div className={`${PREFIX}__title`}>
<div className="highlight"></div><div className="highlight"></div>
</div>
<div className={`${PREFIX}__body`}> <div className={`${PREFIX}__body`}>
{GET_CONTACT_TYPE_OPTIONS.map(option => { {GET_CONTACT_TYPE_OPTIONS.map(option => {
if (clicked && option.type === GET_CONTACT_TYPE.GROUP) { if (clicked && option.type === GET_CONTACT_TYPE.GROUP) {

View File

@ -105,7 +105,6 @@ function ProductJobContactDialog(props: IProps) {
const init = async () => { const init = async () => {
try { try {
Taro.showLoading({ mask: true, title: '加载中...' }); Taro.showLoading({ mask: true, title: '加载中...' });
log('init with productRecord', productRecord); log('init with productRecord', productRecord);
log('init with productInfo', productInfo); log('init with productInfo', productInfo);

View File

@ -153,10 +153,18 @@ export default function JobBuy(props: IProps) {
) : ( ) : (
<Fragment> <Fragment>
<div className={`${PREFIX}__job-buy__header`}> <div className={`${PREFIX}__job-buy__header`}>
<div></div> <div></div>
<div className="highlight"></div>
</div> </div>
<div className={`${PREFIX}__job-buy__describe`}> <div className={`${PREFIX}__job-buy__describe`}>
<div> </div> <div></div>
<div className="highlight"></div>
<div></div>
<div> </div>
<div className="highlight"></div>
</div>
<div className={`${PREFIX}__job-buy__describe`}>
<div> </div>
<div className="highlight" onClick={handleResume}> <div className="highlight" onClick={handleResume}>
</div> </div>

View File

@ -33,6 +33,7 @@ export const usePublishJob = (jobId?: string): [boolean, Dispatch<SetStateAction
Taro.hideLoading(); Taro.hideLoading();
if (userInfo.bossAuthStatus !== CertificationStatusType.Success) { if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
console.log('哈哈哈', jobId);
store.dispatch(cacheJobId(jobId)); store.dispatch(cacheJobId(jobId));
navigateTo(PageUrl.CertificationStart); navigateTo(PageUrl.CertificationStart);
} }
@ -42,13 +43,14 @@ export const usePublishJob = (jobId?: string): [boolean, Dispatch<SetStateAction
const errorCode = e.errorCode; const errorCode = e.errorCode;
const errorMsg = e.errorMsg || e.info?.() || e.message; const errorMsg = e.errorMsg || e.info?.() || e.message;
collectEvent(CollectEventName.PUBLISH_OPEN_JOB_FAILED, { jobId, error: errorMsg }); collectEvent(CollectEventName.PUBLISH_OPEN_JOB_FAILED, { jobId, error: errorMsg });
if (errorCode === RESPONSE_ERROR_CODE.INSUFFICIENT_FREE_BALANCE) { if (
errorCode === RESPONSE_ERROR_CODE.INSUFFICIENT_FREE_BALANCE ||
errorCode === RESPONSE_ERROR_CODE.BOSS_VIP_EXPIRED
) {
setShowBuy(true); setShowBuy(true);
} else if (errorCode === RESPONSE_ERROR_CODE.INSUFFICIENT_BALANCE) { } else if (errorCode === RESPONSE_ERROR_CODE.INSUFFICIENT_BALANCE) {
Toast.info('您购买的产品已耗尽使用次数'); Toast.info('您购买的产品已耗尽使用次数');
setShowBuy(true); setShowBuy(true);
} else if (errorCode === RESPONSE_ERROR_CODE.BOSS_VIP_EXPIRED) {
Toast.info('该通告已到期,请创建新通告', 3000);
} else { } else {
Toast.info(errorMsg || '发布失败请重试', 3000); Toast.info(errorMsg || '发布失败请重试', 3000);
} }

View File

@ -152,6 +152,7 @@ export default function Certification() {
const handlePublishJob = useCallback(async () => { const handlePublishJob = useCallback(async () => {
try { try {
Taro.showLoading(); Taro.showLoading();
console.log('哈哈哈', cachedJobId);
await postPublishJob(cachedJobId!); await postPublishJob(cachedJobId!);
await Toast.success('通告发布成功', 1500, true); await Toast.success('通告发布成功', 1500, true);
store.dispatch(clearCachedJobId()); store.dispatch(clearCachedJobId());

View File

@ -142,6 +142,7 @@ export default function Job() {
inviteCode, inviteCode,
path: PageUrl.Job, path: PageUrl.Job,
params: sortType === SortType.CREATE_TIME ? { sortType } : {}, params: sortType === SortType.CREATE_TIME ? { sortType } : {},
title: sortType === SortType.CREATE_TIME ? '今日春节岗位已更新,快来看看' : '',
}); });
}); });