jsh77b 5 лет назад
Родитель
Сommit
34be3cff7e

+ 5 - 0
src/main/java/com/style24/front/biz/web/TsfCommonController.java

@@ -262,6 +262,8 @@ public class TsfCommonController extends TsfBaseController {
 			}
 		} 
 		
+		//deliveryAddrInfo.getRecipPhnno();
+		
 		mav.addObject("deliveryAddrInfo", deliveryAddrInfo);						// 배송지정보
 		mav.setViewName(super.getDeviceViewName("popup/DelvAddrModifyPop"));
 		
@@ -286,6 +288,9 @@ public class TsfCommonController extends TsfBaseController {
 			order.setCustNo(0);
 		}
 		
+		// recipPhnno '-' 처리
+		order.setHypenRecipPhone();
+		
 		coreOrderService.updateCustDeliveryAddr(order);
 		
 		return message.getMessage("SUCC_0001");

+ 6 - 1
src/main/java/com/style24/front/biz/web/TsfOrderController.java

@@ -188,7 +188,6 @@ public class TsfOrderController extends TsfBaseController {
 		} else {
 			// 2021.04.08 휴대폰번호 하이픈 처리
 			order.setHypenCellPhone();
-			log.info("order.getCellPhnno() ::: {}", order.getCellPhnno());
 		}
 
 		// 2.1 총알배송여부가 null 이면 Y로 설정
@@ -277,6 +276,8 @@ public class TsfOrderController extends TsfBaseController {
 			custemerInfo.setCustNm(order.getCustNm());
 			custemerInfo.setCellPhnno(order.getCellPhnno());
 			custemerInfo.setEmail(order.getEmail());
+			custemerInfo.setSexGb(order.getSexGb());
+			custemerInfo.setBirthYmd(order.getBirthYmd());
 		}
 		
 		ModelAndView mav = new ModelAndView();
