feat:
This commit is contained in:
@ -24,28 +24,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__empty-tips {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
padding-top: 218px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
&__icon {
|
||||
width: 386px;
|
||||
height: 278px;
|
||||
}
|
||||
|
||||
&__describe {
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
line-height: 40px;
|
||||
color: @blColor;
|
||||
margin-top: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
&__footer {
|
||||
width: 100%;
|
||||
@ -57,4 +35,4 @@
|
||||
margin: 0 24px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
import { Button, Image } from '@tarojs/components';
|
||||
import { Button } from '@tarojs/components';
|
||||
import { NodesRef } from '@tarojs/taro';
|
||||
|
||||
import { Tabs } from '@taroify/core';
|
||||
import classNames from 'classnames';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useCallback, useState } from 'react';
|
||||
|
||||
import JobManageList, { IJobManageListProps } from '@/components/job-manage-list';
|
||||
import SafeBottomPadding from '@/components/safe-bottom-padding';
|
||||
@ -57,35 +56,8 @@ const tab2Status = (tabType: JobManageType) => {
|
||||
}
|
||||
};
|
||||
|
||||
const EmptyTips = (props: { className?: string; height?: number }) => {
|
||||
const { className, height } = props;
|
||||
return (
|
||||
<div className={classNames(`${PREFIX}__empty-tips`, className)} style={height ? { height } : undefined}>
|
||||
<Image className={`${PREFIX}__empty-tips__icon`} src={require('@/statics/svg/empty-box.svg')} mode="aspectFit" />
|
||||
<div className={`${PREFIX}__empty-tips__describe`}>当前还没有通告</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
function ListWrapper(props: IJobManageListProps) {
|
||||
const { className, listHeight, visible } = props;
|
||||
const [isEmpty, setIsEmpty] = useState(false);
|
||||
|
||||
const handleListEmpty = useCallback(() => {
|
||||
setIsEmpty(true);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (visible) {
|
||||
setIsEmpty(false);
|
||||
}
|
||||
}, [visible]);
|
||||
|
||||
if (isEmpty) {
|
||||
return <EmptyTips className={className} height={listHeight} />;
|
||||
}
|
||||
|
||||
return <JobManageList {...props} onListEmpty={handleListEmpty} />;
|
||||
return <JobManageList {...props} />;
|
||||
}
|
||||
|
||||
export default function CertificationManage() {
|
||||
|
||||
@ -35,7 +35,12 @@ export default function GroupDetail() {
|
||||
{operator && operator.groupQrCode ? (
|
||||
<Fragment>
|
||||
<div className={`${PREFIX}__text`}>长按并识别二维码,邀你进主播通告群</div>
|
||||
<Image className={`${PREFIX}__qrcode`} src={operator?.groupQrCode} showMenuByLongpress mode="aspectFill" />
|
||||
<Image
|
||||
className={`${PREFIX}__qrcode`}
|
||||
src={operator?.contactQrCode}
|
||||
showMenuByLongpress
|
||||
mode="aspectFill"
|
||||
/>
|
||||
</Fragment>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Button, Image } from '@tarojs/components';
|
||||
import Taro from '@tarojs/taro';
|
||||
import Taro, { useLoad } from '@tarojs/taro';
|
||||
|
||||
import { Arrow } from '@taroify/icons';
|
||||
import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
|
||||
import { EventName, OpenSource, PageUrl } from '@/constants/app';
|
||||
import { CITY_CODE_TO_NAME_MAP } from '@/constants/city';
|
||||
@ -11,7 +11,7 @@ import useUserInfo from '@/hooks/use-user-info';
|
||||
import { StaffInfo } from '@/types/partner';
|
||||
import { copy } from '@/utils/common';
|
||||
import { getStaffInfo } from '@/utils/partner';
|
||||
import { navigateTo } from '@/utils/route';
|
||||
import { getPageQuery, navigateTo } from '@/utils/route';
|
||||
import './index.less';
|
||||
|
||||
const PREFIX = 'invite-operations';
|
||||
@ -21,6 +21,13 @@ export default function InviteOperations() {
|
||||
const userInfo = useUserInfo();
|
||||
const [cityCode, setCityCode] = useState<string>();
|
||||
const [staffInfo, setStaffInfo] = useState<StaffInfo | null>(null);
|
||||
const [isCompany, setIsCompany] = useState<boolean | null>(null);
|
||||
|
||||
const copyText = useMemo(() => {
|
||||
return isCompany
|
||||
? `我的播络ID是:${userInfo.userId},邀你进主播群【企业】`
|
||||
: `我的播络ID是:${userInfo.userId},邀你进群`;
|
||||
}, [userInfo.userId, isCompany]);
|
||||
|
||||
const handleClickCityMenu = useCallback(() => {
|
||||
navigateTo(PageUrl.CitySearch, { city: cityCode || location.cityCode, source: OpenSource.InviteOperations });
|
||||
@ -36,8 +43,8 @@ export default function InviteOperations() {
|
||||
}, []);
|
||||
|
||||
const handleCopy = useCallback(() => {
|
||||
copy(`我的播络ID是:${userInfo.userId},邀你进群`);
|
||||
}, [userInfo.userId]);
|
||||
copy(copyText);
|
||||
}, [copyText]);
|
||||
|
||||
useEffect(() => {
|
||||
Taro.eventCenter.on(EventName.SELECT_CITY, handleCityChange);
|
||||
@ -50,10 +57,11 @@ export default function InviteOperations() {
|
||||
|
||||
useEffect(() => {
|
||||
if (!userInfo.userId) return;
|
||||
if (isCompany === null) return;
|
||||
if (useCopyRef.current) return;
|
||||
handleCopy();
|
||||
useCopyRef.current = true;
|
||||
}, [handleCopy, userInfo.userId]);
|
||||
}, [handleCopy, isCompany, userInfo.userId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!cityCode) return;
|
||||
@ -67,6 +75,11 @@ export default function InviteOperations() {
|
||||
});
|
||||
}, [cityCode]);
|
||||
|
||||
useLoad(async () => {
|
||||
const query = getPageQuery<{ company: number }>();
|
||||
setIsCompany(typeof query.company !== 'undefined');
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={PREFIX}>
|
||||
<div className={`${PREFIX}__main`}>
|
||||
@ -77,7 +90,7 @@ export default function InviteOperations() {
|
||||
<div className={`${PREFIX}__card`}>
|
||||
<div className={`${PREFIX}__h1 center`}>邀请播络运营进带货主播群</div>
|
||||
<div className={`${PREFIX}__h1 center`} style={{ paddingBottom: `48rpx` }}>
|
||||
每邀请进一个群送一个日会员
|
||||
{isCompany ? '每邀请进10个群送一个企业月会员' : '每邀请进一个群送一个日会员'}
|
||||
</div>
|
||||
<div className={`${PREFIX}__edging`}>注:只能邀请带货主播群,请勿邀请其他群</div>
|
||||
</div>
|
||||
@ -92,7 +105,7 @@ export default function InviteOperations() {
|
||||
加运营为好友并将以下信息 <div className="highlight">粘贴发送给运营</div>
|
||||
</div>
|
||||
<div className={`${PREFIX}__action-block`}>
|
||||
<div>我的播络ID是:{userInfo.userId},邀你进群</div>
|
||||
<div>{copyText}</div>
|
||||
<Button className={`${PREFIX}__copy`} onClick={handleCopy}>
|
||||
复制
|
||||
</Button>
|
||||
|
||||
@ -9,7 +9,6 @@ import CommonDialog from '@/components/common-dialog';
|
||||
import DevDiv from '@/components/dev-div';
|
||||
import JobRecommendList from '@/components/job-recommend-list';
|
||||
import { JoinGroupHint } from '@/components/join-group-hint';
|
||||
import LoginButton from '@/components/login-button';
|
||||
import PageLoading from '@/components/page-loading';
|
||||
import { PrejobPopup } from '@/components/prejob-popup';
|
||||
import ProductJobContactDialog from '@/components/product-dialog/job-contact';
|
||||
@ -41,7 +40,6 @@ import { getJumpUrl, getPageQuery, navigateTo } from '@/utils/route';
|
||||
import { getCommonShareMessage } from '@/utils/share';
|
||||
import { formatDate } from '@/utils/time';
|
||||
import Toast from '@/utils/toast';
|
||||
import { isNeedPhone } from '@/utils/user';
|
||||
import './index.less';
|
||||
|
||||
const PREFIX = 'job-detail';
|
||||
@ -74,8 +72,6 @@ const AnchorFooter = (props: { data: JobDetails }) => {
|
||||
const [showMaterialGuide, setShowMaterialGuide] = useState(false);
|
||||
const [productInfo, setProductInfo] = useState<undefined | ProductInfo>();
|
||||
const [productRecord, setProductRecord] = useState<undefined | GetProductIsUnlockResponse>();
|
||||
const userInfo = useUserInfo();
|
||||
const needPhone = isNeedPhone(userInfo);
|
||||
|
||||
const getProductRecord = useCallback(async () => {
|
||||
const result = await requestProductUseRecord(ProductType.VIP, { jobId: data.id });
|
||||
@ -211,21 +207,14 @@ const AnchorFooter = (props: { data: JobDetails }) => {
|
||||
<Button className={`${PREFIX}__share-button`} openType="share">
|
||||
分享
|
||||
</Button>
|
||||
<LoginButton
|
||||
needRefresh
|
||||
onRefresh={handleRefresh}
|
||||
className={`${PREFIX}__contact-publisher`}
|
||||
onClick={handleClickContact}
|
||||
>
|
||||
<Button className={`${PREFIX}__contact-publisher`} onClick={handleClickContact}>
|
||||
{data.isAuthed ? '在线沟通' : '查看联系方式'}
|
||||
{needPhone ? (
|
||||
<div className={`${PREFIX}__contact-publisher-tag`}>登录后可免费报单</div>
|
||||
) : !productRecord && (data.isAuthed || productInfo?.content) ? (
|
||||
{!productRecord && (data.isAuthed || productInfo?.content) ? (
|
||||
<div className={`${PREFIX}__contact-publisher-tag`}>
|
||||
{data.isAuthed ? '急招岗位可免费查看' : productInfo?.content}
|
||||
</div>
|
||||
) : null}
|
||||
</LoginButton>
|
||||
</Button>
|
||||
</div>
|
||||
<div>
|
||||
{showJobContactDialog && (
|
||||
@ -242,6 +231,7 @@ const AnchorFooter = (props: { data: JobDetails }) => {
|
||||
isCreateResume={productInfo?.isCreateResume}
|
||||
onCancel={() => setShowMaterialGuide(false)}
|
||||
onConfirm={handleConfirmPrejob}
|
||||
onRefresh={handleRefresh}
|
||||
/>
|
||||
)}
|
||||
<CommonDialog
|
||||
|
||||
@ -146,6 +146,7 @@ export default function JobPublish() {
|
||||
}, []);
|
||||
|
||||
const refreshJobPublishList = useCallback(() => {
|
||||
console.log('哈哈哈哈触发 refresh job publish list');
|
||||
Taro.eventCenter.trigger(EventName.COMPANY_JOB_PUBLISH_CHANGED);
|
||||
setTimeout(() => {
|
||||
Taro.eventCenter.trigger(EventName.COMPANY_JOB_PUBLISH_CHANGED);
|
||||
@ -214,13 +215,13 @@ export default function JobPublish() {
|
||||
createdJobIdRef.current = jobId;
|
||||
refreshJobPublishList();
|
||||
|
||||
if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
|
||||
// 去认证
|
||||
store.dispatch(cacheJobId(jobId));
|
||||
navigateTo(PageUrl.CertificationStart);
|
||||
Taro.hideLoading();
|
||||
return;
|
||||
}
|
||||
// if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
|
||||
// // 去认证
|
||||
// store.dispatch(cacheJobId(jobId));
|
||||
// navigateTo(PageUrl.CertificationStart);
|
||||
// Taro.hideLoading();
|
||||
// return;
|
||||
// }
|
||||
|
||||
const [time] = await requestProductBalance(ProductType.CompanyPublishJob);
|
||||
if (time <= 0) {
|
||||
@ -249,10 +250,19 @@ export default function JobPublish() {
|
||||
} finally {
|
||||
Taro.hideLoading();
|
||||
}
|
||||
}, [getCreateJobInfo, isUpdate, job, userInfo.bossAuthStatus, refreshJobPublishList]);
|
||||
}, [getCreateJobInfo, isUpdate, job, refreshJobPublishList]);
|
||||
|
||||
const handleNext = useCallback(async () => {
|
||||
Taro.showLoading();
|
||||
|
||||
if (userInfo.bossAuthStatus !== CertificationStatusType.Success) {
|
||||
// 去认证
|
||||
store.dispatch(cacheJobId(createdJobIdRef.current));
|
||||
navigateTo(PageUrl.CertificationStart);
|
||||
Taro.hideLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await postPublishJob(createdJobIdRef.current);
|
||||
refreshJobPublishList();
|
||||
@ -270,7 +280,7 @@ export default function JobPublish() {
|
||||
} finally {
|
||||
Taro.hideLoading();
|
||||
}
|
||||
}, [refreshJobPublishList]);
|
||||
}, [refreshJobPublishList, userInfo.bossAuthStatus]);
|
||||
|
||||
const handleClosePublishJob = useCallback(() => {
|
||||
setShowBuy(false);
|
||||
|
||||
@ -19,7 +19,7 @@ import { logWithPrefix } from '@/utils/common';
|
||||
import { getWxLocation, isNotNeedAuthorizeLocation, requestLocation } from '@/utils/location';
|
||||
import { requestUnreadMessageCount } from '@/utils/message';
|
||||
import { getInviteCodeFromQueryAndUpdate } from '@/utils/partner';
|
||||
import { getJumpUrl, getPageQuery, navigateTo } from '@/utils/route';
|
||||
import { getPageQuery, navigateTo } from '@/utils/route';
|
||||
import { getCommonShareMessage } from '@/utils/share';
|
||||
import Toast from '@/utils/toast';
|
||||
import { getAgreementSigned, setAgreementSigned } from '@/utils/user';
|
||||
@ -138,13 +138,11 @@ export default function Job() {
|
||||
});
|
||||
|
||||
useShareAppMessage(() => {
|
||||
if (sortType === SortType.CREATE_TIME) {
|
||||
return {
|
||||
title: '这里有今日全城新增通告,快来看看',
|
||||
path: getJumpUrl(PageUrl.Job, { sortType, c: inviteCode }),
|
||||
};
|
||||
}
|
||||
return getCommonShareMessage({ inviteCode, path: PageUrl.Job });
|
||||
return getCommonShareMessage({
|
||||
inviteCode,
|
||||
path: PageUrl.Job,
|
||||
params: sortType === SortType.CREATE_TIME ? { sortType } : {},
|
||||
});
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -24,7 +24,7 @@ const COMMENT_IMAGE = 'https://publiccdn.neighbourhood.com.cn/img/delegate-comme
|
||||
export default function BizService() {
|
||||
const inviteCode = useInviteCode();
|
||||
const cityOperators = useCityOperators();
|
||||
const [value, setValue] = useState('0');
|
||||
const [value, setValue] = useState('1');
|
||||
|
||||
const handleClickDelegate = useCallback(() => {
|
||||
navigateTo(PageUrl.GroupDelegatePublish);
|
||||
@ -81,31 +81,31 @@ export default function BizService() {
|
||||
<HomePage type={PageType.BatchPublish}>
|
||||
<div className={PREFIX}>
|
||||
<Tabs className={`${PREFIX}__tabs`} value={value} onChange={handleChange}>
|
||||
<Tabs.TabPane value="0" title="代招">
|
||||
<div className={`${PREFIX}__recruitment`}>
|
||||
<div className={`${PREFIX}__recruitment-card`}>
|
||||
<div className={`${PREFIX}__recruitment-h5`}>服务城市</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>江、沪、皖-上海、南京、合肥</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>粤、闽-广州、深圳、佛山、厦门、福州、泉州</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>京、鲁-北京、青岛</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>鄂、豫、湘、陕-长沙、武汉、郑州、西安</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>川、渝、云-成都、重庆、昆明</div>
|
||||
<div className={`${PREFIX}__recruitment-h5`}>服务方式及收费标准</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>服务方式:提供录屏和基本资料供挑选,挑中安排面试</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>收费标准:安排一场面试200元</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>收费方式:预付费,按安排面试场数扣费</div>
|
||||
<div className={`${PREFIX}__recruitment-h5`}>服务能力</div>
|
||||
<div className={`${PREFIX}__recruitment-body`}>
|
||||
我们在每个城市均有数量众多的主播群,少则几十个,多则上千个,有各种类型和层次的带货主播资源
|
||||
</div>
|
||||
<div className={`${PREFIX}__recruitment-btn-group`}>
|
||||
<Button className={`${PREFIX}__recruitment-btn`} onClick={handleOpenService}>
|
||||
点此咨询
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Tabs.TabPane>
|
||||
{/*<Tabs.TabPane value="0" title="代招">*/}
|
||||
{/* <div className={`${PREFIX}__recruitment`}>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-card`}>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-h5`}>服务城市</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>江、沪、皖-上海、南京、合肥</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>粤、闽-广州、深圳、佛山、厦门、福州、泉州</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>京、鲁-北京、青岛</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>鄂、豫、湘、陕-长沙、武汉、郑州、西安</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>川、渝、云-成都、重庆、昆明</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-h5`}>服务方式及收费标准</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>服务方式:提供录屏和基本资料供挑选,挑中安排面试</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>收费标准:安排一场面试200元</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>收费方式:预付费,按安排面试场数扣费</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-h5`}>服务能力</div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-body`}>*/}
|
||||
{/* 我们在每个城市均有数量众多的主播群,少则几十个,多则上千个,有各种类型和层次的带货主播资源*/}
|
||||
{/* </div>*/}
|
||||
{/* <div className={`${PREFIX}__recruitment-btn-group`}>*/}
|
||||
{/* <Button className={`${PREFIX}__recruitment-btn`} onClick={handleOpenService}>*/}
|
||||
{/* 点此咨询*/}
|
||||
{/* </Button>*/}
|
||||
{/* </div>*/}
|
||||
{/* </div>*/}
|
||||
{/* </div>*/}
|
||||
{/*</Tabs.TabPane>*/}
|
||||
<Tabs.TabPane
|
||||
value="1"
|
||||
title={
|
||||
|
||||
Reference in New Issue
Block a user