|
|
@@ -103,8 +103,9 @@
|
|
|
<input type="hidden" name="currPrice" th:value="${cart.currPrice}" />
|
|
|
<input type="hidden" name="tmtbDcAmt" th:value="${cart.tmtbDcAmt}" />
|
|
|
<input type="hidden" name="soldoutYn" th:value="${cart.soldoutYn}" />
|
|
|
- <input type="hidden" name="ordCanYn" th:value="${cart.ordCanYn}" />
|
|
|
- <input type="hidden" name="cartSq" th:value="${cart.cartSq}" />
|
|
|
+ <input type="hidden" name="ordCanYn" th:value="${cart.ordCanYn}" />
|
|
|
+ <input type="hidden" name="goodsCd" th:value="${cart.goodsCd}" />
|
|
|
+ <input type="hidden" name="cartSq" th:value="${cart.cartSq}" />
|
|
|
|
|
|
<button type="button" class="btn_delete" th:onclick="|deleteCart(${cart.cartSq}, 'cart')|"><span><em class="sr-only">상품삭제</em></span></button>
|
|
|
<div class="goods_detail">
|
|
|
@@ -115,7 +116,7 @@
|
|
|
<label th:for="|od_item_${cart.cartSq}|"><span class="sr-only">상품선택</span></label>
|
|
|
</div>
|
|
|
<div class="thumb_box">
|
|
|
- <a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|">
|
|
|
+ <a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}', '${cart.ordCanYn}')|">
|
|
|
<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm} + '?RS=100'" src="/" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'" th:alt="${cart.sysImgNm}" alt="">
|
|
|
</a>
|
|
|
</div>
|
|
|
@@ -124,7 +125,7 @@
|
|
|
<div class="brand">
|
|
|
<span th:text="|${cart.brandEnm} ${cart.brandKnm}|"></span>
|
|
|
</div>
|
|
|
- <div class="name"><a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|" th:text="${cart.goodsNm}"></a></div>
|
|
|
+ <div class="name"><a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}', '${cart.ordCanYn}')|" th:text="${cart.goodsNm}"></a></div>
|
|
|
</div>
|
|
|
<div class="od_opt">
|
|
|
<th:block th:each="opt, index : ${cart.itemNmArr}">
|
|
|
@@ -144,8 +145,8 @@
|
|
|
<p class="point"><span th:text="${#numbers.formatInteger(cart.savePntAmt, 1, 'COMMA')}"></span>P 적립예정</p>
|
|
|
</div>
|
|
|
<div class="od_exinfo">
|
|
|
- <span th:if="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'Y') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'Y')}" class="applyTmtb btn_moresale order_badge order_bullet_badge">다다익선 할인 적용</span>
|
|
|
- <a th:if="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'N') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'N')}" href="javascript:;" id="btn_moresale_pop" class="notApplyTmtb btn_moresale btn_moresale_pop order_badge order_bullet_badge">다다익선 할인 대상</a>
|
|
|
+ <span th:style="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'Y') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'Y') ? 'display:inline-block' : 'display:none'}" class="applyTmtb btn_moresale order_badge order_bullet_badge">다다익선 할인 적용</span>
|
|
|
+ <a th:style="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'N') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'N') ? 'display:inline-block' : 'display:none'}" href="javascript:void(0);" onclick="fnGetTmtbSalesGoods(this);" id="btn_moresale_pop" class="notApplyTmtb btn_moresale btn_moresale_pop order_badge order_bullet_badge">다다익선 할인 대상</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -204,8 +205,9 @@
|
|
|
<input type="hidden" name="currPrice" th:value="${cart.currPrice}" />
|
|
|
<input type="hidden" name="tmtbDcAmt" th:value="${cart.tmtbDcAmt}" />
|
|
|
<input type="hidden" name="soldoutYn" th:value="${cart.soldoutYn}" />
|
|
|
- <input type="hidden" name="ordCanYn" th:value="${cart.ordCanYn}" />
|
|
|
- <input type="hidden" name="cartSq" th:value="${cart.cartSq}" />
|
|
|
+ <input type="hidden" name="ordCanYn" th:value="${cart.ordCanYn}" />
|
|
|
+ <input type="hidden" name="goodsCd" th:value="${cart.goodsCd}" />
|
|
|
+ <input type="hidden" name="cartSq" th:value="${cart.cartSq}" />
|
|
|
|
|
|
<button type="button" class="btn_delete" th:onclick="|deleteCart(${cart.cartSq}, 'cart')|"><span><em class="sr-only">상품삭제</em></span></button>
|
|
|
<div class="goods_detail">
|
|
|
@@ -216,7 +218,7 @@
|
|
|
<label th:for="|od_item_${cart.cartSq}|"><span class="sr-only">상품선택</span></label>
|
|
|
</div>
|
|
|
<div class="thumb_box">
|
|
|
- <a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|">
|
|
|
+ <a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}', '${cart.ordCanYn}')|">
|
|
|
<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm} + '?RS=100'" src="/" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'" th:alt="${cart.sysImgNm}" alt="">
|
|
|
</a>
|
|
|
</div>
|
|
|
@@ -225,7 +227,7 @@
|
|
|
<div class="brand">
|
|
|
<span th:text="|${cart.brandEnm} ${cart.brandKnm}|"></span>
|
|
|
</div>
|
|
|
- <div class="name"><a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|" th:text="${cart.goodsNm}"></a></div>
|
|
|
+ <div class="name"><a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}', '${cart.ordCanYn}')|" th:text="${cart.goodsNm}"></a></div>
|
|
|
</div>
|
|
|
<div class="od_opt">
|
|
|
<th:block th:each="opt, index : ${cart.itemNmArr}">
|
|
|
@@ -245,8 +247,8 @@
|
|
|
<p class="point"><span th:text="${#numbers.formatInteger(cart.savePntAmt, 1, 'COMMA')}"></span>P 적립예정</p>
|
|
|
</div>
|
|
|
<div class="od_exinfo">
|
|
|
- <span th:if="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'Y') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'Y')}" class="applyTmtb btn_moresale order_badge order_bullet_badge">다다익선 할인 적용</span>
|
|
|
- <a th:if="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'N') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'N')}" href="javascript:;" id="btn_moresale_pop" class="notApplyTmtb btn_moresale btn_moresale_pop order_badge order_bullet_badge">다다익선 할인 대상</a>
|
|
|
+ <span th:style="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'Y') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'Y') ? 'display:inline-block' : 'display:none'}" class="applyTmtb btn_moresale order_badge order_bullet_badge">다다익선 할인 적용</span>
|
|
|
+ <a th:style="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'N') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'N') ? 'display:inline-block' : 'display:none'}" href="javascript:void(0);" onclick="fnGetTmtbSalesGoods(this);" id="btn_moresale_pop" class="notApplyTmtb btn_moresale btn_moresale_pop order_badge order_bullet_badge">다다익선 할인 대상</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -301,7 +303,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="goods_dlvr_save" th:style="${'Y'.equals(order.delvYn) and order.wmsDelvFee > 0 ? 'display:block' : 'display:none'}">
|
|
|
- <a href="javascript:;" id="btn_dlvrSave_pop" class="btn_popup_save">배송비 SAVE 상품 보기</a>
|
|
|
+ <a th:href="|javascript:fnGetDelvFeeSaveGoods('WMS', '${order.minOrdAmt - order.compSumPrice}');|" id="btn_dlvrSave_pop" class="btn_popup_save">배송비 SAVE 상품 보기</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- //STYLE24 배송 -->
|
|
|
@@ -324,9 +326,10 @@
|
|
|
<input type="hidden" name="amtTmtbNm" th:value="${cart.amtTmtbNm}" />
|
|
|
<input type="hidden" name="currPrice" th:value="${cart.currPrice}" />
|
|
|
<input type="hidden" name="soldoutYn" th:value="${cart.soldoutYn}" />
|
|
|
- <input type="hidden" name="ordCanYn" th:value="${cart.ordCanYn}" />
|
|
|
+ <input type="hidden" name="ordCanYn" th:value="${cart.ordCanYn}" />
|
|
|
<input type="hidden" name="tmtbDcAmt" th:value="${cart.tmtbDcAmt}" />
|
|
|
- <input type="hidden" name="cartSq" th:value="${cart.cartSq}" />
|
|
|
+ <input type="hidden" name="goodsCd" th:value="${cart.goodsCd}" />
|
|
|
+ <input type="hidden" name="cartSq" th:value="${cart.cartSq}" />
|
|
|
|
|
|
<button type="button" class="btn_delete"><span><em class="sr-only">상품삭제</em></span></button>
|
|
|
<div class="goods_detail">
|
|
|
@@ -337,7 +340,7 @@
|
|
|
<label th:for="|od_item_${cart.cartSq}|"><span class="sr-only">상품선택</span></label>
|
|
|
</div>
|
|
|
<div class="thumb_box">
|
|
|
- <a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|">
|
|
|
+ <a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}', '${cart.ordCanYn}')|">
|
|
|
<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm} + '?RS=100'" src="/" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'" th:alt="${cart.sysImgNm}" alt="">
|
|
|
</a>
|
|
|
</div>
|
|
|
@@ -346,7 +349,7 @@
|
|
|
<div class="brand">
|
|
|
<span th:text="|${cart.brandEnm} ${cart.brandKnm}|"></span>
|
|
|
</div>
|
|
|
- <div class="name"><a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|" th:text="${cart.goodsNm}"></a></div>
|
|
|
+ <div class="name"><a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}', '${cart.ordCanYn}')|" th:text="${cart.goodsNm}"></a></div>
|
|
|
</div>
|
|
|
<div class="od_opt">
|
|
|
<th:block th:each="opt, index : ${cart.itemNmArr}">
|
|
|
@@ -366,8 +369,8 @@
|
|
|
<p class="point"><span th:text="${#numbers.formatInteger(cart.savePntAmt, 1, 'COMMA')}"></span>P 적립예정</p>
|
|
|
</div>
|
|
|
<div class="od_exinfo">
|
|
|
- <span th:if="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'Y') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'Y')}" class="applyTmtb btn_moresale order_badge order_bullet_badge">다다익선 할인 적용</span>
|
|
|
- <a th:if="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'N') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'N')}" href="javascript:;" id="btn_moresale_pop" class="notApplyTmtb btn_moresale btn_moresale_pop order_badge order_bullet_badge">다다익선 할인 대상</a>
|
|
|
+ <span th:style="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'Y') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'Y') ? 'display:inline-block' : 'display:none'}" class="applyTmtb btn_moresale order_badge order_bullet_badge">다다익선 할인 적용</span>
|
|
|
+ <a th:style="${(cart.qtyTmtbSq > 0 and cart.applyQtySectionYn == 'N') or (cart.amtTmtbSq > 0 and cart.applyAmtSectionYn == 'N') ? 'display:inline-block' : 'display:none'}" href="javascript:void(0);" onclick="fnGetTmtbSalesGoods(this);" id="btn_moresale_pop" class="notApplyTmtb btn_moresale btn_moresale_pop order_badge order_bullet_badge">다다익선 할인 대상</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -419,7 +422,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="goods_dlvr_save" th:if="${'Y'.equals(cart.addDelvFeeYn)}" th:style="${'Y'.equals(cart.delvYn) and cart.delvFee > 0 ? 'display:block' : 'display:none'}">
|
|
|
- <a href="javascript:;" id="btn_dlvrSave_pop" class="btn_popup_save">배송비 SAVE 상품 보기</a>
|
|
|
+ <a th:href="|javascript:fnGetDelvFeeSaveGoods('${cart.delvFeeCd}', '${cart.minOrdAmt - cart.compSumPrice}');|" id="btn_dlvrSave_pop" class="btn_popup_save">배송비 SAVE 상품 보기</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -881,12 +884,15 @@
|
|
|
$("#cartListForm .shotCartInfo input[name=cartSq]").each(function() {
|
|
|
if(shotList[i].cartSq == $(this).val()) {
|
|
|
let shot = shotList[i];
|
|
|
+ $(this).parent().find("input[name=applyQtySectionYn]").val(shot.applyQtySectionYn);
|
|
|
+ $(this).parent().find("input[name=applyAmtSectionYn]").val(shot.applyQtySectionYn);
|
|
|
|
|
|
// 다다익선 적용 정보 생성성
|
|
|
if((shot.qtyTmtbSq > 0 && shot.applyQtySectionYn == "Y") || (shot.amtTmtbSq > 0 && shot.applyAmtSectionYn == "Y")) {
|
|
|
$(this).parent().find(".applyTmtb").show();
|
|
|
}
|
|
|
|
|
|
+ // 다다익선 상품보기 노출
|
|
|
if((shot.qtyTmtbSq > 0 && shot.applyQtySectionYn == "N") || (shot.amtTmtbSq > 0 && shot.applyAmtSectionYn == "N")) {
|
|
|
$(this).parent().find(".notApplyTmtb").show();
|
|
|
}
|
|
|
@@ -907,13 +913,14 @@
|
|
|
$("#cartListForm .wmsCartInfo input[name=cartSq]").each(function() {
|
|
|
if(wmsList[i].cartSq == $(this).val()) {
|
|
|
let wms = wmsList[i];
|
|
|
- $(this).parent().find(".od_moresale .applyTmtbNm > ul").html("");
|
|
|
- $(this).parent().find(".od_moresale .notApplyTmtbNm > ul").html("");
|
|
|
+ $(this).parent().find("input[name=applyQtySectionYn]").val(wms.applyQtySectionYn);
|
|
|
+ $(this).parent().find("input[name=applyAmtSectionYn]").val(wms.applyQtySectionYn);
|
|
|
|
|
|
// 다다익선 적용 정보 생성성
|
|
|
if((wms.qtyTmtbSq > 0 && wms.applyQtySectionYn == "Y") || (wms.amtTmtbSq > 0 && wms.applyAmtSectionYn == "Y")) {
|
|
|
$(this).parent().find(".applyTmtb").show();
|
|
|
}
|
|
|
+
|
|
|
if((wms.qtyTmtbSq > 0 && wms.applyQtySectionYn == "N") || (wms.amtTmtbSq > 0 && wms.applyAmtSectionYn == "N")) {
|
|
|
$(this).parent().find(".notApplyTmtb").show();
|
|
|
}
|
|
|
@@ -945,8 +952,8 @@
|
|
|
$("#cartListForm .delvList .delvCartInfo input[name=cartSq]").each(function() {
|
|
|
if(delvList[i].cartSq == $(this).val()) {
|
|
|
let delv = delvList[i];
|
|
|
- $(this).parent().find(".od_moresale .applyTmtbNm > ul").html("");
|
|
|
- $(this).parent().find(".od_moresale .notApplyTmtbNm > ul").html("");
|
|
|
+ $(this).parent().find("input[name=applyQtySectionYn]").val(delv.applyQtySectionYn);
|
|
|
+ $(this).parent().find("input[name=applyAmtSectionYn]").val(delv.applyQtySectionYn);
|
|
|
|
|
|
// 다다익선 적용 정보 생성성
|
|
|
if((delv.qtyTmtbSq > 0 && delv.applyQtySectionYn == "Y") || (delv.amtTmtbSq > 0 && delv.applyAmtSectionYn == "Y")) {
|
|
|
@@ -1215,8 +1222,12 @@
|
|
|
}
|
|
|
|
|
|
// 페이지 이동
|
|
|
- function fnGoToGoodsDetail(goodsCd) {
|
|
|
- cfnGoToPage(_PAGE_GOODS_DETAIL + goodsCd);
|
|
|
+ function fnGoToGoodsDetail(goodsCd, ordCanYn) {
|
|
|
+ if(ordCanYn == "Y" || !ordCanYn) {
|
|
|
+ cfnGoToPage(_PAGE_GOODS_DETAIL + goodsCd);
|
|
|
+ } else {
|
|
|
+ mcxDialog.alert("현재 구매가 불가능한 상품입니다.");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 전체선택 버튼
|