|
|
|
@ -14,6 +14,20 @@ class AccountCertification extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkBasicInfo = (index) => {
|
|
|
|
|
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')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showRealNameCertificationModal = (index) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
certification:index,
|
|
|
|
@ -67,7 +81,7 @@ class AccountCertification extends Component {
|
|
|
|
|
<div className="status">
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.authentication =="uncertified" ?
|
|
|
|
|
<WordsBtn style="blue" className="borderBottom" onClick={()=>this.showRealNameCertificationModal(1)} >立即认证</WordsBtn>:
|
|
|
|
|
<WordsBtn style="blue" className="borderBottom" onClick={()=>this.checkBasicInfo(1)} >立即认证</WordsBtn>:
|
|
|
|
|
basicInfo && basicInfo.authentication =="applying" ? <span style={{color: '#FF6800'}}>待审核</span>:
|
|
|
|
|
<span><i className="iconfont icon-wancheng color-green font-16 mr3"></i>已认证</span>
|
|
|
|
|
}
|
|
|
|
@ -80,7 +94,7 @@ class AccountCertification extends Component {
|
|
|
|
|
<div className="status">
|
|
|
|
|
{
|
|
|
|
|
basicInfo && basicInfo.professional_certification =="uncertified" ?
|
|
|
|
|
<WordsBtn style="blue" className="borderBottom" onClick={()=>this.showRealNameCertificationModal(2)} >立即认证</WordsBtn>:
|
|
|
|
|
<WordsBtn style="blue" className="borderBottom" onClick={()=>this.checkBasicInfo(2)} >立即认证</WordsBtn>:
|
|
|
|
|
basicInfo && basicInfo.professional_certification =="applying" ? <span style={{color: '#FF6800'}}>待审核</span>:
|
|
|
|
|
<span><i className="iconfont icon-wancheng color-green font-16 mr3"></i>已认证</span>
|
|
|
|
|
}
|
|
|
|
|