|
|
@@ -849,7 +849,10 @@ define(['app/app'], function (app) {
|
|
|
$scope.sendSuccess = true;
|
|
|
//发送验证码
|
|
|
$scope.sendCheckCode = function (newUserEmail) {
|
|
|
- if (!$scope.checkSuccess1 || ($scope.userInfo.userEmail==null && !$scope.checkSuccess)) {
|
|
|
+ if (!$scope.checkSuccess1 || ($scope.userInfo.userEmail!=null && !$scope.checkSuccess)) {
|
|
|
+ if ($scope.userInfo.userEmail!=null && !$scope.checkSuccess) {
|
|
|
+ $scope.checkFailed = true;
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
$scope.sendSuccess = false;
|
|
|
@@ -1019,9 +1022,12 @@ define(['app/app'], function (app) {
|
|
|
$scope.sendSuccess = true;
|
|
|
// 发送验证码
|
|
|
$scope.sendTelCheckCode = function (newUserTel) {
|
|
|
- if (!$scope.checkSuccess1) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (!$scope.checkSuccess1 || ($scope.userInfo.userTel!=null && !$scope.checkSuccess)) {
|
|
|
+ if ($scope.userInfo.userTel!=null && !$scope.checkSuccess) {
|
|
|
+ $scope.checkFailed = true;
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
$scope.sendSuccess = false;
|
|
|
User.sendTelCheckCode({newUserTel: newUserTel}, function () {
|
|
|
$scope.codeSuccess = true;
|