Commit 30861356 authored by 尚顺利's avatar 尚顺利

修改微信扫码

parent 673aed6e
......@@ -2,7 +2,7 @@
/*
* @Author: shangshunli;
* @Date: 2021-08-02 09:39:46;
* @LastEditTime: 2021-09-03 14:58:29
* @LastEditTime: 2021-09-03 15:37:12
* @LastEditors: shangshunli
* @Description:信息化登录页;
*/
......@@ -34,6 +34,7 @@ class InfoLogin extends React.Component{
}
componentDidMount(){
let action=new LoginAction(this.props,false,true)
this.loginEvent(action)
}
// 切换登录方式
changeloginStyle=()=>{
......@@ -95,21 +96,24 @@ changeQrCode=(item)=>{
loginToWeb5=()=>{
const {loginName,passWord,isRember}=this.state
let action=new LoginAction(this.props,false,true)
action.globalConfig = this.props.global;
action.loginHandler(loginName,passWord,null,isRember,false)
this.props.updateCurrentIndex && this.props.updateCurrentIndex(-1);
action && action.events.on('loginSuccess', event => {
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0);
this.props.history.push(`/?client=${this.props.global.client}`);
window.share.event.emit('triggerMicro', this.props.global);
});
action && action.events.on('loginError', event => {
});
action && action.events.on('loginVisible', status => {
this.loginEvent(action)
}
loginEvent(action){
action.globalConfig = this.props.global;
this.props.updateCurrentIndex && this.props.updateCurrentIndex(-1);
action && action.events.on('loginSuccess', event => {
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0);
this.props.history.push(`/?client=${this.props.global.client}`);
window.share.event.emit('triggerMicro', this.props.global);
});
action && action.events.on('loginError', event => {
});
});
action && action.events.on('loginVisible', status => {
});
}
render(){
const {loginStyle,isOpen,isRember,loginName,passWord,ddOrWeixin}=this.state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment