1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| (function(vc){
| var vm = new Vue({
| el:'#login',
| data:{
| loginInfo:{
| username:'',
| passwd:'',
| errorInfo:''
| }
| },
| methods:{
| doLogin(){
|
| vc.http.call('login','doLogin',JSON.stringify(this.loginInfo),
| {
| emulateJSON:true
| },function(json,res){
| //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
| if(res.status == 200){
| vc.jumpToPage("/");
| return ;
| }
| vm.loginInfo.errorInfo = json;
| },function(errInfo,error){
| console.log('请求失败处理');
|
| vm.loginInfo.errorInfo = errInfo;
| })
|
| }
| }
|
| });
|
| })(window.vc);
|
|