dev_home
杨树林 5 years ago
parent a83cc125d8
commit 21a47e86fd

@ -98,24 +98,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.setState({ this.setState({
certification: 3 certification: 3
}) })
let url = `/users/accounts/${id}.json`; this.GetuseridApi(id);
axios.get(url).then((result) => {
if (result.data) {
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}, {
avatar_url: `${result.data.avatar_url}`,
gender: result.data.gender == null || result.data.gender == undefined ? 0 : result.data.gender
}),
certification: 3
})
}
}).catch((error) => {
console.log(error);
})
}; };
// 绑定手机 // 绑定手机
onPhoneSubmit = () => { onPhoneSubmit = () => {
@ -270,7 +253,7 @@ class CompetitionContentspdfpeopledata extends Component {
//立即认证 //立即认证
checkBasicInfo = (index) => { checkBasicInfo = (index) => {
if (this.state.basicInfo.base_info_completed == true) { if (this.state.userdata.base_info_completed == true) {
this.showRealNameCertificationModal(index) this.showRealNameCertificationModal(index)
} else { } else {
try { try {

Loading…
Cancel
Save