From 0064fe607320cabfa7b5b72bd6ca015cf1097d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 20 Jul 2019 19:33:46 +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 --- .../src/modules/login/Trialapplicationysl.js | 40 +++++++++---------- .../modules/user/LoginRegisterComponent.js | 13 +++++- public/react/src/modules/user/common.css | 4 +- 3 files changed, 33 insertions(+), 24 deletions(-) diff --git a/public/react/src/modules/login/Trialapplicationysl.js b/public/react/src/modules/login/Trialapplicationysl.js index a666353aa..2b369ef7f 100644 --- a/public/react/src/modules/login/Trialapplicationysl.js +++ b/public/react/src/modules/login/Trialapplicationysl.js @@ -45,26 +45,26 @@ class Trialapplicationysl extends Component { // this.props.Cancel() } // - // componentWillReceiveProps(nextProps) { - // // console.log("46"); - // // console.log(nextProps); - // // console.log(this.props); - // // if (nextProps.user != this.props.user) { - // // // console.log("50"); - // // // console.log(nextProps.user); - // // if (nextProps.user !== undefined) { - // // // console.log("53"); - // // // console.log(nextProps.user); - // // this.setState({ - // // user_phone_binded: nextProps.user.user_phone_binded, - // // }) - // // } - // // - // // - // // } - // - // - // } + componentWillReceiveProps(nextProps) { + // console.log("46"); + // console.log(nextProps); + // console.log(this.props); + if (nextProps.user != this.props.user) { + // console.log("50"); + // console.log(nextProps.user); + if (nextProps.user !== undefined) { + // console.log("53"); + // console.log(nextProps.user); + this.setState({ + user_phone_binded: nextProps.user.user_phone_binded, + }) + } + + + } + + + } getipthon=()=>{ // console.log("Trialapplicationysl"); // console.log("70"); diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index cf93a781b..9281d228c 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -718,8 +718,17 @@ class LoginRegisterComponent extends Component { console.log(classpass); return ( -
- +
+
diff --git a/public/react/src/modules/user/common.css b/public/react/src/modules/user/common.css index 4549fdfe9..0e00b623d 100644 --- a/public/react/src/modules/user/common.css +++ b/public/react/src/modules/user/common.css @@ -1,6 +1,6 @@ /*.login_register_content, .login_register_content .ant-tabs-tabpane {*/ -/* display: flex;*/ -/* justify-content: center; */ +/* !*display: flex;*!*/ +/* justify-content: center;*/ /*}*/ .login_register_content .ant-input { background:rgb(244,244,244);