|
|
@@ -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>
|
|
|
|