|
|
@@ -112,40 +112,45 @@ const HomePage: React.FC = () => { |
|
|
|
<Row gutter={[16, 16]}> |
|
|
|
{ |
|
|
|
detail && detail.companys && detail.companys.length > 0 && detail.companys.map((item, index) => (<> |
|
|
|
<Col span={8}> |
|
|
|
{ |
|
|
|
item.company_name && (<> |
|
|
|
<Space size={0} direction='vertical' style={{ width: '100%', padding: 20, borderRadius: 8, backgroundColor: '#ffffff' }}> |
|
|
|
<Space size={10} direction='vertical'> |
|
|
|
<div style={{ fontSize: '24px', fontWeight: 'bold' }}> |
|
|
|
{item.company_name} |
|
|
|
</div> |
|
|
|
</Space> |
|
|
|
<Divider></Divider> |
|
|
|
<Space size={10} direction='vertical' style={{ width: '100%', minHeight: 126 }}> |
|
|
|
{ |
|
|
|
item.jobs && item.jobs.length > 0 && item.jobs.map((childItem, childIndex) => (<> |
|
|
|
<Link to={{ pathname: `/talent/job/detail/?id=${childItem.id}` }} target="_blank" style={{ color: '#000000' }}> |
|
|
|
<Flex justify='space-between' align='center'> |
|
|
|
<div>{childItem.job_name}</div> |
|
|
|
<Button size='small'>投递该职位</Button> |
|
|
|
</Flex> |
|
|
|
{ |
|
|
|
item.company_name && <Col span={8}> |
|
|
|
{ |
|
|
|
item.company_name && (<> |
|
|
|
<Space size={0} direction='vertical' style={{ width: '100%', padding: 20, borderRadius: 8, backgroundColor: '#ffffff' }}> |
|
|
|
<Space size={10} direction='vertical'> |
|
|
|
<div style={{ fontSize: '24px', fontWeight: 'bold' }}> |
|
|
|
<Link to={{ pathname: `/talent/company/detail/?id=${item.id}` }} target="_blank" style={{ color: '#000000' }}> |
|
|
|
{item.company_name} |
|
|
|
</Link> |
|
|
|
|
|
|
|
</>)) |
|
|
|
} |
|
|
|
</div> |
|
|
|
</Space> |
|
|
|
<Divider></Divider> |
|
|
|
<Space size={10} direction='vertical' style={{ width: '100%', minHeight: 126 }}> |
|
|
|
{ |
|
|
|
item.jobs && item.jobs.length > 0 && item.jobs.slice(0, 4).map((childItem, childIndex) => (<> |
|
|
|
<Link to={{ pathname: `/talent/job/detail/?id=${childItem.id}` }} target="_blank" style={{ color: '#000000' }}> |
|
|
|
<Flex justify='space-between' align='center'> |
|
|
|
<div>{childItem.job_name}</div> |
|
|
|
<Button size='small'>投递该职位</Button> |
|
|
|
</Flex> |
|
|
|
</Link> |
|
|
|
|
|
|
|
</>)) |
|
|
|
} |
|
|
|
</Space> |
|
|
|
|
|
|
|
<Link to={{ pathname: `/talent/company/detail/?id=${item.id}` }} target="_blank" style={{ color: '#000000' }}> |
|
|
|
<Tag>共{item.jobs && item.jobs.length ? item.jobs.length : 0}个职位</Tag> |
|
|
|
</Link> |
|
|
|
</Space> |
|
|
|
<Tag>共{item.jobs && item.jobs.length ? item.jobs.length : 0}个职位</Tag> |
|
|
|
</>) |
|
|
|
} |
|
|
|
|
|
|
|
</Space> |
|
|
|
</>) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
} |
|
|
|
</>)) |
|
|
|
} |
|
|
|
|
|
|
|
</Row> |
|
|
|
|
|
|
|
</>, |