@@ -666,6 +667,8 @@ public class TsfOrderController extends TsfBaseController {
 		log.info("order.getFreegiftValArr()    ::: {}", order.getFreegiftValArr());
 		log.info("order.getFreegiftValArr()    ::: {}", order.getFreegiftValArr());
 		log.info("order.getFreegiftSqArr()     ::: {}", order.getFreegiftSqArr());
+		log.info("order.getSexGb()             ::: {}", order.getSexGb());
+		log.info("order.getBirthYmd()          ::: {}", order.getBirthYmd());
 		
 		for(int i = 0 ; i < order.getFreegiftGoodsArr().length ; i++) {
 			log.info("order.getFreegiftGoodsArr()  ::: {}", order.getFreegiftGoodsArr()[i]);
@@ -732,6 +735,8 @@ public class TsfOrderController extends TsfBaseController {
 		// TODO 3. 주문정보 업데이트
 		coreOrderService.updateOrderInfo(order);
 		
+		// TODO 4. 보증보험 API 연동
+		
 		// 2021.03.16 주문완료화면이동처리
 		//mav.addObject("payment", param);
 		//mav.setViewName(super.getDeviceViewName("pg/kcpOrder"));

+ 2 - 0
src/main/webapp/WEB-INF/views/mob/order/OrderCustemerInfoMob.html

@@ -16,6 +16,8 @@
 <input type="hidden" name="custNm" 		th:value="${custemerInfo.custNm}"/>
 <input type="hidden" name="email" 		th:value="${custemerInfo.email}"/>
 <input type="hidden" name="cellPhnno" 	th:value="${custemerInfo.cellPhnno}"/>
+<input type="hidden" name="sexGb" 		th:value="${custemerInfo.sexGb}"/>
+<input type="hidden" name="birthYmd" 	th:value="${custemerInfo.birthYmd}"/>
 	
 <!-- 주문고객 -->
 <div class="foldGroup">

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/order/OrderDcAmtInfoMob.html

@@ -178,7 +178,7 @@
 											<!-- 스타일 포인트 3만원 이상 결제시 노출 -->
 											<th:block th:if="${orgGoodsSumAmt} >= 30000">
 												<div class="input_wrap">
-													<input type="text" name="pntDcAmtStr" class="form_control" maxlength="11" placeholder="사용할 포인트를 입력해주세요.">
+													<input type="text" name="pntDcAmtStr" class="form_control" maxlength="11" placeholder="사용할 포인트를 입력해주세요." onkeyup="inputNumberFormat(this);">
 													<button type="button" class="btn btn_dark btn_sm" id="btn_point_apply">
 														<span>적용</span>
 													</button>
@@ -210,7 +210,7 @@
 									<dd>
 										<div class="form_field">
 											<div class="input_wrap">
-												<input type="text" name="gfcdUseAmtStr" class="form_control" maxlength="11" placeholder="사용할 금액을 입력해주세요.">
+												<input type="text" name="gfcdUseAmtStr" class="form_control" maxlength="11" placeholder="사용할 금액을 입력해주세요." onkeyup="inputNumberFormat(this);">
 												<button type="button" class="btn btn_dark btn_sm" id="btn_gfcd_apply">
 													<span>적용</span>
 												</button>

+ 27 - 2
src/main/webapp/WEB-INF/views/mob/order/OrderFormMob.html

@@ -42,6 +42,8 @@
 				<th>recipBaseAddr</th>
 				<th>recipDtlAddr</th>
 				<th>delvMemo</th>
+				<th>sexGb</th>
+				<th>birthYmd</th>
 			</tr>
 			<tr style="height:30px;">
 				<td class="custNm"></td>
@@ -53,6 +55,8 @@
 				<td class="recipBaseAddr"></td>
 				<td class="recipDtlAddr"></td>
 				<td class="delvMemo"></td>
+				<td class="sexGb"></td>
+				<td class="birthYmd"></td>
 			</tr>
 		</tbody>
 	</table>
@@ -484,6 +488,9 @@ var custemerInfoSet = function() {
 				$("#orderAmtForm .custNm").text($("#orderForm input[name='custNm']").val());
 				$("#orderAmtForm .email").text($("#orderForm input[name='email']").val());
 				$("#orderAmtForm .cellPhnno").text($("#orderForm input[name='cellPhnno']").val());
+				
+				$("#orderAmtForm .sexGb").text($("#orderForm input[name='sexGb']").val());
+				$("#orderAmtForm .birthYmd").text($("#orderForm input[name='birthYmd']").val());
 			}
 			
 			// 1.2 개인통관부호 정보
@@ -958,6 +965,8 @@ var paymentInfoSet = function() {
 						,"recipBaseAddr"		: $("#orderAmtForm .recipBaseAddr").text()
 						,"recipDtlAddr"			: $("#orderAmtForm .recipDtlAddr").text()
 						,"delvMemo"				: $("#orderAmtForm .delvMemo").text()
+						,"sexGb"				: $("#orderAmtForm .sexGb").text()
+						,"birthYmd"				: $("#orderAmtForm .birthYmd").text()
 						,"prePntDcAmtYn"		: prePntDcAmtYn
 						,"orderDetailList"		: orderDetailList
 						,"delvFeeCdList"		: delvFeeCdList
@@ -1181,7 +1190,7 @@ var dcAmtInfoSet = function() {
 				$("#btn_point_apply").on("click", function(){
 					var rmPntAmt 			= parseInt($("#orderForm input[name='rmPntAmt']").val());
 					var freegiftUsePnt 		= parseInt($("#orderAmtForm .freegiftUsePnt").text());
-					var pntDcAmt 			= parseInt($("#orderForm input[name='pntDcAmtStr']").val());
+					var pntDcAmt 			= parseInt(uncomma($("#orderForm input[name='pntDcAmtStr']").val()));
 					var realOrdAmt 			= parseInt($("#orderAmtForm .realOrdSumAmt").text());
 					var applyPntDcAmt 		= (realOrdAmt * 40) / 100;
 					
@@ -1236,7 +1245,7 @@ var dcAmtInfoSet = function() {
 				// 1.8.8 상품권 적용버튼 기능
 				$("#btn_gfcd_apply").on("click", function(){
 					var rmGfcdAmt 		= parseInt($("#orderForm input[name='rmGfcdAmt']").val());
-					var gfcdUseAmt 		= parseInt($("#orderForm input[name='gfcdUseAmtStr']").val());
+					var gfcdUseAmt 		= parseInt(uncomma($("#orderForm input[name='gfcdUseAmtStr']").val()));
 					
 					if (gagajf.isNull($("#orderForm input[name=gfcdUseAmtStr]").val())) {
 						mcxDialog.alert("사용할 금액을 입력해주세요.");
@@ -2193,6 +2202,22 @@ var getZeroMinusDelAmt = function(tempAmt) {
 	
 	return rtnAmtStr;
 }
+
+// START ::: 2021.04.09 숫자입려 천단위 찍기
+var inputNumberFormat = function(obj) {
+    obj.value = comma(uncomma(obj.value));
+}
+
+var comma = function(str) {
+    str = String(str);
+    return str.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,');
+}
+
+var uncomma = function(str) {
+    str = String(str);
+    return str.replace(/[^\d]+/g, '');
+}
+// 2021.04.09 숫자입려 천단위 찍기 ::: END 
 </script>
 
 </th:block>

+ 4 - 0
src/main/webapp/WEB-INF/views/mob/order/OrderNoMemberMob.html

@@ -41,6 +41,8 @@
 				
 				<form class="form_wrap form_full" id="orderForm" th:action="@{'/order/form'}" th:method="post">
 					<input type="hidden" name="shotDelvUseYn" th:value="${order.shotDelvUseYn}" />
+					<input type="hidden" name="sexGb" />
+					<input type="hidden" name="birthYmd" />
 					<th:block th:each="cartSq , index : ${order.cartSqArr}">
 						<input type="hidden" name="cartSqArr" th:value="${cartSq}" />
 					</th:block>
@@ -199,6 +201,8 @@ var fnUpdateAuthInfoCallback = function (result) {
 	
 	$('#orderForm input[name=custNm]').val(result.sName);
 	$('#orderForm input[name=cellPhnno]').val(result.sMobileNo);
+	$('#orderForm input[name=sexGb]').val(result.sGender);
+	$('#orderForm input[name=birthYmd]').val(result.sBirthDate);
 }
 
 // 우편번호 DAUM을 이용한 우편번호 팝업 레이어

+ 5 - 0
src/main/webapp/WEB-INF/views/mob/popup/DelvAddrAddPopMob.html

@@ -268,6 +268,11 @@ var fnOpenDaumAddr = function() {
 	});
 	cfnOpenDaumAddr(daumZip);
 }
+
+//2021.04.09 하이픈처리
+$(document).on("keyup", "#deliveryAddForm input[name=recipPhnno]", function() { 
+	$(this).val( $(this).val().replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-") ); 
+});
 </script>
 
 

+ 5 - 0
src/main/webapp/WEB-INF/views/mob/popup/DelvAddrModifyPopMob.html

@@ -292,4 +292,9 @@ var fnOpenDaumAddr = function() {
 	
 	cfnOpenDaumAddr(daumZip);
 }
+
+//2021.04.09 하이픈처리
+$(document).on("keyup", "#deliveryModifyForm input[name=recipPhnno]", function() { 
+	$(this).val( $(this).val().replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-") ); 
+});
 </script>

+ 0 - 3
src/main/webapp/WEB-INF/views/web/order/OrderCouponApplyPopWeb.html

@@ -148,9 +148,6 @@ $(document).ready( function() {
 		var od_coupon_modify_selecter1 = new sCombo($(this));
 	});
 });
-//팝업 - 할인혜택 > 상품쿠폰변경 선택           
-//var od_coupon_modify_selecter1 = new sCombo('.od_pop.couponModify_pop #item1 .select_custom.coupon_list');
-//var od_coupon_modify_selecter2 = new sCombo('.od_pop.couponModify_pop #item2 .select_custom.coupon_list');
 </script>
 
 </html>

+ 2 - 0
src/main/webapp/WEB-INF/views/web/order/OrderCustemerInfoWeb.html

@@ -32,6 +32,8 @@
 	<input type="hidden" name="custNm" 		th:value="${custemerInfo.custNm}"/>
 	<input type="hidden" name="email" 		th:value="${custemerInfo.email}"/>
 	<input type="hidden" name="cellPhnno" 	th:value="${custemerInfo.cellPhnno}"/>
+	<input type="hidden" name="sexGb" 		th:value="${custemerInfo.sexGb}"/>
+	<input type="hidden" name="birthYmd" 	th:value="${custemerInfo.birthYmd}"/>
 	
 	<div class="area_mbinfo">
 		<dl>

+ 2 - 2
src/main/webapp/WEB-INF/views/web/order/OrderDcAmtInfoWeb.html

@@ -139,7 +139,7 @@
 								<!-- 스타일 포인트 3만원 이상 결제시 노출 -->
 								<th:block th:if="${orgGoodsSumAmt} >= 30000">
 									<div class="input_wrap">
-										<input type="text" name="pntDcAmtStr" class="form_control" maxlength="11" placeholder="사용할 포인트를 입력해주세요." onkeypress="return checkNumber(event);" onblur="return checkPntDcAmt(event);">
+										<input type="text" name="pntDcAmtStr" class="form_control" maxlength="11" placeholder="사용할 포인트를 입력해주세요." onkeyup="inputNumberFormat(this);">
 										<button type="button" class="btn btn_dark btn_sm" id="btn_point_apply">
 											<span>적용</span>
 										</button>
@@ -174,7 +174,7 @@
 							<div class="form_field">
 								<input type="hidden" name="rmGfcdAmt" th:value="${rmGfcdAmt}"/>
 								<div class="input_wrap">
-									<input type="text" name="gfcdUseAmtStr" class="form_control" maxlength="11" placeholder="사용할 금액을 입력해주세요." onkeypress="return checkNumber(event);" onblur="return checkGfcdAmt(event);">
+									<input type="text" name="gfcdUseAmtStr" class="form_control" maxlength="11" placeholder="사용할 금액을 입력해주세요." onkeyup="inputNumberFormat(this);">
 									<button type="button" class="btn btn_dark btn_sm" id="btn_gfcd_apply">
 										<span>적용</span>
 									</button>

+ 28 - 14
src/main/webapp/WEB-INF/views/web/order/OrderFormWeb.html

@@ -31,6 +31,7 @@
 
 <!-- 주문금액정보표현 -->
 <form id="orderAmtForm" name="orderAmtForm">
+	<!-- 주문자정보 -->
 	<table border="1" style="font-size:10px; text-align:center; margin-top:20px; display:none; width:100%;" name="orderInfo" id="orderInfo">
 		<tbody>
 			<tr style="height:30px;">
@@ -43,6 +44,8 @@
 				<th>recipBaseAddr</th>
 				<th>recipDtlAddr</th>
 				<th>delvMemo</th>
+				<th>sexGb</th>
+				<th>birthYmd</th>
 			</tr>
 			<tr style="height:30px;">
 				<td class="custNm"></td>
@@ -54,9 +57,12 @@
 				<td class="recipBaseAddr"></td>
 				<td class="recipDtlAddr"></td>
 				<td class="delvMemo"></td>
+				<td class="sexGb"></td>
+				<td class="birthYmd"></td>
 			</tr>
 		</tbody>
 	</table>
+	<!-- //주문자정보 -->
 	
 	<!-- 사은품정보 -->
 	<table border="1" style="font-size:10px; text-align:center; margin-top:20px; display:none; width:100%;" name="freegiftInfo">
@@ -73,6 +79,7 @@
 			<td class="freegiftGoodsArr"></td>
 		</tr>
 	</table>
+	<!-- //사은품정보 -->
 	
 	<!-- 주문상세금액 -->
 	<table border="1" style="font-size:10px; text-align:center; margin-top:20px; display:none; width:100%;" name="orderDetailInfo" id="orderDetailInfo">
@@ -165,6 +172,7 @@
 			</th:block>
 		</th:block>
 	</table>
+	<!-- //주문상세금액 -->
 	
 	<!-- 배송단위목록 -->
 	<table border="1" style="font-size:10px; text-align:center;  margin-top:20px; display:none; width:100%;" name="delvFeeCdInfo" id="delvFeeCdInfo">
@@ -185,6 +193,7 @@
 			</tr>
 		</th:block>
 	</table>
+	<!-- //배송단위목록 -->
 	
 	<!-- 주문금액합계 -->
 	<table border="1" style="font-size:10px; text-align:center;  margin-top:20px; display:none; width:100%;" name="orderSumAmtInfo" id="orderSumAmtInfo">
@@ -227,6 +236,7 @@
 			<td class="savePntSumAmt">0</td>
 		</tr>
 	</table>
+	<!-- //주문금액합계 -->
 </form>
 <!-- //주문금액정보표현 -->
 
@@ -585,6 +595,9 @@ var custemerInfoSet = function() {
 				$("#orderAmtForm .custNm").text($("#orderForm input[name='custNm']").val());
 				$("#orderAmtForm .email").text($("#orderForm input[name='email']").val());
 				$("#orderAmtForm .cellPhnno").text($("#orderForm input[name='cellPhnno']").val());
+				
+				$("#orderAmtForm .sexGb").text($("#orderForm input[name='sexGb']").val());
+				$("#orderAmtForm .birthYmd").text($("#orderForm input[name='birthYmd']").val());
 			}
 			// 1.2 배송정보로드
 			deliveryAddrInfoSet(jsonObj, true);
@@ -1036,6 +1049,8 @@ var paymentInfoSet = function() {
 						,"recipBaseAddr"		: $("#orderAmtForm .recipBaseAddr").text()
 						,"recipDtlAddr"			: $("#orderAmtForm .recipDtlAddr").text()
 						,"delvMemo"				: $("#orderAmtForm .delvMemo").text()
+						,"sexGb"				: $("#orderAmtForm .sexGb").text()
+						,"birthYmd"				: $("#orderAmtForm .birthYmd").text()
 						,"prePntDcAmtYn"		: prePntDcAmtYn
 						,"orderDetailList"		: orderDetailList
 						,"delvFeeCdList"		: delvFeeCdList
@@ -1221,7 +1236,7 @@ var dcAmtInfoSet = function() {
 				$("#btn_point_apply").on("click", function(){
 					var rmPntAmt 			= parseInt($("#orderForm input[name='rmPntAmt']").val());
 					var freegiftUsePnt 		= parseInt($("#orderAmtForm .freegiftUsePnt").text());
-					var pntDcAmt 			= parseInt($("#orderForm input[name='pntDcAmtStr']").val());
+					var pntDcAmt 			= parseInt(uncomma($("#orderForm input[name='pntDcAmtStr']").val()));
 					var realOrdAmt 			= parseInt($("#orderAmtForm .realOrdSumAmt").text());
 					var applyPntDcAmt 		= (realOrdAmt * 40) / 100;
 					
@@ -1276,7 +1291,7 @@ var dcAmtInfoSet = function() {
 				// 1.8.8 상품권 적용버튼 기능
 				$("#btn_gfcd_apply").on("click", function(){
 					var rmGfcdAmt 		= parseInt($("#orderForm input[name='rmGfcdAmt']").val());
-					var gfcdUseAmt 		= parseInt($("#orderForm input[name='gfcdUseAmtStr']").val());
+					var gfcdUseAmt 		= parseInt(uncomma($("#orderForm input[name='gfcdUseAmtStr']").val()));
 					
 					if (gagajf.isNull($("#orderForm input[name=gfcdUseAmtStr]").val())) {
 						mcxDialog.alert("사용할 금액을 입력해주세요.");
@@ -2222,23 +2237,22 @@ var getZeroMinusDelAmt = function(tempAmt) {
 	return rtnAmtStr;
 }
 
-// 숫자만체크
-var checkNumber = function(event) {
-	if (event.key >= 0 && event.key <= 9) {
-		return true;
-	}
-	return false;
+//START ::: 2021.04.09 숫자입려 천단위 찍기
+var inputNumberFormat = function(obj) {
+    obj.value = comma(uncomma(obj.value));
 }
 
-// 포인트 유효성 체크
-var checkPntDcAmt = function(event) {
-	return true;
+var comma = function(str) {
+    str = String(str);
+    return str.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,');
 }
 
-//포인트 유효성 체크 
-var checkGfcdAmt = function(event) {
-	return true;
+var uncomma = function(str) {
+    str = String(str);
+    return str.replace(/[^\d]+/g, '');
 }
+// 2021.04.09 숫자입려 천단위 찍기 ::: END 
+
 
 </script>
 

+ 4 - 0
src/main/webapp/WEB-INF/views/web/order/OrderNoMemberWeb.html

@@ -46,6 +46,8 @@
 				<div class="cont_body">
 					<form class="form_wrap form_col_c form_full" id="orderForm" th:action="@{'/order/form'}" th:method="post">
 						<input type="hidden" name="shotDelvUseYn" th:value="${order.shotDelvUseYn}" /><!-- 장바구니화면 총알배송사용여부 -->
+						<input type="hidden" name="sexGb" />
+						<input type="hidden" name="birthYmd" />
 						<!-- 장바구니화면 시퀀스 배열 등록 -->
 						<th:block th:each="cartSq , index : ${order.cartSqArr}">
 							<input type="hidden" name="cartSqArr" th:value="${cartSq}" />
@@ -233,6 +235,8 @@ var fnUpdateAuthInfoCallback = function (result) {
 	
 	$('#orderForm input[name=custNm]').val(result.sName);
 	$('#orderForm input[name=cellPhnno]').val(result.sMobileNo);
+	$('#orderForm input[name=sexGb]').val(result.sGender);
+	$('#orderForm input[name=birthYmd]').val(result.sBirthDate);
 }
 
 // 우편번호 DAUM을 이용한 우편번호 팝업 레이어

+ 12 - 1
src/main/webapp/WEB-INF/views/web/popup/DelvAddrAddPopWeb.html

@@ -24,7 +24,7 @@
 					<label class="input_label sr-only">휴대폰 번호</label>
 					<div class="ui_col_12">
 						<div class="input_wrap"> 
-							<input type="text" name="recipPhnno" placeholder="휴대폰 번호" class="form_control" minlength="10" maxlength="11" required="required" data-valid-type="numeric" data-valid-name="휴대폰"/>
+							<input type="text" name="recipPhnno" placeholder="휴대폰 번호" class="form_control" minlength="10" maxlength="14"/>
 						</div>
 					</div>
 				</div>
@@ -191,6 +191,12 @@ var deliveryAddFormCheck = function() {
 		return false;
 	}
 	
+	if ($("#deliveryAddForm input[name=recipPhnno]").val().length < 10) {
+		mcxDialog.alert("휴대폰번호를 정확히 입력해주세요.");
+		$('#deliveryAddForm input[name=recipPhnno]').focus();
+		return false;
+	}
+	
 	if (gagajf.isNull($("#deliveryAddForm input[name=recipZipcode]").val())) {
 		mcxDialog.alert("배송주소를 입력해주세요.");
 		$('#deliveryAddForm input[name=recipAddr]').focus();
@@ -226,6 +232,11 @@ var fnOpenDaumAddr = function() {
 	});
 	cfnOpenDaumAddr(daumZip);
 }
+
+// 2021.04.09 하이픈처리
+$(document).on("keyup", "#deliveryAddForm input[name=recipPhnno]", function() { 
+	$(this).val( $(this).val().replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-") ); 
+});
 </script>
 
 

+ 18 - 1
src/main/webapp/WEB-INF/views/web/popup/DelvAddrModifyPopWeb.html

@@ -31,7 +31,7 @@
 					<label class="input_label sr-only">휴대폰 번호</label>
 					<div class="ui_col_12">
 						<div class="input_wrap"> 
-							<input type="text" name="recipPhnno" placeholder="휴대폰 번호" class="form_control" minlength="10" maxlength="11" required="required" data-valid-type="numeric" data-valid-name="휴대폰" th:value="${deliveryAddrInfo.recipPhnno}"/>
+							<input type="text" name="recipPhnno" placeholder="휴대폰 번호" class="form_control" minlength="10" maxlength="14" th:value="${deliveryAddrInfo.recipPhnno}"/>
 						</div>
 					</div>
 				</div>
@@ -214,6 +214,18 @@ var deliveryModifyFormCheck = function() {
 		return false;
 	}
 	
+	if (gagajf.isNull($("#deliveryModifyForm input[name=recipPhnno]").val())) {
+		mcxDialog.alert("휴대폰번호를 입력해주세요.");
+		$('#deliveryAddForm input[name=recipPhnno]').focus();
+		return false;
+	}
+	
+	if ($("#deliveryModifyForm input[name=recipPhnno]").val().length < 10) {
+		mcxDialog.alert("휴대폰번호를 정확히 입력해주세요.");
+		$('#deliveryAddForm input[name=recipPhnno]').focus();
+		return false;
+	}
+	
 	if (gagajf.isNull($("#deliveryModifyForm input[name=recipZipcode]").val())) {
 		mcxDialog.alert("배송주소를 입력해주세요.");
 		$('#deliveryModifyForm input[name=recipAddr]').focus();
@@ -250,4 +262,9 @@ var fnOpenDaumAddr = function() {
 	
 	cfnOpenDaumAddr(daumZip);
 }
+
+// 2021.04.09 하이픈처리
+$(document).on("keyup", "#deliveryModifyForm input[name=recipPhnno]", function() { 
+	$(this).val( $(this).val().replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3").replace("--", "-") ); 
+});
 </script>