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,13 +231,18 @@ 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 {
this.props.confirm({ try {
okText: `立即完善`, this.props.confirm({
content: `请先完善基本信息`, okText: `立即完善`,
onOk: () => { content: `请先完善基本信息`,
this.props.history.push('/account/profile/edit') onOk: () => {
} this.props.history.push('/account/profile/edit')
}) }
})
} catch (e) {
this.props.history.push(`/account/profile/edit`);
}
} }
} }

Loading…
Cancel
Save