|
|
|
@ -53,6 +53,9 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getdata = () => {
|
|
|
|
|
this.setState({
|
|
|
|
|
certification: 3
|
|
|
|
|
})
|
|
|
|
|
let url = `/users/accounts/${this.props.current_user.login}.json`;
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
if (result.data) {
|
|
|
|
@ -64,7 +67,8 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
basicInfo: Object.assign({}, {...result.data}, {
|
|
|
|
|
avatar_url: `${result.data.avatar_url}`,
|
|
|
|
|
gender: result.data.gender == null || result.data.gender == undefined ? 0 : result.data.gender
|
|
|
|
|
})
|
|
|
|
|
}),
|
|
|
|
|
certification: 3
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -277,6 +281,14 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//取消认证弹框
|
|
|
|
|
onCancel = () => {
|
|
|
|
|
this.getdata();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//撤销认证
|
|
|
|
|
Cancellationofapplication = (index) => {
|
|
|
|
|
let url = ""
|
|
|
|
@ -294,7 +306,7 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
} else if (index === 2) {
|
|
|
|
|
this.props.showNotification('撤销职业认证成功')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.getdata();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
@ -315,16 +327,21 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
console.log(emailbool);
|
|
|
|
|
return (
|
|
|
|
|
<div className="flexdidirectionss mt17">
|
|
|
|
|
{this.state.certification === 1 ? <RealNameCertificationModal {...this.props} {...this.state}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal1 = form}
|
|
|
|
|
certification={certification}
|
|
|
|
|
Getdata={() => this.getdata()}
|
|
|
|
|
{this.state.certification === 1 ?
|
|
|
|
|
<RealNameCertificationModal {...this.props} {...this.state} basicInfo={this.state.basicInfo}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal1 = form}
|
|
|
|
|
certification={certification}
|
|
|
|
|
Getdata={() => this.getdata()}
|
|
|
|
|
onCancel={() => this.onCancel()}
|
|
|
|
|
></RealNameCertificationModal> : ""}
|
|
|
|
|
|
|
|
|
|
{this.state.certification === 2 ? <RealNameCertificationModal {...this.props} {...this.state}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal2 = form}
|
|
|
|
|
certification={certification}
|
|
|
|
|
Getdata={() => this.getdata()}
|
|
|
|
|
{this.state.certification === 2 ?
|
|
|
|
|
<RealNameCertificationModal {...this.props} {...this.state} basicInfo={this.state.basicInfo}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal2 = form}
|
|
|
|
|
certification={certification}
|
|
|
|
|
Getdata={() => this.getdata()}
|
|
|
|
|
onCancel={() => this.onCancel()}
|
|
|
|
|
|
|
|
|
|
></RealNameCertificationModal> : ""}
|
|
|
|
|
<div className="flexdirections ">
|
|
|
|
|
<p className="fontcolorsyslhei font-16 w98"><span className="fontcolorsysl font-16">*</span><span>实名信息</span>
|
|
|
|
|