feat: update tonggao
This commit is contained in:
13
src/components/employ-type-select/index.tsx
Normal file
13
src/components/employ-type-select/index.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import Select, { ISelectProps } from '@/components/select';
|
||||
import { EmployType, JOB_EMPLOY_TYPE_OPTIONS } from '@/constants/job';
|
||||
|
||||
interface IProps extends Omit<ISelectProps<EmployType>, 'options'> {
|
||||
value: EmployType;
|
||||
}
|
||||
|
||||
function EmployTypeSelect(props: IProps) {
|
||||
const { value: selectValue, onSelect } = props;
|
||||
return <Select options={JOB_EMPLOY_TYPE_OPTIONS} title="类型" value={selectValue} onSelect={onSelect} />;
|
||||
}
|
||||
|
||||
export default EmployTypeSelect;
|
||||
@ -35,6 +35,7 @@ function JobList(props: IJobListProps) {
|
||||
visible = true,
|
||||
cityCode = 'ALL',
|
||||
category = JobType.All,
|
||||
sourceType,
|
||||
employType = EmployType.All,
|
||||
sortType = SortType.RECOMMEND,
|
||||
isFollow = false,
|
||||
@ -114,6 +115,7 @@ function JobList(props: IJobListProps) {
|
||||
category,
|
||||
cityCode,
|
||||
employType,
|
||||
sourceType,
|
||||
sortType,
|
||||
isFollow,
|
||||
isOwner,
|
||||
@ -128,6 +130,7 @@ function JobList(props: IJobListProps) {
|
||||
}, [
|
||||
category,
|
||||
cityCode,
|
||||
sourceType,
|
||||
employType,
|
||||
sortType,
|
||||
isFollow,
|
||||
@ -176,7 +179,7 @@ function JobList(props: IJobListProps) {
|
||||
}
|
||||
};
|
||||
refresh();
|
||||
}, [visible, cityCode, employType, sortType, keyWord, minSalary, maxSalary, blGroupId]);
|
||||
}, [visible, cityCode, employType, sourceType, sortType, keyWord, minSalary, maxSalary, blGroupId]);
|
||||
|
||||
// log('render', `hasMore: ${hasMore}, loadingMore: ${loadingMore}, refreshing: ${refreshing}`);
|
||||
|
||||
|
||||
@ -16,7 +16,6 @@ import { postSubscribe, subscribeMessage } from '@/utils/subscribe';
|
||||
import Toast from '@/utils/toast';
|
||||
|
||||
interface IProps {
|
||||
defaultSelect?: number;
|
||||
onNext: () => void;
|
||||
}
|
||||
|
||||
@ -32,48 +31,48 @@ interface Item {
|
||||
}
|
||||
|
||||
const LIST: Item[] = [
|
||||
// {
|
||||
// id: ProductSpecId.BOSS_VIP_NEW_1,
|
||||
// title: '展示一周',
|
||||
// price: '480播豆',
|
||||
// amt: 48,
|
||||
// badge: '限时体验',
|
||||
// contents: [
|
||||
// { content: '-通告每日优先展示' },
|
||||
// { content: '-每天可查看20个主播详情' },
|
||||
// { content: '-每天可主动联系10个主播' },
|
||||
// // { content: '-播络可代为联系20个主播(高成功率)', highlight: true },
|
||||
// { content: '-有效期一周' },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
id: ProductSpecId.BOSS_VIP_NEW_1,
|
||||
title: '展示一周',
|
||||
id: ProductSpecId.BOSS_VIP_NEW_2,
|
||||
title: '推荐一月',
|
||||
price: '480播豆',
|
||||
amt: 48,
|
||||
badge: '限时体验',
|
||||
contents: [
|
||||
{ content: '-1个通告' },
|
||||
{ content: '-通告每日优先展示' },
|
||||
{ content: '-每天可查看20个主播详情' },
|
||||
{ content: '-每天可自主联系10个主播' },
|
||||
// { content: '-播络可代为联系20个主播(高成功率)', highlight: true },
|
||||
{ content: '-有效期一周' },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: ProductSpecId.BOSS_VIP_NEW_2,
|
||||
title: '展示一月',
|
||||
price: '960播豆',
|
||||
amt: 96,
|
||||
badge: '五折',
|
||||
contents: [
|
||||
{ content: '-1个通告' },
|
||||
{ content: '-每天可查看20个主播详情' },
|
||||
{ content: '-每天可自主联系10个主播' },
|
||||
{ content: '-每天可主动联系10个主播', highlight: true },
|
||||
// { content: '-播络可代为联系20个主播(高成功率)', highlight: true },
|
||||
{ content: '-有效期一个月' },
|
||||
],
|
||||
},
|
||||
// {
|
||||
// id: ProductSpecId.BOSS_VIP_NEW_3,
|
||||
// title: '季会员',
|
||||
// price: '2680播豆',
|
||||
// amt: 268,
|
||||
// badge: '7折',
|
||||
// contents: [
|
||||
// { content: '-1个通告' },
|
||||
// { content: '-每天可查看20个主播详情' },
|
||||
// { content: '-每天可自主联系10个主播' },
|
||||
// { content: '-播络可代为联系60个主播(高成功率)', highlight: true },
|
||||
// { content: '-有效期3个月' },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
id: ProductSpecId.BOSS_VIP_NEW_3,
|
||||
title: '推荐一季',
|
||||
price: '960播豆',
|
||||
amt: 96,
|
||||
badge: '6.7折',
|
||||
contents: [
|
||||
{ content: '-通告每日优先展示' },
|
||||
{ content: '-每天可查看20个主播详情' },
|
||||
{ content: '-每天可主动联系10个主播' },
|
||||
// { content: '-播络可代为联系60个主播(高成功率)', highlight: true },
|
||||
{ content: '-有效期一个季度' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const subscribe = async () => {
|
||||
@ -86,8 +85,8 @@ const subscribe = async () => {
|
||||
};
|
||||
|
||||
export default function CompanyPublishJobBuy(props: IProps) {
|
||||
const { onNext, defaultSelect = 0 } = props;
|
||||
const [selectItem, setSelectItem] = useState(LIST[defaultSelect]);
|
||||
const { onNext } = props;
|
||||
const [selectItem, setSelectItem] = useState(LIST[0]);
|
||||
|
||||
const handleClickItem = useCallback((newSelectItem: Item) => setSelectItem(newSelectItem), []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user