app.controller('LoginTipController', ['$scope', '$http', '$location', 'alertService','$location', function ($scope, $http, $location, alertService, $location) { $scope.bindWx = function(){ $location.path("/login").search({tag:1}); }; }]);