feat: 广告还有角色异常报错
This commit is contained in:
@ -271,9 +271,11 @@ export default function JobDetail() {
|
||||
}, []);
|
||||
|
||||
useLoad(async () => {
|
||||
switchRoleType(RoleType.Anchor);
|
||||
const query = getPageQuery<Pick<JobDetails, 'id'> & { c: string; share: string }>();
|
||||
|
||||
const query = getPageQuery<Pick<JobDetails, 'id'> & { c: string }>();
|
||||
if (query?.share === 'true') {
|
||||
switchRoleType(RoleType.Anchor);
|
||||
}
|
||||
getInviteCodeFromQueryAndUpdate(query);
|
||||
const jobId = query?.id;
|
||||
if (!jobId) {
|
||||
|
||||
@ -15,7 +15,7 @@ import useLocation from '@/hooks/use-location';
|
||||
import { MaterialProfile } from '@/types/material';
|
||||
import { logWithPrefix } from '@/utils/common';
|
||||
import { collectEvent } from '@/utils/event';
|
||||
import { isFullTimePriceRequired, isPartTimePriceRequired, setSkipPrejobAction } from '@/utils/job';
|
||||
import { isFullTimePriceRequired, isPartTimePriceRequired } from '@/utils/job';
|
||||
import { updateProfile, subscribeMaterialMessage } from '@/utils/material';
|
||||
import { navigateBack } from '@/utils/route';
|
||||
import Toast from '@/utils/toast';
|
||||
@ -110,7 +110,6 @@ export default function MaterialCreateProfile() {
|
||||
// 发起订阅不能在异步任务中,保证是第一个
|
||||
await Promise.all([subscribeMaterialMessage(), updateProfile(data)]);
|
||||
}
|
||||
setSkipPrejobAction();
|
||||
Taro.eventCenter.trigger(EventName.CREATE_PROFILE);
|
||||
nextType ? setGroupType(nextType) : navigateBack(2);
|
||||
} catch (e) {
|
||||
|
||||
@ -167,6 +167,9 @@ export default function MessageChat() {
|
||||
) {
|
||||
tips = '今日申请交换联系方式次数已用完,当前每日限制为5次';
|
||||
duration = 3000;
|
||||
} else if (errorCode === RESPONSE_ERROR_CODE.CHAT_MSG_SEND_NOT_ALLOW) {
|
||||
tips = '账号已在另一台设备上切换身份,本条消息未发送成功,请在本设备重新切换身份后,再发送消息';
|
||||
duration = 5000;
|
||||
}
|
||||
tips.length > 7 ? Toast.info(tips, duration) : Toast.error(tips, duration);
|
||||
}
|
||||
|
||||
@ -21,9 +21,9 @@
|
||||
padding-top: var(--tabs-wrap-height);
|
||||
}
|
||||
|
||||
.taroify-tabs__nav .taroify-tabs__tab:nth-child(2) .taroify-badge-wrapper {
|
||||
left: 18px;
|
||||
}
|
||||
//.taroify-tabs__nav .taroify-tabs__tab:nth-child(2) .taroify-badge-wrapper {
|
||||
// left: 18px;
|
||||
//}
|
||||
}
|
||||
|
||||
&__star {
|
||||
|
||||
@ -106,7 +106,7 @@ export default function BizService() {
|
||||
title={
|
||||
<>
|
||||
主播群
|
||||
<Image src={require('@/statics/svg/star.svg')} className={`${PREFIX}__star`} />
|
||||
{/*<Image src={require('@/statics/svg/star.svg')} className={`${PREFIX}__star`} />*/}
|
||||
</>
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user