吴学文
2019-07-10 4ee6445f67bbb56caa2b2f981afce6e87cc602af
WebService/src/main/resources/components/login/login.js
@@ -8,7 +8,7 @@
            }
        },
        _initMethod:function(){
            vc.component.clearCacheData();
        },
        _initEvent:function(){
             vc.component.$on('errorInfoEvent',function(_errorInfo){
@@ -16,7 +16,7 @@
                    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];
                         }
@@ -24,8 +24,11 @@
                     });
        },
        methods:{
            doLogin(){
                vc.http.call(
            clearCacheData:function(){
                vc.clearCacheData();
            },
            doLogin:function(){
                vc.http.post(
                            'login',
                            'doLogin',
                            JSON.stringify(vc.component.loginInfo),
@@ -47,6 +50,9 @@
                             });
            }
        },
        _destroyedMethod:function(){
            console.log("登录页面销毁调用");
        }
    });