|
|
@@ -1316,13 +1316,13 @@
|
|
|
tag += ' <div class="cp_detail">';
|
|
|
tag += ' <p class="tit">'+item.cpnNm+'</p>';
|
|
|
if (item.dcWay == '%') {
|
|
|
- tag += ' <strong class="sale_t won_t"><span>'+item.dcVal+'</span>%</strong>';
|
|
|
+ tag += ' <strong class="sale_t won_t"><span>'+item.dcVal.addComma()+'</span>%</strong>';
|
|
|
}else{
|
|
|
- tag += ' <strong class="sale_t won_t"><span>'+item.dcVal+'</span>원</strong>';
|
|
|
+ tag += ' <strong class="sale_t won_t"><span>'+item.dcVal.addComma()+'</span>원</strong>';
|
|
|
}
|
|
|
|
|
|
tag += ' <p class="cp_cont">'+item.useCondition+'</p>';
|
|
|
- tag += ' <span class="cp_cnt"><span>'+item.cpnCnt+'</span>장 보유</span>';
|
|
|
+ tag += ' <span class="cp_cnt"><span>'+item.cpnCnt.addComma()+'</span>장 보유</span>';
|
|
|
tag += ' </div>';
|
|
|
tag += ' <span class="cp_shape"></span>';
|
|
|
tag += ' </div>';
|
|
|
@@ -1346,7 +1346,19 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
|
|
|
+ /* var doubleSubmitFlag = false;
|
|
|
+ function doubleSubmitCheck(){
|
|
|
+ if(doubleSubmitFlag){
|
|
|
+ return doubleSubmitFlag;
|
|
|
+ }else{
|
|
|
+ doubleSubmitFlag = true;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
+
|
|
|
//쿠폰 다운로드
|
|
|
var fnQuickCouponDown = function(obj){
|
|
|
|
|
|
@@ -1354,8 +1366,9 @@
|
|
|
cfnGoToPage(_PAGE_LOGIN);
|
|
|
return false;
|
|
|
}
|
|
|
+ //if(doubleSubmitCheck()) return;
|
|
|
let cpnId = obj;
|
|
|
- gagajf.ajaxJsonSubmit('/mypage/quick/coupon/download', JSON.stringify({cpnId: cpnId}), fnQuickCouponCallBack);
|
|
|
+ gagajf.ajaxJsonSubmit('/mypage/quick/coupon/download', JSON.stringify({cpnId: cpnId}), fnQuickCouponCallBack, true);
|
|
|
}
|
|
|
|
|
|
// 쿠폰다운로드 콜백
|
|
|
@@ -1372,7 +1385,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 소유한 쿠폰 사용안내 모달
|
|
|
var useInfoCoupon = function (id) {
|
|
|
var data = {cpnId : id};
|