|
@@ -3,7 +3,7 @@
|
|
function ($scope,userService,$ionicNavBarDelegate, storage, $state, msg, $http, util) {
|
|
function ($scope,userService,$ionicNavBarDelegate, storage, $state, msg, $http, util) {
|
|
//$ionicNavBarDelegate.showBackButton(false);
|
|
//$ionicNavBarDelegate.showBackButton(false);
|
|
$scope.wechat_login = function(){
|
|
$scope.wechat_login = function(){
|
|
- var scope = "snsapi_userinfo", state = "_" + (+new Date());
|
|
|
|
|
|
+ /*var scope = "snsapi_userinfo", state = "_" + (+new Date());
|
|
Wechat.auth(scope, state, function (response) {
|
|
Wechat.auth(scope, state, function (response) {
|
|
// alert("response:"+JSON.stringify(response));
|
|
// alert("response:"+JSON.stringify(response));
|
|
// var response={code:1231};
|
|
// var response={code:1231};
|
|
@@ -28,8 +28,8 @@
|
|
}
|
|
}
|
|
}, function (error) {
|
|
}, function (error) {
|
|
console.log("Failed: " + JSON.stringify(error));
|
|
console.log("Failed: " + JSON.stringify(error));
|
|
- })
|
|
|
|
- //$state.go("loginAccount",{wechat:1231});
|
|
|
|
|
|
+ })*/
|
|
|
|
+ $state.go("loginAccount",{wechat:1231});
|
|
}
|
|
}
|
|
}]);
|
|
}]);
|
|
app.controller('loginCtrl', ["$scope", "userService","$stateParams","$ionicNavBarDelegate", "storage", "$state", "msg", "$http", "util","$timeout",
|
|
app.controller('loginCtrl', ["$scope", "userService","$stateParams","$ionicNavBarDelegate", "storage", "$state", "msg", "$http", "util","$timeout",
|