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

修改微信扫码

parent 673aed6e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* /*
* @Author: shangshunli; * @Author: shangshunli;
* @Date: 2021-08-02 09:39:46; * @Date: 2021-08-02 09:39:46;
* @LastEditTime: 2021-09-03 14:58:29 * @LastEditTime: 2021-09-03 15:37:12
* @LastEditors: shangshunli * @LastEditors: shangshunli
* @Description:信息化登录页; * @Description:信息化登录页;
*/ */
...@@ -34,6 +34,7 @@ class InfoLogin extends React.Component{ ...@@ -34,6 +34,7 @@ class InfoLogin extends React.Component{
} }
componentDidMount(){ componentDidMount(){
let action=new LoginAction(this.props,false,true) let action=new LoginAction(this.props,false,true)
this.loginEvent(action)
} }
// 切换登录方式 // 切换登录方式
changeloginStyle=()=>{ changeloginStyle=()=>{
...@@ -95,21 +96,24 @@ changeQrCode=(item)=>{ ...@@ -95,21 +96,24 @@ changeQrCode=(item)=>{
loginToWeb5=()=>{ loginToWeb5=()=>{
const {loginName,passWord,isRember}=this.state const {loginName,passWord,isRember}=this.state
let action=new LoginAction(this.props,false,true) let action=new LoginAction(this.props,false,true)
action.globalConfig = this.props.global;
action.loginHandler(loginName,passWord,null,isRember,false) action.loginHandler(loginName,passWord,null,isRember,false)
this.loginEvent(action)
this.props.updateCurrentIndex && this.props.updateCurrentIndex(-1);
action && action.events.on('loginSuccess', event => { }
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0); loginEvent(action){
this.props.history.push(`/?client=${this.props.global.client}`); action.globalConfig = this.props.global;
window.share.event.emit('triggerMicro', this.props.global); this.props.updateCurrentIndex && this.props.updateCurrentIndex(-1);
}); action && action.events.on('loginSuccess', event => {
action && action.events.on('loginError', 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('loginVisible', status => { });
action && action.events.on('loginError', event => {
}); });
action && action.events.on('loginVisible', status => {
});
} }
render(){ render(){
const {loginStyle,isOpen,isRember,loginName,passWord,ddOrWeixin}=this.state 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