e1caffc9 by fuenxin

update code func

1 parent fdb4f2b8
...@@ -13,7 +13,7 @@ angular.module('myApp') ...@@ -13,7 +13,7 @@ angular.module('myApp')
13 if(r!=null)return unescape(r[2]); return null; 13 if(r!=null)return unescape(r[2]); return null;
14 } 14 }
15 var code = getUrl('code') 15 var code = getUrl('code')
16 var loginCode = function (code) { 16 var loginUrlCode = function (code) {
17 if(code){ 17 if(code){
18 dingdaService.verifyThirdCode(code).success(function (res) { 18 dingdaService.verifyThirdCode(code).success(function (res) {
19 globalService.saveData('loginCode', code) 19 globalService.saveData('loginCode', code)
...@@ -52,11 +52,11 @@ angular.module('myApp') ...@@ -52,11 +52,11 @@ angular.module('myApp')
52 } 52 }
53 $scope.userinfo = globalService.getData("user"); 53 $scope.userinfo = globalService.getData("user");
54 if(!$scope.userinfo ) { 54 if(!$scope.userinfo ) {
55 loginCode() 55 loginUrlCode()
56 } else { 56 } else {
57 var loginCode = globalService.getData("loginCode"); 57 var loginCode = globalService.getData("loginCode");
58 if(code && (loginCode !== code)){ 58 if(code && (loginCode !== code)){
59 loginCode() 59 loginUrlCode()
60 } 60 }
61 // alert("getUnfinishedOrder") 61 // alert("getUnfinishedOrder")
62 dingdaService.getUnfinishedOrder().success(function(data , status){ 62 dingdaService.getUnfinishedOrder().success(function(data , status){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!