diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js index b15518a4f..3f5afd845 100644 --- a/public/react/src/modules/login/LoginDialog.js +++ b/public/react/src/modules/login/LoginDialog.js @@ -349,8 +349,25 @@ class LoginDialog extends Component { // console.log(nextProps.isRender); } - + IsPC=()=>{ + var userAgentInfo = navigator.userAgent; + var Agents = ["Android", "iPhone", + "SymbianOS", "Windows Phone", + "iPad", "iPod"]; + var flag = true; + for (var v = 0; v < Agents.length; v++) { + if (userAgentInfo.indexOf(Agents[v]) > 0) { + flag = false; + break; + } + } + return flag; + } componentDidMount() { + let flag = this.IsPC(); //true为PC端,false为手机端 + this.setState({ + isphone:flag + }) if(this.props.isRender!=undefined){ this.setState({ @@ -536,6 +553,19 @@ class LoginDialog extends Component { modalsType={this.state.MyEduCoderModals} setNotcompleteds={()=>{this.setNotcompleteds()}} /> + + {this.state.isphone===false?:""} {isRender===true?
{this.handleDialogClose()}}> @@ -622,7 +652,7 @@ class LoginDialog extends Component {

-

+ {this.state.isphone===true?

———————— 快速登录 ————————

@@ -630,7 +660,7 @@ class LoginDialog extends Component { 微信登录
-

+

:""} } {weixinlogin===true?