From 21a47e86fd9c04622b12c75e4adf145d38f005d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 12 Nov 2019 13:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompetitionContentspdfpeopledata.js | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js index 7cfef7d07..e4c149fa3 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js @@ -98,24 +98,7 @@ class CompetitionContentspdfpeopledata extends Component { this.setState({ certification: 3 }) - let url = `/users/accounts/${id}.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`); - } - // "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); - }) + this.GetuseridApi(id); }; // 绑定手机 onPhoneSubmit = () => { @@ -270,7 +253,7 @@ class CompetitionContentspdfpeopledata extends Component { //立即认证 checkBasicInfo = (index) => { - if (this.state.basicInfo.base_info_completed == true) { + if (this.state.userdata.base_info_completed == true) { this.showRealNameCertificationModal(index) } else { try {