|
|
@ -7,7 +7,7 @@ import Dialog, {
|
|
|
|
DialogContentText,
|
|
|
|
DialogContentText,
|
|
|
|
DialogTitle,
|
|
|
|
DialogTitle,
|
|
|
|
} from 'material-ui/Dialog';
|
|
|
|
} from 'material-ui/Dialog';
|
|
|
|
import {notification } from 'antd';
|
|
|
|
import {notification,Modal } from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
|
|
|
@ -104,8 +104,8 @@ class LoginDialog extends Component {
|
|
|
|
MyEduCoderModals:false,
|
|
|
|
MyEduCoderModals:false,
|
|
|
|
Phonenumberisnotco:undefined,
|
|
|
|
Phonenumberisnotco:undefined,
|
|
|
|
Phonenumberisnotcobool:false,
|
|
|
|
Phonenumberisnotcobool:false,
|
|
|
|
weixinlogin:false
|
|
|
|
weixinlogin:false,
|
|
|
|
|
|
|
|
qqlogin:false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
enter=(num) =>{
|
|
|
|
enter=(num) =>{
|
|
|
@ -529,14 +529,28 @@ class LoginDialog extends Component {
|
|
|
|
weixinlogin:true
|
|
|
|
weixinlogin:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
openqqlogin=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
qqlogin:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
//window.location.href=`https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=https%3a%2f%2f${window.location.host}%2otherloginqq&response_type=code`
|
|
|
|
|
|
|
|
window.location.href=`https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=https%3a%2f%2f${window.location.host}%2fotherloginqq&response_type=code`
|
|
|
|
|
|
|
|
// window.location.href=`https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=https%3a%2f%2fwww.educoder.net%2fotherloginstart&tp=qq&response_type=code`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openphoneqqlogin=()=>{
|
|
|
|
|
|
|
|
window.location.href=`https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=https%3a%2f%2f${window.location.host}%2fotherloginqq&response_type=code`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
hideweixinlogin=()=>{
|
|
|
|
hideweixinlogin=()=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
weixinlogin:false
|
|
|
|
weixinlogin:false,
|
|
|
|
|
|
|
|
qqlogin:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let{open,login,speedy,loginValue,regular,isGoing,isGoingValue,disabled,bottonclass,Phonenumberisnotco,
|
|
|
|
let{qqlogin,login,isGoing,isGoingValue,disabled,bottonclass,Phonenumberisnotco,
|
|
|
|
dialogBox,shortcutnum,disabledType,gaincode,authCodeType,authCodeclass, isRender,weixinlogin}=this.state;
|
|
|
|
dialogBox, isRender,weixinlogin}=this.state;
|
|
|
|
|
|
|
|
|
|
|
|
if (isRender === undefined) {
|
|
|
|
if (isRender === undefined) {
|
|
|
|
isRender = false
|
|
|
|
isRender = false
|
|
|
@ -659,8 +673,22 @@ class LoginDialog extends Component {
|
|
|
|
<a onClick={()=>this.openweixinlogin()}>
|
|
|
|
<a onClick={()=>this.openweixinlogin()}>
|
|
|
|
<img src={require('./WeChat.png')} alt="微信登录"/>
|
|
|
|
<img src={require('./WeChat.png')} alt="微信登录"/>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a onClick={()=>this.openqqlogin()} className={"ml10"}>
|
|
|
|
|
|
|
|
<img src={require('./qq.png')} alt="qq登录"/>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</p>:""}
|
|
|
|
</p>:<p className="clearfix mt20">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span className={"startlogin"}>———————— 快速登录 ————————</span>
|
|
|
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
|
|
|
{/*<a onClick={()=>this.openweixinlogin()}>*/}
|
|
|
|
|
|
|
|
{/*<img src={require('./WeChat.png')} alt="微信登录"/>*/}
|
|
|
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
|
|
|
<a onClick={()=>this.openphoneqqlogin()} className={"ml10"}>
|
|
|
|
|
|
|
|
<img src={require('./qq.png')} alt="qq登录"/>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</p>}
|
|
|
|
|
|
|
|
|
|
|
|
</form>}
|
|
|
|
</form>}
|
|
|
|
{weixinlogin===true?<iframe
|
|
|
|
{weixinlogin===true?<iframe
|
|
|
@ -669,7 +697,9 @@ class LoginDialog extends Component {
|
|
|
|
sandbox="allow-scripts allow-same-origin allow-top-navigation"
|
|
|
|
sandbox="allow-scripts allow-same-origin allow-top-navigation"
|
|
|
|
scrolling="no"
|
|
|
|
scrolling="no"
|
|
|
|
src={`https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=https%3a%2f%2f${window.location.host}%2fotherloginstart&response_type=code&scope=snsapi_login#wechat_redirect`}></iframe>:""}
|
|
|
|
src={`https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=https%3a%2f%2f${window.location.host}%2fotherloginstart&response_type=code&scope=snsapi_login#wechat_redirect`}></iframe>:""}
|
|
|
|
{weixinlogin===true?<p className="clearfix">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{weixinlogin===true?<p className="clearfix ">
|
|
|
|
<a className={"startlogin color-blue"} onClick={()=>this.hideweixinlogin()}>返回账号登录</a>
|
|
|
|
<a className={"startlogin color-blue"} onClick={()=>this.hideweixinlogin()}>返回账号登录</a>
|
|
|
|
</p>:""}
|
|
|
|
</p>:""}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -690,110 +720,3 @@ class LoginDialog extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
export default LoginDialog ;
|
|
|
|
export default LoginDialog ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// onkeypress="user_login_keypress(event);"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// onkeypress="user_login_keypress(event);"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* <div className="pr drag_certi_block width100 mt5">
|
|
|
|
|
|
|
|
<div id="quick-drag" className="drag_slider" style={{color: 'rgb(255, 255, 255)'}}></div>
|
|
|
|
|
|
|
|
<div className="new-login-error" style={{height: '25px'}}>
|
|
|
|
|
|
|
|
<p id="passlogin_error_notice" className="color-orange edu-txt-left none" style={{display: 'block'}}></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*第三方账号登录*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* <div className="mt10 edu-txt-center">
|
|
|
|
|
|
|
|
<p className="color-grey-9">第三方账号登录</p>
|
|
|
|
|
|
|
|
<div className="mt15">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" className="margin15"><img src="/images/educoder/weixin.png" className="radius"/></a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" className="margin15"><img src="/images/educoder/QQ.png" className="radius"/></a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" className="margin15"><img src="/images/educoder/weibo.png" className="radius"/></a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<div className="login-panel none" id="login-panel-2" style={{display:speedy==0?'block':'none'}}>*/}
|
|
|
|
|
|
|
|
// {/*<form acceptCharset="UTF-8" action="/login" id="code_login_form" method="post">*/}
|
|
|
|
|
|
|
|
// {/*<div style={{"display":"inline","padding":"0","margin":"0"}}>*/}
|
|
|
|
|
|
|
|
// {/*<input name="utf8" type="hidden" value="✓"></input>*/}
|
|
|
|
|
|
|
|
// {/*<input name="authenticity_token" type="hidden" value="NVLiIlHZfhVBQtO9djnWncJqqdikNQIIxEmOvzK9vNM="></input>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
// {/*<input name="back_url" type="hidden" value={this.back_url}></input>*/}
|
|
|
|
|
|
|
|
// {/*<input*/}
|
|
|
|
|
|
|
|
// {/*type="text"*/}
|
|
|
|
|
|
|
|
// {/*id="pass_name_input"*/}
|
|
|
|
|
|
|
|
// {/*name="username"*/}
|
|
|
|
|
|
|
|
// {/*ref="shortcutText"*/}
|
|
|
|
|
|
|
|
// {/*onInput={this.shortcutIdChange}*/}
|
|
|
|
|
|
|
|
// {/*className="input-100-45 mt20"*/}
|
|
|
|
|
|
|
|
// {/*placeholder="手机号/邮箱号">*/}
|
|
|
|
|
|
|
|
// {/*</input>*/}
|
|
|
|
|
|
|
|
// {/*<div style={{height: '25px'}}>*/}
|
|
|
|
|
|
|
|
// {/*<p className="color-orange edu-txt-left none" id="pass_name_error_notice"*/}
|
|
|
|
|
|
|
|
// {/*style={{display: shortcutnum==0?'block':'none'}}>请输入有效的手机号/邮箱号*/}
|
|
|
|
|
|
|
|
// {/*</p>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<div id="wrapper">*/}
|
|
|
|
|
|
|
|
// {/*/!*drag*/ }*/}
|
|
|
|
|
|
|
|
// {/*<div id="quick-drag" className="drag_slider">*/}
|
|
|
|
|
|
|
|
// {/*<div className="drag_bg"></div>*/}
|
|
|
|
|
|
|
|
// {/*<div className="drag_text slidetounlock">*/}
|
|
|
|
|
|
|
|
// {/*请按住滑块,拖动到最右边*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
// {/*<div className="handler handler_bg"></div>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
// {/*<div className="new-login-error" style={{height: '25px'}}>*/}
|
|
|
|
|
|
|
|
// {/*<p id="passlogin_error_notice" className="color-orange edu-txt-left none">请先拖动滑块完成验证</p>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<p className="clearfix mt5">*/}
|
|
|
|
|
|
|
|
// {/*<input*/}
|
|
|
|
|
|
|
|
// {/*type="text"*/}
|
|
|
|
|
|
|
|
// {/*name="code"*/}
|
|
|
|
|
|
|
|
// {/*id="login_verification_code"*/}
|
|
|
|
|
|
|
|
// {/*className="input-48-45 edu-txt-center fl"*/}
|
|
|
|
|
|
|
|
// {/*ref="authCodeText"*/}
|
|
|
|
|
|
|
|
// {/*onInput={this.authCodeChange}*/}
|
|
|
|
|
|
|
|
// {/*placeholder="请输入验证码">*/}
|
|
|
|
|
|
|
|
// {/*</input>*/}
|
|
|
|
|
|
|
|
// {/*<button className={gaincode} disabled={disabledType}*/}
|
|
|
|
|
|
|
|
// {/*onClick={()=>{this.get_login_verification_code()}} id="get_verification_code">获取验证码</button>*/}
|
|
|
|
|
|
|
|
// {/*</p>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<div style={{height: '25px'}}>*/}
|
|
|
|
|
|
|
|
// {/*<p className="color-orange edu-txt-left none" id="send_code_notice">*/}
|
|
|
|
|
|
|
|
// {/*请输入验证码*/}
|
|
|
|
|
|
|
|
// {/*</p>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<button className={authCodeclass} disabled={authCodeType} id="code_login_btn">登录</button>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<p className="clearfix mt10">*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<span className="fl">*/}
|
|
|
|
|
|
|
|
// {/*<input type="checkbox"*/}
|
|
|
|
|
|
|
|
// {/*className="mr5 magic-checkbox"*/}
|
|
|
|
|
|
|
|
// {/*id="autolog"*/}
|
|
|
|
|
|
|
|
// {/*checked={isGoing}*/}
|
|
|
|
|
|
|
|
// {/*onChange={this.handleInputChange}*/}
|
|
|
|
|
|
|
|
// {/*value={isGoingValue}*/}
|
|
|
|
|
|
|
|
// {/*name="isGoing"*/}
|
|
|
|
|
|
|
|
// {/*></input>*/}
|
|
|
|
|
|
|
|
// {/*<label htmlFor="autolog" style={{"top":"0px"}}>下次自动登录</label>*/}
|
|
|
|
|
|
|
|
// {/*</span>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*<span className="fr">*/}
|
|
|
|
|
|
|
|
// {/*<a href="https://www.educoder.net/account/lost_password" className="mr3 color-grey-9">忘记密码</a><em className="vertical-line"></em>*/}
|
|
|
|
|
|
|
|
// {/*<a href="https://www.educoder.net/user_join" target="_blank" className="color-grey-9">注册</a>*/}
|
|
|
|
|
|
|
|
// {/*</span>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// {/*</p>*/}
|
|
|
|
|
|
|
|
// {/*</form>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|