|
|
|
@ -15,6 +15,7 @@ class AccountCertification extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkBasicInfo = (index) => {
|
|
|
|
|
if (index == 1) {
|
|
|
|
|
if ( this.props.basicInfo.base_info_completed == true) {
|
|
|
|
|
this.showRealNameCertificationModal(index)
|
|
|
|
|
} else {
|
|
|
|
@ -26,25 +27,34 @@ class AccountCertification extends Component {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else if (index == 2) {
|
|
|
|
|
this.showRealNameCertificationModal(index)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showRealNameCertificationModal = (index) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
certification:index,
|
|
|
|
|
}, () => {
|
|
|
|
|
if (index == 1) {
|
|
|
|
|
this.realNameCertificationModal1.setVisible(true)
|
|
|
|
|
} else if (index == 2) {
|
|
|
|
|
this.realNameCertificationModal2.setVisible(true)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.realNameCertificationModal.setVisible(true)
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {certification}=this.state
|
|
|
|
|
let {basicInfo} = this.props;
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
{this.state.certification===1?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification}
|
|
|
|
|
{this.state.certification===1?<RealNameCertificationModal {...this.props}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal1 = form} certification={certification}
|
|
|
|
|
></RealNameCertificationModal>:""}
|
|
|
|
|
|
|
|
|
|
{this.state.certification===2?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification}
|
|
|
|
|
{this.state.certification===2?<RealNameCertificationModal {...this.props}
|
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal2 = form} certification={certification}
|
|
|
|
|
></RealNameCertificationModal>:""}
|
|
|
|
|
<div className="basicForm">
|
|
|
|
|
<style>{`
|
|
|
|
|