Explorar el Código

先注释掉手机验证功能

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@5601 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq hace 10 años
padre
commit
5d3e3b0c5c
Se han modificado 1 ficheros con 26 adiciones y 26 borrados
  1. 26 26
      src/main/webapp/resources/js/index/app.js

+ 26 - 26
src/main/webapp/resources/js/index/app.js

@@ -474,31 +474,31 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		$scope.isAuthed = AuthenticationService.isAuthed();		//AuthenticationService模块在common/下
 		
 		//手机号码格式验证
-		var checkTel = function(data){
-			var userTel = data.userTel;
-			$scope.checkResult = false;
-			var telephone = /^1[3|4|5|7|8]\d{9}$/;
-			if(!(telephone).test(userTel)){
-				var modalInstance = $modal.open({
-					animation: true,
-					templateUrl: 'static/tpl/index/account/checkTel.html',
-					controller: 'CheckTelCtrl',
-					backdrop: 'static', 
-					keyboard: false,
-					resolve: {
-						user: function(){
-							return data;
-						},
-					}
-				});
-				modalInstance.result.then(function(){
-				}, function(){
-					
-				});
-			} else {
-				$scope.checkResult = true;
-			}
-		};
+//		var checkTel = function(data){
+//			var userTel = data.userTel;
+//			$scope.checkResult = false;
+//			var telephone = /^1[3|4|5|7|8]\d{9}$/;
+//			if(!(telephone).test(userTel)){
+//				var modalInstance = $modal.open({
+//					animation: true,
+//					templateUrl: 'static/tpl/index/account/checkTel.html',
+//					controller: 'CheckTelCtrl',
+//					backdrop: 'static', 
+//					keyboard: false,
+//					resolve: {
+//						user: function(){
+//							return data;
+//						},
+//					}
+//				});
+//				modalInstance.result.then(function(){
+//				}, function(){
+//					
+//				});
+//			} else {
+//				$scope.checkResult = true;
+//			}
+//		};
 		AuthenticationService.getAuthentication().success(function(data) {
 			if(data.enterprises) {
 				data.enterprise = data.enterprises[data.enterprises.length - 1];
@@ -519,7 +519,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 				$window.location.href = BaseService.getRootPath() + "/signin";
 			} else {
 				//跳转到手机号码验证
-				checkTel($scope.userInfo);
+//				checkTel($scope.userInfo);
 			}
 	});
 		$scope.logout = function() {