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

Loading…
Cancel
Save