|
|
@@ -164,8 +164,8 @@
|
|
|
|
|
|
<!-- 주문고객정보 -->
|
|
|
<form id="orderForm" name="orderForm">
|
|
|
-<main role="" id="" class="container od">
|
|
|
- <section class="content odPayment od_gift">
|
|
|
+<main role="" id="" class="container od od_gift">
|
|
|
+ <section class="content odPayment">
|
|
|
<form action="" class="form_wrap">
|
|
|
<!-- 주문내역 -->
|
|
|
<div class="inner wide" id="orderListInfo" style="display:none"></div>
|
|
|
@@ -452,6 +452,11 @@ $(document).ready( function() {
|
|
|
|
|
|
// 1. AJAX 정보(회원정보로드)
|
|
|
custemerInfoSet();
|
|
|
+
|
|
|
+ // 2021.07.06
|
|
|
+ if (giftPackYn == "N") {
|
|
|
+ $("#orderForm .container").removeClass("od_gift");
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
window.onpageshow = function(event){
|
|
|
@@ -525,6 +530,29 @@ var entryInfoSet = function() {
|
|
|
success : function(result) {
|
|
|
$("#entryInfo").css("display", "block");
|
|
|
$("#entryInfo").html(result);
|
|
|
+
|
|
|
+ // 2021.07.06 값이 있으면 체크박스 활성화
|
|
|
+ if ($("#orderForm input[name=entryNo]").val() != "") {
|
|
|
+ if ($("#orderForm #chk-overs-agr").is(":checked") == false) {
|
|
|
+ $("#orderForm #chk-overs-agr").trigger("click");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 2021.07.06 개인통관부호 입력완료
|
|
|
+ $(".btn_entryNo").on("click", function(){
|
|
|
+ if ($("#orderForm input[name=entryNo]").val().length > 0 && $("#orderForm input[name=entryNo]").val().length < 13) {
|
|
|
+ $("#orderForm .t_err").show();
|
|
|
+ $("#orderForm input[name=entryNo]").addClass("err");
|
|
|
+ mcxDialog.alert("통관부호가 유효하지 않습니다. 다시 입력해주세요.");
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ $("#orderForm .entryNo").text($("#orderForm input[name=entryNo]").val());
|
|
|
+ $("#orderForm input[name=entryNo]").removeClass("err");
|
|
|
+ $("#orderForm .t_err").hide();
|
|
|
+ mcxDialog.alert("통관부호가 정상입력되었습니다.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -544,12 +572,6 @@ var madeInfoSet = function() {
|
|
|
success : function(result) {
|
|
|
$("#madeInfo").css("display", "block");
|
|
|
$("#madeInfo").html(result);
|
|
|
-
|
|
|
- // 2021.07.05 체크박스 동작 일치
|
|
|
- // 주문제작상품동의
|
|
|
- $("#chk-custom").on("click", function(){
|
|
|
-
|
|
|
- });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1561,7 +1583,7 @@ var dcAmtInfoSet = function() {
|
|
|
|
|
|
// 결제금액을 초과 할 수 없습니다.
|
|
|
if (pntDcAmt > realOrdAmt) {
|
|
|
- mcxDialog.alert("포인트를 입력하신 후 다시 시도해주세요.");
|
|
|
+ mcxDialog.alert("입력하신 포인트가 보유한 포인트보다 많습니다.");
|
|
|
// 포인트리셋기능
|
|
|
pntDcAmtReset();
|
|
|
return false;
|
|
|
@@ -1785,6 +1807,11 @@ var custDelvCpnInit = function() {
|
|
|
$(this).on("click", function(){
|
|
|
// 쿠폰적용
|
|
|
custCpnApply($(this), index, "delvCpn");
|
|
|
+
|
|
|
+ // 최대할인혜택적용 체크해제
|
|
|
+ if ($("#chk-maxdisc").is(":checked")) {
|
|
|
+ $("#chk-maxdisc").trigger("click");
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
@@ -2246,7 +2273,7 @@ var custCpnSumAmtCal = function() {
|
|
|
|
|
|
// 전체쿠폰 할인 금액 합계 적용
|
|
|
$(".maxdisc_amount .cpnDcAmt").text(getZeroMinusDelAmt(cpnDcSumAmt)); // 쿠폰할인금액합계
|
|
|
- $("#couponDcSumAmt").text(getZeroMinusDelAmt(cpnDcSumAmt)); // 쿠폰할인금액합계
|
|
|
+ $("#couponDcSumAmt").text(getZeroMinusDelAmt(goodsCartCpnSumAmt)); // 쿠폰할인금액합계
|
|
|
|
|
|
$("#orderAmtForm .cpnDcSumAmt").text(cpnDcSumAmt);
|
|
|
|