| | |
| | | if(result.data.data.reservationNotifyTime === "realTime"){ |
| | | $scope.vm.form.realtimeNotify = true; |
| | | }else{ |
| | | $scope.vm.form.reservationNotifyTime = result.data.data.reservationNotifyTime; |
| | | $scope.vm.form.reservationNotifyTime = ""; |
| | | } |
| | | } |
| | | else { |
| | |
| | | if (result.message.status === "success") { |
| | | if (result.data != null) { |
| | | $rootScope.user = result.data; // 전역으로 사용하는 로그인 사용자 정보. |
| | | // 전화번호 하이픈 추가하여 조회 |
| | | $scope.vm.phone = $rootScope.user.phone; |
| | | let hyphen = $scope.vm.phone.trim(); |
| | | let phone = hyphen.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); |
| | | $rootScope.user.phone = phone; |
| | | } |
| | | else { |
| | | throw {message: $filter("translate")("users.notExistUserSession")}; // "사용자 세션이 존재하지 않습니다." |