| | |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | |
| | | vc.component.clearCacheData(); |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.component.$on('errorInfoEvent',function(_errorInfo){ |
| | |
| | | console.log('errorInfoEvent 事件被监听',_errorInfo) |
| | | }); |
| | | |
| | | vc.component.$on('login_param_change_event',function(params){ |
| | | vc.component.$on('validate_code_component_param_change_event',function(params){ |
| | | for(var tmpAttr in params){ |
| | | vc.component.loginInfo[tmpAttr] = params[tmpAttr]; |
| | | } |
| | |
| | | }); |
| | | }, |
| | | methods:{ |
| | | doLogin(){ |
| | | vc.http.call( |
| | | clearCacheData:function(){ |
| | | vc.clearCacheData(); |
| | | }, |
| | | doLogin:function(){ |
| | | vc.http.post( |
| | | 'login', |
| | | 'doLogin', |
| | | JSON.stringify(vc.component.loginInfo), |
| | |
| | | }); |
| | | |
| | | } |
| | | }, |
| | | _destroyedMethod:function(){ |
| | | console.log("登录页面销毁调用"); |
| | | } |
| | | }); |
| | | |