From a83cc125d8c5f7608c38b8883598aabf0c5c9ae6 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:22:08 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 44edfc9ef..7cfef7d07 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js @@ -121,10 +121,10 @@ class CompetitionContentspdfpeopledata extends Component { onPhoneSubmit = () => { this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { - let {login} = this.props.current_user; + let {id} =this.state.userdata; let reg = /^1\d{10}$/; if (reg.test(values.phone)) { - let url = `/users/accounts/${login}/phone_bind.json` + let url = `/users/accounts/${id}/phone_bind.json` axios.post((url), { phone: values.phone, code: values.phoneValidateCode @@ -149,10 +149,10 @@ class CompetitionContentspdfpeopledata extends Component { onEmailSubmit = () => { this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { - let {login} = this.props.current_user; + let {id} =this.state.userdata; let reg = /^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/; if (reg.test(values.email)) { - let url = `/users/accounts/${login}/email_bind.json` + let url = `/users/accounts/${id}/email_bind.json` axios.post((url), { email: values.email, code: values.emailValidateCode