|
@@ -142,12 +142,17 @@
|
|
|
<button th:if="${cart.soldoutYn.equals('N')}" type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
|
|
<button th:if="${cart.soldoutYn.equals('N')}" type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
|
|
|
</p>
|
|
</p>
|
|
|
<p class="util">
|
|
<p class="util">
|
|
|
- <span>
|
|
|
|
|
- <button type="button" class="btn_favorite" th:classappend="${cart.wishCnt > 0} ? active"><span><i class="ico ico_like2"></i><em class="sr-only">관심상품 추가</em></span></button>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <button type="button" class="btn_favorite" th:classappend="${cart.wishCnt > 0} ? active" onclick="cfnPutWishList(this)" th:goodsCd="${cart.goodsCd}" th:ithrCd="${cart.ithrCd}" th:contentsLoc="${cart.contentsLoc}">
|
|
|
<span>
|
|
<span>
|
|
|
- <button type="button" class="btn_delete" th:onclick="|deleteCart(${cart.cartSq})|"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <i class="ico ico_like2"></i>
|
|
|
|
|
+ <em class="sr-only">관심상품 추가</em>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <button type="button" class="btn_delete" th:onclick="|deleteCart(${cart.cartSq})|"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
|
|
|
|
|
+ </span>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -272,12 +277,12 @@
|
|
|
<button th:if="${cart.soldoutYn.equals('N')}" type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
|
|
<button th:if="${cart.soldoutYn.equals('N')}" type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
|
|
|
</p>
|
|
</p>
|
|
|
<p class="util">
|
|
<p class="util">
|
|
|
- <span>
|
|
|
|
|
- <button type="button" class="btn_favorite"><span><i class="ico ico_like2"></i><em class="sr-only">관심상품 추가</em></span></button>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <button type="button" class="btn_favorite" th:classappend="${cart.wishCnt > 0} ? active" onclick="cfnPutWishList(this)" th:goodsCd="${cart.goodsCd}" th:ithrCd="${cart.ithrCd}" th:contentsLoc="${cart.contentsLoc}"><span><i class="ico ico_like2"></i><em class="sr-only">관심상품 추가</em></span></button>
|
|
|
|
|
+ </span>
|
|
|
<span>
|
|
<span>
|
|
|
- <button type="button" class="btn_delete" th:onclick="|deleteCart(${cart.cartSq})|"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <button type="button" class="btn_delete" th:onclick="|deleteCart(${cart.cartSq})|"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
|
|
|
|
|
+ </span>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -308,8 +313,8 @@
|
|
|
<div class="tit_box">
|
|
<div class="tit_box">
|
|
|
<h3>결제 정보</h3>
|
|
<h3>결제 정보</h3>
|
|
|
<span>
|
|
<span>
|
|
|
- <em class="number" th:text="${order.totCartCnt}"></em>개의 상품
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <em class="number" th:text="${order.totCartCnt}"></em>개의 상품
|
|
|
|
|
+ </span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="od_amount_box">
|
|
<div class="od_amount_box">
|
|
|
<dl>
|
|
<dl>
|
|
@@ -364,10 +369,10 @@
|
|
|
<span class="availStdt"></span> ~ <span class="availEddt"></span>
|
|
<span class="availStdt"></span> ~ <span class="availEddt"></span>
|
|
|
</p>
|
|
</p>
|
|
|
<button type="button" class="btn_close_code" onClick="cancelCartCpn()">
|
|
<button type="button" class="btn_close_code" onClick="cancelCartCpn()">
|
|
|
- <span>
|
|
|
|
|
- <i class="ico ico_close1"></i>
|
|
|
|
|
- <em class="sr-only">닫기</em>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <i class="ico ico_close1"></i>
|
|
|
|
|
+ <em class="sr-only">닫기</em>
|
|
|
|
|
+ </span>
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="info_coupon">
|
|
<div class="info_coupon">
|
|
@@ -421,7 +426,7 @@
|
|
|
notApplyTmtbAreaList();
|
|
notApplyTmtbAreaList();
|
|
|
|
|
|
|
|
/* 세트상품 장바구니 */
|
|
/* 세트상품 장바구니 */
|
|
|
- /* let compsList = [];
|
|
|
|
|
|
|
+ /*let compsList = [];
|
|
|
let temp = new Object;
|
|
let temp = new Object;
|
|
|
temp.goodsCd = "STYS00000042";
|
|
temp.goodsCd = "STYS00000042";
|
|
|
temp.itemCd = "14373746";
|
|
temp.itemCd = "14373746";
|
|
@@ -434,7 +439,7 @@
|
|
|
temp.contentsLoc = "G028_YYY";
|
|
temp.contentsLoc = "G028_YYY";
|
|
|
temp.planDtlSq = "123";
|
|
temp.planDtlSq = "123";
|
|
|
compsList.push(temp);
|
|
compsList.push(temp);
|
|
|
-
|
|
|
|
|
|
|
+ temp = new Object;
|
|
|
temp.goodsCd = "STYS00000042";
|
|
temp.goodsCd = "STYS00000042";
|
|
|
temp.itemCd = "14373769";
|
|
temp.itemCd = "14373769";
|
|
|
temp.optCd = "블루110";
|
|
temp.optCd = "블루110";
|
|
@@ -446,7 +451,7 @@
|
|
|
temp.contentsLoc = "G028_YYY";
|
|
temp.contentsLoc = "G028_YYY";
|
|
|
temp.planDtlSq = "123";
|
|
temp.planDtlSq = "123";
|
|
|
compsList.push(temp);
|
|
compsList.push(temp);
|
|
|
-
|
|
|
|
|
|
|
+ temp = new Object;
|
|
|
temp.goodsCd = "STYS00000042";
|
|
temp.goodsCd = "STYS00000042";
|
|
|
temp.itemCd = "14373770";
|
|
temp.itemCd = "14373770";
|
|
|
temp.optCd = "아이보리110";
|
|
temp.optCd = "아이보리110";
|
|
@@ -459,7 +464,9 @@
|
|
|
temp.planDtlSq = "123";
|
|
temp.planDtlSq = "123";
|
|
|
compsList.push(temp);
|
|
compsList.push(temp);
|
|
|
|
|
|
|
|
- cfnAddCart(compsList); */
|
|
|
|
|
|
|
+ alert(JSON.stringify(compsList));
|
|
|
|
|
+
|
|
|
|
|
+ cfnAddCart(compsList);*/
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function notApplyTmtbAreaList() {
|
|
function notApplyTmtbAreaList() {
|
|
@@ -480,7 +487,7 @@
|
|
|
notApplyQtyTmtbList.push(obj);
|
|
notApplyQtyTmtbList.push(obj);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if($(this).parent().find("input[name=applyAmtSectionYn]").val() == "N") { // 다다익선 금액은 기본상품만 가져오면됨 (N은 기본상품에 걸려있음)
|
|
|
|
|
|
|
+ if($(this).parent().find("input[name=applyAmtSectionYn]").val() == "N") { // 다다익선 금액은 기본상품만 가져오면됨 (N은 기본상품에 걸려있음)
|
|
|
let obj = new Object();
|
|
let obj = new Object();
|
|
|
obj.tmtbSq = $(this).parent().find("input[name=amtTmtbSq]").val();
|
|
obj.tmtbSq = $(this).parent().find("input[name=amtTmtbSq]").val();
|
|
|
obj.tmtbNm = $(this).parent().find("input[name=amtTmtbNm]").val();
|
|
obj.tmtbNm = $(this).parent().find("input[name=amtTmtbNm]").val();
|
|
@@ -548,41 +555,41 @@
|
|
|
for(let j = 0 ; j < tmtb.goodsList.length ; j++) {
|
|
for(let j = 0 ; j < tmtb.goodsList.length ; j++) {
|
|
|
let goods = tmtb.goodsList[j];
|
|
let goods = tmtb.goodsList[j];
|
|
|
tmtbHtml += '<div class="item_gd">\n' +
|
|
tmtbHtml += '<div class="item_gd">\n' +
|
|
|
- ' <figure>\n' +
|
|
|
|
|
- ' <a href="">\n' +
|
|
|
|
|
- ' <span class="thumb"><img src="';
|
|
|
|
|
|
|
+ ' <figure>\n' +
|
|
|
|
|
+ ' <a href="">\n' +
|
|
|
|
|
+ ' <span class="thumb"><img src="';
|
|
|
tmtbHtml += goods.imgPath;
|
|
tmtbHtml += goods.imgPath;
|
|
|
tmtbHtml += '" alt=""></span>\n' +
|
|
tmtbHtml += '" alt=""></span>\n' +
|
|
|
- ' </a>\n' +
|
|
|
|
|
- ' <figcaption>\n' +
|
|
|
|
|
- ' <a href="">\n' +
|
|
|
|
|
- ' <div class="brand">';
|
|
|
|
|
|
|
+ ' </a>\n' +
|
|
|
|
|
+ ' <figcaption>\n' +
|
|
|
|
|
+ ' <a href="">\n' +
|
|
|
|
|
+ ' <div class="brand">';
|
|
|
tmtbHtml += goods.brandNm;
|
|
tmtbHtml += goods.brandNm;
|
|
|
tmtbHtml += '</div>\n' +
|
|
tmtbHtml += '</div>\n' +
|
|
|
- ' <div class="name">';
|
|
|
|
|
|
|
+ ' <div class="name">';
|
|
|
tmtbHtml += goods.goodsNm;
|
|
tmtbHtml += goods.goodsNm;
|
|
|
tmtbHtml += '</div>\n' +
|
|
tmtbHtml += '</div>\n' +
|
|
|
- ' <div class="price">\n' +
|
|
|
|
|
- ' <span class="selling_price">';
|
|
|
|
|
|
|
+ ' <div class="price">\n' +
|
|
|
|
|
+ ' <span class="selling_price">';
|
|
|
tmtbHtml += Number(goods.currPrice).toLocaleString();
|
|
tmtbHtml += Number(goods.currPrice).toLocaleString();
|
|
|
tmtbHtml += '</span>\n' +
|
|
tmtbHtml += '</span>\n' +
|
|
|
- ' </div>\n' +
|
|
|
|
|
- ' </a>\n' +
|
|
|
|
|
- ' </figcaption>\n' +
|
|
|
|
|
- ' </figure>\n' +
|
|
|
|
|
- ' </div>';
|
|
|
|
|
|
|
+ ' </div>\n' +
|
|
|
|
|
+ ' </a>\n' +
|
|
|
|
|
+ ' </figcaption>\n' +
|
|
|
|
|
+ ' </figure>\n' +
|
|
|
|
|
+ ' </div>';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
tmtbHtml += '<div class="txt">\n' +
|
|
tmtbHtml += '<div class="txt">\n' +
|
|
|
- ' <a href="">\n' +
|
|
|
|
|
- ' <i class="ico ico_saletag"></i>\n' +
|
|
|
|
|
- ' <input type="hidden" name="tmtbSq" value="' + tmtb.tmtbSq + '" />' +
|
|
|
|
|
- ' <span>\n';
|
|
|
|
|
|
|
+ ' <a href="">\n' +
|
|
|
|
|
+ ' <i class="ico ico_saletag"></i>\n' +
|
|
|
|
|
+ ' <input type="hidden" name="tmtbSq" value="' + tmtb.tmtbSq + '" />' +
|
|
|
|
|
+ ' <span>\n';
|
|
|
tmtbHtml += tmtb.tmtbNm;
|
|
tmtbHtml += tmtb.tmtbNm;
|
|
|
tmtbHtml += '</span>\n' +
|
|
tmtbHtml += '</span>\n' +
|
|
|
- ' </a>\n' +
|
|
|
|
|
- ' </div>\n' +
|
|
|
|
|
- ' </div>';
|
|
|
|
|
|
|
+ ' </a>\n' +
|
|
|
|
|
+ ' </div>\n' +
|
|
|
|
|
+ ' </div>';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 금액 다다익선 정보 HTML 작성
|
|
// 금액 다다익선 정보 HTML 작성
|
|
@@ -590,16 +597,16 @@
|
|
|
if (notApplyAmtTmtbList[i].tmtbSq != 0) {
|
|
if (notApplyAmtTmtbList[i].tmtbSq != 0) {
|
|
|
let tmtb = notApplyAmtTmtbList[i];
|
|
let tmtb = notApplyAmtTmtbList[i];
|
|
|
tmtbHtml += '<div class="more_sale amtNotApplyTmtbList">\n' +
|
|
tmtbHtml += '<div class="more_sale amtNotApplyTmtbList">\n' +
|
|
|
- ' <div class="txt">\n' +
|
|
|
|
|
- ' <a href="">\n' +
|
|
|
|
|
- ' <i class="ico ico_saletag"></i>\n' +
|
|
|
|
|
- ' <input type="hidden" name="tmtbSq" value="' + tmtb.tmtbSq + '" />' +
|
|
|
|
|
- ' <span>';
|
|
|
|
|
|
|
+ ' <div class="txt">\n' +
|
|
|
|
|
+ ' <a href="">\n' +
|
|
|
|
|
+ ' <i class="ico ico_saletag"></i>\n' +
|
|
|
|
|
+ ' <input type="hidden" name="tmtbSq" value="' + tmtb.tmtbSq + '" />' +
|
|
|
|
|
+ ' <span>';
|
|
|
tmtbHtml += tmtb.tmtbNm;
|
|
tmtbHtml += tmtb.tmtbNm;
|
|
|
tmtbHtml += '</span>\n' +
|
|
tmtbHtml += '</span>\n' +
|
|
|
- ' </a>\n' +
|
|
|
|
|
- ' </div>\n' +
|
|
|
|
|
- ' </div>';
|
|
|
|
|
|
|
+ ' </a>\n' +
|
|
|
|
|
+ ' </div>\n' +
|
|
|
|
|
+ ' </div>';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -754,7 +761,7 @@
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 선택된 장바구니 정보 가공
|
|
// 선택된 장바구니 정보 가공
|
|
|
- let data = { cartSqArr : cartArr }
|
|
|
|
|
|
|
+ let data = { cartSqArr : cartArr }
|
|
|
let jsonData = JSON.stringify(data);
|
|
let jsonData = JSON.stringify(data);
|
|
|
|
|
|
|
|
$.ajax( {
|
|
$.ajax( {
|