import { useState, useEffect, useRef } from 'react'; import { ProList, PageContainer } from '@ant-design/pro-components'; import { ConfigProvider, Button, Flex, Card, Space, Tag, Avatar, Row, Col, Modal, Typography, Divider, Upload, Pagination, Anchor } from 'antd'; import { VideoCameraAddOutlined, PlusOutlined, EditOutlined, DownloadOutlined, FolderViewOutlined } from '@ant-design/icons'; import { useModel, connect, history, Link } from 'umi'; import './index.module.less' import he from 'he' import { Imageprefix } from '@/constants/index' import { GetJobseekerDetail, GetJobapplicantContactdetail } from '@/services/apis/resume' const HomeNewJob: React.FC = ({ bgcolor, fontcolor, id }: any) => { const [detail, setDetail] = useState({ mobile: '13215816085', email: '12131313@126.com', seekername: 'XXX' }) const [list, setList] = useState([{}, {}]) const [total, setTotal] = useState(0) const [page, setPage] = useState(1) const [pageSize, setPageSize] = useState(7) const [bgColor, setBgColor] = useState(bgcolor) const [fontColor, setFontColor] = useState(fontcolor) useEffect(() => { GetJobseekerDetail({ customer_id: id ? id : Number(localStorage.getItem('customerid')) }).then(res => { res.data.introduction = he.decode(res.data.introduction) setDetail(res.data) }) }, []); useEffect(() => { setBgColor(bgcolor) }, [bgcolor]); useEffect(() => { setFontColor(fontcolor) }, [fontcolor]); return ( <>

{detail.seekername}

求职意向: {detail.other_positions}、{ detail.desire_positions && detail.desire_positions.length > 0 && detail.desire_positions.map((item, index) => item.level2_txt).join('、') }

年龄:{detail.age}岁 民族: {detail.ethnicity_txt} 联系方式: {detail.mobile} { localStorage.getItem('role') == 'company' && }
籍贯:{detail.native_place_txt} 政治面貌: {detail.political_status_txt} 邮箱:{detail.email}
英语:{detail.english_txt} 粤语:{detail.mandarin_txt} 国语:{detail.cantonese_txt}
计算机能力:{detail.computer_skills} 交通工具:{detail.vehicle_type_txt} 驾照类型:{detail.drive_type}
到岗日期: {detail.available_date_txt} 薪资要求: {detail.salary_range_txt} 工作经验: {detail.work_experience}年

个人简介

{
}

教育经历

{ detail.trainings && detail.trainings.map((item, index) => ( )) }
{item.start_year}.{item.start_month}至{item.end_year}.{item.end_month} {item.school_or_institution} {item.major}

工作经历

{ detail.experiences && detail.experiences.length > 0 && detail.experiences.map((item, index) => ( )) }
{item.start_year}.{item.start_month}至{item.end_year}.{item.end_month} {item.company_name} {item.position} {item.reason_for_leaving}

荣誉证书

{ detail.certificates && detail.certificates.map((item, index) => item.name).join('、') }
); }; export default HomeNewJob;