|
|
@ -104,6 +104,7 @@ class LoginDialog extends Component {
|
|
|
|
MyEduCoderModals:false,
|
|
|
|
MyEduCoderModals:false,
|
|
|
|
Phonenumberisnotco:undefined,
|
|
|
|
Phonenumberisnotco:undefined,
|
|
|
|
Phonenumberisnotcobool:false,
|
|
|
|
Phonenumberisnotcobool:false,
|
|
|
|
|
|
|
|
weixinlogin:false
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -506,9 +507,19 @@ class LoginDialog extends Component {
|
|
|
|
getloginurl=(url)=>{
|
|
|
|
getloginurl=(url)=>{
|
|
|
|
window.location.href = url;
|
|
|
|
window.location.href = url;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
openweixinlogin=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
weixinlogin:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
hideweixinlogin=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
weixinlogin:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let{open,login,speedy,loginValue,regular,isGoing,isGoingValue,disabled,bottonclass,Phonenumberisnotco,
|
|
|
|
let{open,login,speedy,loginValue,regular,isGoing,isGoingValue,disabled,bottonclass,Phonenumberisnotco,
|
|
|
|
dialogBox,shortcutnum,disabledType,gaincode,authCodeType,authCodeclass, isRender}=this.state;
|
|
|
|
dialogBox,shortcutnum,disabledType,gaincode,authCodeType,authCodeclass, isRender,weixinlogin}=this.state;
|
|
|
|
|
|
|
|
|
|
|
|
if (isRender === undefined) {
|
|
|
|
if (isRender === undefined) {
|
|
|
|
isRender = false
|
|
|
|
isRender = false
|
|
|
@ -532,14 +543,14 @@ class LoginDialog extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="log_reg_content" >
|
|
|
|
<div id="log_reg_content" >
|
|
|
|
<ul className="log_nav clearfix">
|
|
|
|
{weixinlogin===true?"": <ul className="log_nav clearfix">
|
|
|
|
<li className={login==0?'active':''} onClick={()=>{this.enter(0)}}>登录</li>
|
|
|
|
<li className={login==0?'active':''} onClick={()=>{this.enter(0)}}>登录</li>
|
|
|
|
{/*<li className={speedy==0?'active':''} onClick={()=>{this.register(0)}}>快捷登录</li>*/}
|
|
|
|
{/*<li className={speedy==0?'active':''} onClick={()=>{this.register(0)}}>快捷登录</li>*/}
|
|
|
|
</ul>
|
|
|
|
</ul>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="login-panel" id="login-panel-1" style={{display: login==0?'block':'none'}}>
|
|
|
|
<div className="login-panel" id="login-panel-1" style={{display: login==0?'block':'none'}}>
|
|
|
|
<form acceptCharset="UTF-8" action="/login" id="main_login_form" method="post">
|
|
|
|
{weixinlogin===true?"":<form acceptCharset="UTF-8" action="/login" id="main_login_form" method="post">
|
|
|
|
|
|
|
|
|
|
|
|
<div style={{"display":"inline","padding":"0","margin":"0"}}>
|
|
|
|
<div style={{"display":"inline","padding":"0","margin":"0"}}>
|
|
|
|
<input name="utf8" type="hidden" value="✓"></input>
|
|
|
|
<input name="utf8" type="hidden" value="✓"></input>
|
|
|
@ -611,12 +622,26 @@ class LoginDialog extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
{/*<p className="clearfix mt20">*/}
|
|
|
|
<p className="clearfix mt20">
|
|
|
|
|
|
|
|
|
|
|
|
{/*<span className={"startlogin"}>———————— 快速登录 ————————</span>*/}
|
|
|
|
<span className={"startlogin"}>———————— 快速登录 ————————</span>
|
|
|
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
{/*</p>*/}
|
|
|
|
<a onClick={()=>this.openweixinlogin()}>
|
|
|
|
</form>
|
|
|
|
<img src={require('./WeChat.png')} alt="微信登录"/>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</form>}
|
|
|
|
|
|
|
|
{weixinlogin===true?<iframe
|
|
|
|
|
|
|
|
className={"weixinheight390"}
|
|
|
|
|
|
|
|
frameBorder="0"
|
|
|
|
|
|
|
|
sandbox="allow-scripts allow-same-origin allow-top-navigation"
|
|
|
|
|
|
|
|
scrolling="no"
|
|
|
|
|
|
|
|
src="https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=https%3a%2f%2fwww.educoder.net%2f&response_type=code&scope=snsapi_login#wechat_redirect"></iframe>:""}
|
|
|
|
|
|
|
|
{weixinlogin===true?<p className="clearfix">
|
|
|
|
|
|
|
|
<a className={"startlogin color-blue"} onClick={()=>this.hideweixinlogin()}>返回账号登录</a>
|
|
|
|
|
|
|
|
</p>:""}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{/*快捷登录*/}
|
|
|
|
{/*快捷登录*/}
|
|
|
|