Browse Source

手机号已存在给予提示

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@2245 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
yingp 10 years ago
parent
commit
141a0c6889

+ 2 - 0
src/main/webapp/resources/js/index/app.js

@@ -4244,6 +4244,8 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 						$scope.newUserForm.newUserTel.$setValidity('available', false);
 						$scope.userTelError = true;
 						$scope.userTelSuccess = false;
+						if(tel.length == 11)
+							toaster.pop('error', '错误', '手机号 ' + tel + ' 已被注册');
 					}
 				}).error(function(){
 					$scope.userTelSuccess = false;

+ 1 - 1
src/main/webapp/resources/tpl/index/account/user.html

@@ -236,7 +236,7 @@
 							ng-class="{'has-error': userTelError, 'has-success': userTelSuccess}">
 							<input ng-model="newUser.userTel"
 							ng-blur="telValid(newUser.userTel)" required name="newUserTel"
-							class="form-control input-sm" ng-parttern="/^[\d-]{8,}$/" type="text" placeholder="手机号">
+							class="form-control input-sm" ng-pattern="/^[\d-]{8,}$/" type="text" placeholder="手机号">
 						</td>
 						<td class="text-center"
 							ng-class="{'has-error': userEmailError, 'has-success': userEmailSuccess}">