| xqd
@@ -21,7 +21,10 @@
|
|
|
console.log('选择视频失败');
|
|
|
});
|
|
|
};
|
|
|
- $scope.wechat_login = function(){
|
|
|
+ $scope.wechat_login = function () {
|
|
|
+ //$state.go("loginAccount", { wechat: 'orrk51inhmfmQRXA8VvGEQfow3Es' });
|
|
|
+ //return;
|
|
|
+ delete $http.defaults.headers.common["Authorization"];
|
|
|
var scope = "snsapi_userinfo", state = "_" + (+new Date());
|
|
|
//Wechat.auth(scope, state, function (response) {
|
|
|
// // alert("response:"+JSON.stringify(response));
|
| xqd
@@ -85,6 +88,7 @@
|
|
|
app.controller('loginCtrl', ["$scope", "userService","$stateParams","$ionicNavBarDelegate", "storage", "$state", "msg", "$http", "util","$timeout",
|
|
|
function ($scope, userService,$stateParams,$ionicNavBarDelegate, storage, $state, msg, $http, util, $timeout) {
|
|
|
//$ionicNavBarDelegate.showBackButton(false);
|
|
|
+ delete $http.defaults.headers.common["Authorization"];
|
|
|
$scope.wechat = $stateParams.wechat;
|
|
|
$scope.vm = {
|
|
|
mobile: '',
|
| xqd
@@ -110,6 +114,7 @@
|
|
|
|
|
|
//获取验证码
|
|
|
$scope.getVerifyCode = function () {
|
|
|
+ debugger;
|
|
|
// if (!util.isMobile($scope.vm.mobile)) {
|
|
|
// msg.text('请输入正确的手机号');
|
|
|
// return;
|