dev_auth
杨树林 5 years ago
parent df6f4aeb09
commit 65c7eecc25

@ -59,9 +59,9 @@ class CompetitionContentspdfpeopledata extends Component {
let url = `/users/accounts/${this.props.current_user.login}.json`;
axios.get(url).then((result) => {
if (result.data) {
// if(result.data && result.data.base_info_completed == false){
// this.props.history.push(`/account/profile/edit`);
// }
if (result.data && result.data.base_info_completed == false) {
this.props.history.push(`/account/profile/edit`);
}
// "authentication": "uncertified", // "uncertified" | "applying" | "certified"
this.setState({
basicInfo: Object.assign({}, {...result.data}, {
@ -231,13 +231,18 @@ class CompetitionContentspdfpeopledata extends Component {
if (this.state.basicInfo.base_info_completed == true) {
this.showRealNameCertificationModal(index)
} else {
this.props.confirm({
okText: `立即完善`,
content: `请先完善基本信息`,
onOk: () => {
this.props.history.push('/account/profile/edit')
}
})
try {
this.props.confirm({
okText: `立即完善`,
content: `请先完善基本信息`,
onOk: () => {
this.props.history.push('/account/profile/edit')
}
})
} catch (e) {
this.props.history.push(`/account/profile/edit`);
}
}
}

Loading…
Cancel
Save