|
|
@@ -1007,6 +1007,7 @@ var paymentInfoSet = function() {
|
|
|
|
|
|
// 결제하기
|
|
|
$("#btn_payment").on("click", function(){
|
|
|
+
|
|
|
// 사은품정보
|
|
|
var prePntDcAmtYn = $("#orderForm input[name='rdi-beforpoint']:checked").val();
|
|
|
var paynormal = $("#orderForm input[name='rdi-paynormal']:checked").val();
|
|
|
@@ -1263,8 +1264,15 @@ var paymentInfoSet = function() {
|
|
|
xhr.setRequestHeader("AJAX" , "true");
|
|
|
xhr.setRequestHeader('Accept' , 'application/json');
|
|
|
xhr.setRequestHeader('Content-Type' , 'application/json');
|
|
|
+
|
|
|
+ // 2021.07.24 유효성체크 분리작업
|
|
|
+ gagajf.showProgressbar(true);
|
|
|
},
|
|
|
success : function(result) {
|
|
|
+
|
|
|
+ // 2021.07.24 유효성체크 분리작업
|
|
|
+ gagajf.showProgressbar(false);
|
|
|
+
|
|
|
// 결재정보로드
|
|
|
$("#order_info").html(result);
|
|
|
|
|
|
@@ -1393,6 +1401,8 @@ var dcAmtInfoSet = function() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ var custCpntemp = true;
|
|
|
+
|
|
|
// 1.8.4 쿠폰적용버튼
|
|
|
$("#btn_coupon_apply").on("click", function(){
|
|
|
|
|
|
@@ -1413,9 +1423,32 @@ var dcAmtInfoSet = function() {
|
|
|
$("#chk-maxdisc").attr("checked", false);
|
|
|
}
|
|
|
|
|
|
+ custCpntemp = false;
|
|
|
$(".close-modal").trigger("click"); // 팝업닫기
|
|
|
});
|
|
|
|
|
|
+ // 2021.07.24 쿠폰닫기버튼일때도 쿠폰적용
|
|
|
+ $(".close-modal").live("click", function() {
|
|
|
+ if (custCpntemp) {
|
|
|
+ // 상품쿠폰적용
|
|
|
+ $('#couponApplyForm .goodsCpn ul li.selected').each(function(index){
|
|
|
+ custCpnApply($(this));
|
|
|
+ });
|
|
|
+
|
|
|
+ // 장바구니쿠폰적용
|
|
|
+ $('#couponApplyForm .cartCpn').each(function(index){
|
|
|
+ if ($(this).find("input[name=rdi-cart-coupon]").is(":checked")) {
|
|
|
+ custCpnApply($(this));
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 최대할인혜택적용 체크해제
|
|
|
+ if ($("#chk-maxdisc").is(":checked")) {
|
|
|
+ $("#chk-maxdisc").attr("checked", false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
// 1.8.5 쿠폰 최대할인금액 초기화 버튼 설정
|
|
|
$("#chk-maxdisc").on("click", function(){
|
|
|
// 2021.04.23 보유쿠폰이 없을때 적용
|
|
|
@@ -1447,8 +1480,10 @@ var dcAmtInfoSet = function() {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- // 쿠폰초기화
|
|
|
- custGoodsCpnInit();
|
|
|
+ // 쿠폰초기화 2021.07.24 쿠폰팝업 초기화 기능 막음
|
|
|
+ //custGoodsCpnInit();
|
|
|
+
|
|
|
+ custCpntemp = true;
|
|
|
|
|
|
$("#couponModifyPop").modal("show");
|
|
|
});
|