绑定成功后返回公众号

This commit is contained in:
yuanke 2016-07-21 16:50:15 +08:00
parent 86731c34d5
commit 5a8f1b3d83
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ app.controller('LoginController', ['$scope', '$http', '$location', '$routeParams
vm.loginFailed = (response.data.status != 0);
if (!$scope.loginFailed) { //绑定成功
vm.alertService.showMessage('提示', response.data.message, function(){
$location.path("/activities");
// $location.path("/activities");
window.WeixinJSBridge.call('closeWindow');
});
} else {
vm.alertService.showMessage('出错了', response.data.message);