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({