feat:
This commit is contained in:
@ -12,6 +12,11 @@
|
||||
line-height: 48px;
|
||||
margin-bottom: 31px;
|
||||
text-align: center;
|
||||
|
||||
.highlight {
|
||||
color: @blHighlightColor;
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
&__body {
|
||||
|
||||
@ -86,7 +86,10 @@ export function PrejobPopup({ onCancel, isCreateResume, onConfirm, onRefresh }:
|
||||
<Fragment>
|
||||
<Popup rounded className={PREFIX} placement="bottom" open={openPopup} onClose={onCancel}>
|
||||
<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`}>
|
||||
{GET_CONTACT_TYPE_OPTIONS.map(option => {
|
||||
if (clicked && option.type === GET_CONTACT_TYPE.GROUP) {
|
||||
|
||||
@ -105,7 +105,6 @@ function ProductJobContactDialog(props: IProps) {
|
||||
const init = async () => {
|
||||
try {
|
||||
Taro.showLoading({ mask: true, title: '加载中...' });
|
||||
|
||||
log('init with productRecord', productRecord);
|
||||
log('init with productInfo', productInfo);
|
||||
|
||||
|
||||
@ -153,10 +153,18 @@ export default function JobBuy(props: IProps) {
|
||||
) : (
|
||||
<Fragment>
|
||||
<div className={`${PREFIX}__job-buy__header`}>
|
||||
<div>开通会员即可查看联系方式</div>
|
||||
<div>今日免费查看次数</div>
|
||||
<div className="highlight">已用完</div>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
@ -33,6 +33,7 @@ export const usePublishJob = (jobId?: string): [boolean, Dispatch<SetStateAction
|
||||
Taro.hideLoading();
|
||||
|
||||
if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
|
||||
console.log('哈哈哈', jobId);
|
||||
store.dispatch(cacheJobId(jobId));
|
||||
navigateTo(PageUrl.CertificationStart);
|
||||
}
|
||||
@ -42,13 +43,14 @@ export const usePublishJob = (jobId?: string): [boolean, Dispatch<SetStateAction
|
||||
const errorCode = e.errorCode;
|
||||
const errorMsg = e.errorMsg || e.info?.() || e.message;
|
||||
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);
|
||||
} else if (errorCode === RESPONSE_ERROR_CODE.INSUFFICIENT_BALANCE) {
|
||||
Toast.info('您购买的产品已耗尽使用次数');
|
||||
setShowBuy(true);
|
||||
} else if (errorCode === RESPONSE_ERROR_CODE.BOSS_VIP_EXPIRED) {
|
||||
Toast.info('该通告已到期,请创建新通告', 3000);
|
||||
} else {
|
||||
Toast.info(errorMsg || '发布失败请重试', 3000);
|
||||
}
|
||||
|
||||
@ -152,6 +152,7 @@ export default function Certification() {
|
||||
const handlePublishJob = useCallback(async () => {
|
||||
try {
|
||||
Taro.showLoading();
|
||||
console.log('哈哈哈', cachedJobId);
|
||||
await postPublishJob(cachedJobId!);
|
||||
await Toast.success('通告发布成功', 1500, true);
|
||||
store.dispatch(clearCachedJobId());
|
||||
|
||||
@ -142,6 +142,7 @@ export default function Job() {
|
||||
inviteCode,
|
||||
path: PageUrl.Job,
|
||||
params: sortType === SortType.CREATE_TIME ? { sortType } : {},
|
||||
title: sortType === SortType.CREATE_TIME ? '今日春节岗位已更新,快来看看' : '',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user