|
|
|
@ -25,7 +25,8 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
bank_account_editable: false,
|
|
|
|
|
leader: false,
|
|
|
|
|
bank_account: undefined,
|
|
|
|
|
certification: 1
|
|
|
|
|
certification: 1,
|
|
|
|
|
userdata:undefined
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -35,6 +36,33 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
this.getdata();
|
|
|
|
|
this.GetawardinformationAPI();
|
|
|
|
|
let query=this.props.location&&this.props.location.search;
|
|
|
|
|
const types = query.split('user_id=')
|
|
|
|
|
let userid;
|
|
|
|
|
if(types[1]===undefined){
|
|
|
|
|
userid=this.props.user&&this.props.user.user_id;
|
|
|
|
|
}else{
|
|
|
|
|
userid=types[1];
|
|
|
|
|
}
|
|
|
|
|
this.GetuseridApi(userid);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GetuseridApi=(id)=>{
|
|
|
|
|
//个人信息API 获取个人信息
|
|
|
|
|
let url = `/users/accounts/${id}.json`;
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
if (result.data) {
|
|
|
|
|
console.log("GetuseridApi");
|
|
|
|
|
console.log(result.data);
|
|
|
|
|
this.setState({
|
|
|
|
|
userdata:result.data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GetawardinformationAPI = () => {
|
|
|
|
@ -344,7 +372,7 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
if(admins===undefined||admins===null) {
|
|
|
|
|
admins === false;
|
|
|
|
|
}
|
|
|
|
|
const {updating, seconds, secondsFlag, basicInfo, phonebool, emailbool, certification, formationdata, bank_account_editable, leader, bank_account} = this.state
|
|
|
|
|
const {updating, seconds, secondsFlag,userdata, basicInfo, phonebool, emailbool, certification, formationdata, bank_account_editable, leader, bank_account} = this.state
|
|
|
|
|
return (
|
|
|
|
|
<div className="flexdidirectionss mt17">
|
|
|
|
|
{this.state.certification === 1 ?
|
|
|
|
@ -366,10 +394,10 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
<div className="flexdirections ">
|
|
|
|
|
<p className="fontcolorsyslhei font-16 w98"><span className="fontcolorsysl font-16">*</span><span>实名信息</span>
|
|
|
|
|
</p>
|
|
|
|
|
{basicInfo && basicInfo.authentication == "uncertified" ?
|
|
|
|
|
{userdata && userdata.authentication == "uncertified" ?
|
|
|
|
|
<p className="fontcolorsyslhui font-14 w200">通过实名认证后才能获得证书</p> : ""
|
|
|
|
|
}
|
|
|
|
|
{basicInfo && basicInfo.authentication == "uncertified" ?
|
|
|
|
|
{userdata && userdata.authentication == "uncertified" ?
|
|
|
|
|
<p className="fontcolorsysllan font-14 ml3 mycompitcursor"
|
|
|
|
|
onClick={() => this.checkBasicInfo(1)}>立即认证</p> : ""
|
|
|
|
|
}
|
|
|
|
@ -377,11 +405,11 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flexdirections ml38 mt23">
|
|
|
|
|
<p className="fontcolorsyslhui1">姓名:</p>
|
|
|
|
|
<p className="fontcolorsyslhei flexdirections">{basicInfo && basicInfo.name}
|
|
|
|
|
<p className="fontcolorsyslhei flexdirections">{userdata && userdata.name}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.authentication == "uncertified" ? "" :
|
|
|
|
|
basicInfo && basicInfo.authentication == "applying" ?
|
|
|
|
|
userdata && userdata.authentication == "uncertified" ? "" :
|
|
|
|
|
userdata && userdata.authentication == "applying" ?
|
|
|
|
|
<p className="flexdirections"><p className="iconfont icon-tishi colorgreenorg font-14 ml20"></p><p
|
|
|
|
|
className="colorgreenorg font-14 ml6">待审核!</p><p
|
|
|
|
|
className="fontcolorsysllan borcolors font-12 w64 mycompitcursor"
|
|
|
|
@ -397,19 +425,19 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
|
|
|
|
|
<div className="flexdirections ml38 mt19">
|
|
|
|
|
<p className="fontcolorsyslhui1">性别:</p>
|
|
|
|
|
<p className="fontcolorsyslhei"> {basicInfo && basicInfo.gender == 0 ? "男" : "女"}</p>
|
|
|
|
|
<p className="fontcolorsyslhei"> {userdata && userdata.gender == 0 ? "男" : "女"}</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="flexdirections mt36 ">
|
|
|
|
|
<p className="fontcolorsyslhei font-16 w98"><span className="fontcolorsysl font-16">*</span><span>职业信息</span>
|
|
|
|
|
</p>
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.professional_certification == "uncertified" ?
|
|
|
|
|
userdata && userdata.professional_certification == "uncertified" ?
|
|
|
|
|
<p className="fontcolorsyslhui font-14 w200">通过职业认证后才能获得证书</p>
|
|
|
|
|
|
|
|
|
|
: ""}
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.professional_certification == "uncertified" ?
|
|
|
|
|
userdata && userdata.professional_certification == "uncertified" ?
|
|
|
|
|
<p className="fontcolorsysllan font-14 ml3 mycompitcursor" onClick={() => this.checkBasicInfo(2)}>立即认证</p>
|
|
|
|
|
|
|
|
|
|
: ""}
|
|
|
|
@ -418,11 +446,11 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
<div className="flexdirections ml38 mt23">
|
|
|
|
|
<p className="fontcolorsyslhui1">职业:</p>
|
|
|
|
|
<p
|
|
|
|
|
className="fontcolorsyslhei flexdirections">{basicInfo && basicInfo.identity && identityMap[basicInfo.identity]}
|
|
|
|
|
className="fontcolorsyslhei flexdirections">{userdata && userdata.identity && identityMap[userdata.identity]}
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.professional_certification == "uncertified" ?
|
|
|
|
|
userdata && userdata.professional_certification == "uncertified" ?
|
|
|
|
|
"" :
|
|
|
|
|
basicInfo && basicInfo.professional_certification == "applying" ?
|
|
|
|
|
userdata && userdata.professional_certification == "applying" ?
|
|
|
|
|
<p className="flexdirections">
|
|
|
|
|
<p className="iconfont icon-tishi colorgreenorg font-14 ml20"></p><p
|
|
|
|
|
className="colorgreenorg font-14 ml6">待审核!</p><p
|
|
|
|
@ -442,16 +470,16 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flexdirections ml38 mt19">
|
|
|
|
|
<p
|
|
|
|
|
className="fontcolorsyslhui1">{basicInfo && basicInfo.technical_title ? "职称:" : ""}{basicInfo && basicInfo.student_id ? "学号:" : ""}</p>
|
|
|
|
|
<p className="fontcolorsyslhei">{basicInfo && (basicInfo.technical_title || basicInfo.student_id)}</p>
|
|
|
|
|
className="fontcolorsyslhui1">{userdata && userdata.technical_title ? "职称:" : ""}{userdata && userdata.student_id ? "学号:" : ""}</p>
|
|
|
|
|
<p className="fontcolorsyslhei">{userdata && (userdata.technical_title || userdata.student_id)}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flexdirections ml38 mt19">
|
|
|
|
|
<p className="fontcolorsyslhui1">学校:</p>
|
|
|
|
|
<p className="fontcolorsyslhei">{basicInfo && basicInfo.school_name}</p>
|
|
|
|
|
<p className="fontcolorsyslhei">{userdata && userdata.school_name}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flexdirections ml38 mt19">
|
|
|
|
|
<p className="fontcolorsyslhui1">院系:</p>
|
|
|
|
|
<p className="fontcolorsyslhei"> {basicInfo && basicInfo.department_name}</p>
|
|
|
|
|
<p className="fontcolorsyslhei"> {userdata && userdata.department_name}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flexdirections mt36 ">
|
|
|
|
|
<p className="fontcolorsyslhei font-16 w98"><span className="fontcolorsysl font-16">*</span><span>联系方式</span>
|
|
|
|
@ -460,13 +488,13 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
<div className="flexdirections ml38 mt23">
|
|
|
|
|
<p className="fontcolorsyslhui1 w60 ">手机号:</p>
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.phone ?
|
|
|
|
|
<p className="fontcolorsyslhei w200 ">{basicInfo && basicInfo.phone}</p>
|
|
|
|
|
userdata && userdata.phone ?
|
|
|
|
|
<p className="fontcolorsyslhei w200 ">{userdata && userdata.phone}</p>
|
|
|
|
|
:
|
|
|
|
|
<p className="fontcolorsysljin w200 ">未绑定</p>
|
|
|
|
|
}
|
|
|
|
|
<p className="fontcolorsysllan mycompitcursor"
|
|
|
|
|
onClick={() => this.phonebools()}>{basicInfo && basicInfo.phone ? (phonebool === false ? "更换" : "") : (phonebool === false ? "立即绑定" : "")}</p>
|
|
|
|
|
onClick={() => this.phonebools()}>{userdata && userdata.phone ? (phonebool === false ? "更换" : "") : (phonebool === false ? "立即绑定" : "")}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{/*手机号绑定*/}
|
|
|
|
|
{
|
|
|
|
@ -480,9 +508,9 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
|
|
|
|
|
<div className="flexdirections ml38 mt19">
|
|
|
|
|
<p className="fontcolorsyslhui1 w60">Email:</p>
|
|
|
|
|
<p className="fontcolorsyslhei w200">{basicInfo && basicInfo.mail}</p>
|
|
|
|
|
<p className="fontcolorsyslhei w200">{userdata && userdata.mail}</p>
|
|
|
|
|
<p className="fontcolorsysllan mycompitcursor"
|
|
|
|
|
onClick={() => this.emailbools()}>{basicInfo && basicInfo.mail ? (emailbool === false ? "更换" : "") : (emailbool === false ? "立即绑定" : "")}</p>
|
|
|
|
|
onClick={() => this.emailbools()}>{userdata && userdata.mail ? (emailbool === false ? "更换" : "") : (emailbool === false ? "立即绑定" : "")}</p>
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
emailbool === false ? "" :
|
|
|
|
|