|
|
@ -15,36 +15,46 @@ class AccountCertification extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
checkBasicInfo = (index) => {
|
|
|
|
checkBasicInfo = (index) => {
|
|
|
|
if (this.props.basicInfo.base_info_completed == true) {
|
|
|
|
if (index == 1) {
|
|
|
|
|
|
|
|
if ( this.props.basicInfo.base_info_completed == true) {
|
|
|
|
|
|
|
|
this.showRealNameCertificationModal(index)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.props.confirm({
|
|
|
|
|
|
|
|
okText: `立即完善`,
|
|
|
|
|
|
|
|
content: `请先完善基本信息`,
|
|
|
|
|
|
|
|
onOk: () => {
|
|
|
|
|
|
|
|
this.props.history.push('/account/profile/edit')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (index == 2) {
|
|
|
|
this.showRealNameCertificationModal(index)
|
|
|
|
this.showRealNameCertificationModal(index)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.props.confirm({
|
|
|
|
|
|
|
|
okText: `立即完善`,
|
|
|
|
|
|
|
|
content: `请先完善基本信息`,
|
|
|
|
|
|
|
|
onOk: () => {
|
|
|
|
|
|
|
|
this.props.history.push('/account/profile/edit')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
showRealNameCertificationModal = (index) => {
|
|
|
|
showRealNameCertificationModal = (index) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
certification:index,
|
|
|
|
certification:index,
|
|
|
|
|
|
|
|
}, () => {
|
|
|
|
|
|
|
|
if (index == 1) {
|
|
|
|
|
|
|
|
this.realNameCertificationModal1.setVisible(true)
|
|
|
|
|
|
|
|
} else if (index == 2) {
|
|
|
|
|
|
|
|
this.realNameCertificationModal2.setVisible(true)
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.realNameCertificationModal.setVisible(true)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {certification}=this.state
|
|
|
|
let {certification}=this.state
|
|
|
|
let {basicInfo} = this.props;
|
|
|
|
let {basicInfo} = this.props;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{this.state.certification===1?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props}
|
|
|
|
{this.state.certification===1?<RealNameCertificationModal {...this.props}
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification}
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal1 = form} certification={certification}
|
|
|
|
></RealNameCertificationModal>:""}
|
|
|
|
></RealNameCertificationModal>:""}
|
|
|
|
|
|
|
|
|
|
|
|
{this.state.certification===2?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props}
|
|
|
|
{this.state.certification===2?<RealNameCertificationModal {...this.props}
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification}
|
|
|
|
wrappedComponentRef={(form) => this.realNameCertificationModal2 = form} certification={certification}
|
|
|
|
></RealNameCertificationModal>:""}
|
|
|
|
></RealNameCertificationModal>:""}
|
|
|
|
<div className="basicForm">
|
|
|
|
<div className="basicForm">
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
|