From 97189e671faa0a4ff38258d7212bbed8c92c40b1 Mon Sep 17 00:00:00 2001 From: ysl <904079904@qq.com> Date: Sat, 22 Jun 2019 19:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/coursesDetail/CoursesBanner.js | 2 +- public/react/src/modules/user/LoginRegisterComponent.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 3176602bd..cf28a498e 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -53,7 +53,7 @@ class CoursesBanner extends Component { this.onloadupdatabanner() this.setState({ - user_phone_binded :this.props.user_phone_binded, + user_phone_binded :this.props.current_user.user_phone_binded, }) } onloadupdatabanner=()=>{ diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index 030103ea2..c5a2175a9 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -222,10 +222,10 @@ class LoginRegisterComponent extends Component { stringdata = "邮箱格式不正确"; } else { stringdata = "手机号格式不正确"; - if (!regph.test(value)) { - // 这里先判断是不是手机号然后在判断是不是邮箱然后又判断是不是手机号,如果不是手机号就是账号 - stringdata=undefined; - } + // if (!regph.test(value)) { + // // 这里先判断是不是手机号然后在判断是不是邮箱然后又判断是不是手机号,如果不是手机号就是账号 + // stringdata=undefined; + // } } if (id === 1) { this.setState({