220fdb23 by fuenxin

update msg

1 parent dfe95d13
...@@ -14,6 +14,9 @@ angular.module('myApp') ...@@ -14,6 +14,9 @@ angular.module('myApp')
14 } 14 }
15 var code = getUrl('code') 15 var code = getUrl('code')
16 var loginUrlCode = function () { 16 var loginUrlCode = function () {
17 $scope.userinfo = {};
18 $scope.userinfo.userName = "未登录";
19 $scope.userinfo.loginState = false;
17 if (code) { 20 if (code) {
18 globalService.saveData('loginCode', code) 21 globalService.saveData('loginCode', code)
19 dingdaService.verifyThirdCode(code).success(function (res) { 22 dingdaService.verifyThirdCode(code).success(function (res) {
...@@ -46,10 +49,6 @@ angular.module('myApp') ...@@ -46,10 +49,6 @@ angular.module('myApp')
46 $state.go('login', {}, { reload: true }); 49 $state.go('login', {}, { reload: true });
47 } 50 }
48 }) 51 })
49 } else {
50 $scope.userinfo = {};
51 $scope.userinfo.userName = "未登录";
52 $scope.userinfo.loginState = false;
53 } 52 }
54 } 53 }
55 $scope.userinfo = globalService.getData("user"); 54 $scope.userinfo = globalService.getData("user");
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!