From f2b0f73f1ef1b0d9499cd55475d9c890a94eb2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 9 Jan 2020 20:39:01 +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 | 2 +- .../CompetitionContentspdfChild/Mailboxvalidation.js | 3 ++- .../CompetitionContentspdfChild/Phonenumberverification.js | 3 ++- .../CompetitionContentspdfpeopledata.js | 3 ++- .../CompetitionContentspdfChild/Mailboxvalidation.js | 4 +++- .../CompetitionContentspdfChild/Phonenumberverification.js | 4 +++- public/react/src/modules/user/account/AccountSecure.js | 3 ++- 7 files changed, 15 insertions(+), 7 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 f5494f3fd..befecc817 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js @@ -178,7 +178,6 @@ class CompetitionContentspdfpeopledata extends Component { let url = `/accounts/get_verification_code.json` let login = ''; let values = this.props.form.getFieldsValue(); - let smscode=setmiyah(this.props.form.getFieldsValue()) if (index == 3) { //绑定手机号码 login = values.phone; @@ -201,6 +200,7 @@ class CompetitionContentspdfpeopledata extends Component { this.props.showNotification(`请先输入${index == 3 ? "手机号码" : "邮箱地址"}`); return; } + let smscode=setmiyah(login) axios.get((url), { params: { login, type,smscode diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js index 1be8dd36c..4984b9f80 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js @@ -78,7 +78,7 @@ class Mailboxvalidation extends Component { let url = `/accounts/get_verification_code.json` let login = ''; let values = this.props.form.getFieldsValue(); - let smscode=setmiyah(this.props.form.getFieldsValue()) + if (index == 3) { //绑定手机号码 login = values.phone; @@ -101,6 +101,7 @@ class Mailboxvalidation extends Component { this.props.showNotification(`请先输入${index == 3 ? "手机号码" : "邮箱地址"}`); return; } + let smscode=setmiyah(login) axios.get((url), { params: { login, type,smscode diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js index 78d20bc1b..9471abed2 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js @@ -77,7 +77,7 @@ class Phonenumberverification extends Component { let url = `/accounts/get_verification_code.json` let login = ''; let values = this.props.form.getFieldsValue(); - let smscode=setmiyah( this.props.form.getFieldsValue()) + if (index == 3) { //绑定手机号码 login = values.phone; @@ -100,6 +100,7 @@ class Phonenumberverification extends Component { this.props.showNotification(`请先输入${index == 3 ? "手机号码" : "邮箱地址"}`); return; } + let smscode=setmiyah(login) axios.get((url), { params: { login, type,smscode diff --git a/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js b/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js index 25798843f..b4826241a 100644 --- a/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js +++ b/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js @@ -176,7 +176,7 @@ class CompetitionContentspdfpeopledata extends Component { // 获取验证码 getCode = (index) => { let url = `/accounts/get_verification_code.json` - let smscode=setmiyah( this.props.form.getFieldsValue()) + let login = ''; let values = this.props.form.getFieldsValue(); if (index == 3) { @@ -201,6 +201,7 @@ class CompetitionContentspdfpeopledata extends Component { this.props.showNotification(`请先输入${index == 3 ? "手机号码" : "邮箱地址"}`); return; } + let smscode=setmiyah(login) axios.get((url), { params: { login, type,smscode diff --git a/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js b/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js index 0449d5268..6273b248c 100644 --- a/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js +++ b/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Mailboxvalidation.js @@ -78,7 +78,7 @@ class Mailboxvalidation extends Component { let url = `/accounts/get_verification_code.json` let login = ''; let values = this.props.form.getFieldsValue(); - let smscode=setmiyah( this.props.form.getFieldsValue()) + if (index == 3) { //绑定手机号码 login = values.phone; @@ -101,6 +101,8 @@ class Mailboxvalidation extends Component { this.props.showNotification(`请先输入${index == 3 ? "手机号码" : "邮箱地址"}`); return; } + + let smscode=setmiyah(login) axios.get((url), { params: { login, type,smscode diff --git a/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js b/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js index 78d20bc1b..1f06a3102 100644 --- a/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js +++ b/public/react/src/modules/courses/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Phonenumberverification.js @@ -77,7 +77,7 @@ class Phonenumberverification extends Component { let url = `/accounts/get_verification_code.json` let login = ''; let values = this.props.form.getFieldsValue(); - let smscode=setmiyah( this.props.form.getFieldsValue()) + if (index == 3) { //绑定手机号码 login = values.phone; @@ -100,6 +100,8 @@ class Phonenumberverification extends Component { this.props.showNotification(`请先输入${index == 3 ? "手机号码" : "邮箱地址"}`); return; } + + let smscode=setmiyah(login) axios.get((url), { params: { login, type,smscode diff --git a/public/react/src/modules/user/account/AccountSecure.js b/public/react/src/modules/user/account/AccountSecure.js index 3f6e8e785..6da36680b 100644 --- a/public/react/src/modules/user/account/AccountSecure.js +++ b/public/react/src/modules/user/account/AccountSecure.js @@ -59,7 +59,7 @@ class AccountSecure extends Component { let url=`/accounts/get_verification_code.json` let login = ''; let values=this.props.form.getFieldsValue(); - let smscode=setmiyah( this.props.form.getFieldsValue()) + if(index == 3){ //绑定手机号码 login=values.phone; @@ -82,6 +82,7 @@ class AccountSecure extends Component { this.props.showNotification(`请先输入${index==3?"手机号码":"邮箱地址"}`); return; } + let smscode=setmiyah(login) axios.get((url),{params:{ login,type,smscode }}).then((result)=>{