|
|
@@ -252,7 +252,6 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
}else{
|
|
|
storage.removeItem("mailTimes");
|
|
|
}
|
|
|
-
|
|
|
$scope.getUserInfo = function(userName){
|
|
|
$scope.loading = true;
|
|
|
Password.getUserInfo(userName).then(function(data){
|
|
|
@@ -297,8 +296,10 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
}
|
|
|
|
|
|
$scope.checkPhoneCode = function(phoneCode){
|
|
|
+ $scope.loading = true;
|
|
|
$scope.msgInfoError = false;
|
|
|
Sendmsg.checkPhoneCode(phoneCode,$scope.userUu).then(function(data){
|
|
|
+ $scope.loading = false;
|
|
|
$scope.result = data.result;
|
|
|
$scope.userUu = data.userUu;
|
|
|
$scope.checkCode = data.checkCode;
|
|
|
@@ -311,6 +312,7 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
$scope.msgInfoError2 = data;
|
|
|
}
|
|
|
},function(data){
|
|
|
+ $scope.loading = false;
|
|
|
$scope.msgInfoError2 = data;
|
|
|
})
|
|
|
}
|
|
|
@@ -320,15 +322,16 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
$scope.clicks ++;
|
|
|
$scope.timeInfo = timeInfo;
|
|
|
if($scope.clicks >= 5){
|
|
|
- $scope.loading = true;
|
|
|
+ $scope.errorloading = true;
|
|
|
$scope.msgInfoSuccess = false;
|
|
|
$scope.msgInfoError = false;
|
|
|
setTimeout(function() {//延迟5秒执行
|
|
|
window.location.replace('serve');
|
|
|
}, 5000);
|
|
|
}else{
|
|
|
- $scope.loading = false;
|
|
|
+ $scope.loading = true;
|
|
|
Sendmsg.sendMsgInfos(userPhone).then(function(data){
|
|
|
+ $scope.loading = false;
|
|
|
$scope.msgInfoSuccess = true;
|
|
|
$scope.sendMsg = data;
|
|
|
$scope.userUu = data.userUu;
|
|
|
@@ -336,6 +339,7 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
setBtnTimeDown($scope.btnTimes);
|
|
|
$scope.msgInfoError = false;
|
|
|
},function(data){
|
|
|
+ $scope.loading = false;
|
|
|
$scope.msgInfoError = data;
|
|
|
$scope.sendMsg = false;
|
|
|
$scope.msgInfoSuccess = false;
|