|
|
@@ -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() {
|