|
@@ -160,19 +160,19 @@
|
|
|
</button>
|
|
</button>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <button type="button" id="" class="quick_btn02" data-tab="quick02">
|
|
|
|
|
|
|
+ <button type="button" id="quick02" class="quick_btn02" data-tab="quick02">
|
|
|
<img src="/images/pc/ico_qk_cart.png" alt="쇼핑백"/>
|
|
<img src="/images/pc/ico_qk_cart.png" alt="쇼핑백"/>
|
|
|
- <span class="count">2</span>
|
|
|
|
|
|
|
+ <span class="count"></span>
|
|
|
</button>
|
|
</button>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <button type="button" id="" class="quick_btn03" data-tab="quick03">
|
|
|
|
|
|
|
+ <button type="button" id="quick03" class="quick_btn03" data-tab="quick03">
|
|
|
<img src="/images/pc/ico_qk_like.png" alt="위시리스트"/>
|
|
<img src="/images/pc/ico_qk_like.png" alt="위시리스트"/>
|
|
|
<span class="count">100</span>
|
|
<span class="count">100</span>
|
|
|
</button>
|
|
</button>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <button type="button" id="" class="quick_btn04" data-tab="quick04">
|
|
|
|
|
|
|
+ <button type="button" id="quick04" class="quick_btn04" data-tab="quick04">
|
|
|
<img src="/images/pc/ico_qk_coupon.png" alt="쿠폰"/>
|
|
<img src="/images/pc/ico_qk_coupon.png" alt="쿠폰"/>
|
|
|
<span class="count">100</span>
|
|
<span class="count">100</span>
|
|
|
</button>
|
|
</button>
|
|
@@ -443,10 +443,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="wishlist quick_con quick03"> <!-- 퀵메뉴_위시리스트 -->
|
|
<div class="wishlist quick_con quick03"> <!-- 퀵메뉴_위시리스트 -->
|
|
|
<div class="quick_head">
|
|
<div class="quick_head">
|
|
|
- <h3><a href="">위시리스트</a></h3>
|
|
|
|
|
|
|
+ <h3><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_WISHLIST);">위시리스트</a></h3>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="quick_body"> <!-- 최근 본 상품 없을 시 nodata 클래스 추가 --> <!-- 비로그인 시 need_login 클래스 추가 -->
|
|
|
|
|
- <div class="product_count"><span class='c_primary'>50</span>개의 상품</div>
|
|
|
|
|
|
|
+ <div class="quick_body" id="quickMenuWishList"> <!-- 최근 본 상품 없을 시 nodata 클래스 추가 --> <!-- 비로그인 시 need_login 클래스 추가 -->
|
|
|
|
|
+ <div class="product_count"><span class='c_primary' id="quickMenuWishListCount">50</span>개의 상품</div>
|
|
|
<div class="itemsGrp">
|
|
<div class="itemsGrp">
|
|
|
<div class="item_prod">
|
|
<div class="item_prod">
|
|
|
<div class="item_state">
|
|
<div class="item_state">
|
|
@@ -461,73 +461,7 @@
|
|
|
<button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
<button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- <div class="item_prod">
|
|
|
|
|
- <div class="item_state">
|
|
|
|
|
- <div class="shape"><span>곧 품절돼요!</span></div>
|
|
|
|
|
- <a href="#none" class=" itemLink">
|
|
|
|
|
- <div class="itemPic">
|
|
|
|
|
- <img class="vLHTC pd_img" src="/images/pc/thumb/prod2.jpg" alt="이미지설명"/>
|
|
|
|
|
- <button type="button" class="itemLike active">관심상품 추가</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a>
|
|
|
|
|
- <div class="hover_con">
|
|
|
|
|
- <button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="item_prod">
|
|
|
|
|
- <div class="item_state">
|
|
|
|
|
- <a href="#none" class=" itemLink">
|
|
|
|
|
- <div class="itemPic">
|
|
|
|
|
- <img class="vLHTC pd_img" src="/images/pc/thumb/prod1.jpg" alt="이미지설명"/>
|
|
|
|
|
- <button type="button" class="itemLike active">관심상품 추가</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a>
|
|
|
|
|
- <div class="hover_con">
|
|
|
|
|
- <button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="item_prod">
|
|
|
|
|
- <div class="item_state">
|
|
|
|
|
- <a href="#none" class=" itemLink">
|
|
|
|
|
- <div class="itemPic">
|
|
|
|
|
- <img class="vLHTC pd_img" src="/images/pc/thumb/prod2.jpg" alt="이미지설명"/>
|
|
|
|
|
- <button type="button" class="itemLike active">관심상품 추가</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a>
|
|
|
|
|
- <div class="hover_con">
|
|
|
|
|
- <button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="item_prod">
|
|
|
|
|
- <div class="item_state">
|
|
|
|
|
- <a href="#none" class=" itemLink">
|
|
|
|
|
- <div class="itemPic">
|
|
|
|
|
- <img class="vLHTC pd_img" src="/images/pc/thumb/prod2.jpg" alt="이미지설명"/>
|
|
|
|
|
- <button type="button" class="itemLike active">관심상품 추가</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a>
|
|
|
|
|
- <div class="hover_con">
|
|
|
|
|
- <button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="item_prod">
|
|
|
|
|
- <div class="item_state">
|
|
|
|
|
- <a href="#none" class=" itemLink">
|
|
|
|
|
- <div class="itemPic">
|
|
|
|
|
- <img class="vLHTC pd_img" src="/images/pc/thumb/prod1.jpg" alt="이미지설명"/>
|
|
|
|
|
- <button type="button" class="itemLike active">관심상품 추가</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a>
|
|
|
|
|
- <div class="hover_con">
|
|
|
|
|
- <button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
<div class="item_prod">
|
|
<div class="item_prod">
|
|
|
<div class="item_state">
|
|
<div class="item_state">
|
|
|
<a href="#none" class=" itemLink">
|
|
<a href="#none" class=" itemLink">
|
|
@@ -985,6 +919,77 @@
|
|
|
// });
|
|
// });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 위시리스트
|
|
|
|
|
+ let fnGetWishList = function() {
|
|
|
|
|
+ if (!cfCheckLogin()) {
|
|
|
|
|
+ $('#quickMenuWishList').addClass('need_login');
|
|
|
|
|
+ $('#quickMenuWishList').html('');
|
|
|
|
|
+ tag='<div class="login_con">';
|
|
|
|
|
+ tag+='<div>';
|
|
|
|
|
+ tag+=' <p>로그인 후 이용 가능한 서비스입니다.</p>';
|
|
|
|
|
+ tag+=' <button type="button" class="btn btn_sm" onclick="cfnGoToPage(_PAGE_LOGIN)"><span>로그인</span></button>';
|
|
|
|
|
+ tag+=' </div>';
|
|
|
|
|
+ tag+='</div>';
|
|
|
|
|
+
|
|
|
|
|
+ $('#quickMenuWishList').html(tag);
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $.getJSON('/goods/wish/list'
|
|
|
|
|
+ , function(result, status) {
|
|
|
|
|
+ if (status == 'success') {
|
|
|
|
|
+ $('#quickMenuWishList').html('');
|
|
|
|
|
+ $('#quick03').find('span').html(result.length);
|
|
|
|
|
+ $('#quickMenuWishListCount').html(result.length);
|
|
|
|
|
+
|
|
|
|
|
+ if (result.length > 0) {
|
|
|
|
|
+ let tag = '<div class="product_count"><span class="c_primary" id="quickMenuWishListCount">'+result.length+'</span>개의 상품</div>\n';
|
|
|
|
|
+ tag += ' <div class="itemsGrp">\n';
|
|
|
|
|
+
|
|
|
|
|
+ $.each(result, function (idx, item) {
|
|
|
|
|
+ tag += ' <div class="item_prod">';
|
|
|
|
|
+ tag += ' <div class="item_state">';
|
|
|
|
|
+ if (item.stockQty>0 && item.stockQty<=5) {
|
|
|
|
|
+ tag += ' <div class="shape"><span>곧 품절돼요!</span></div>';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.stockQty<=0) {
|
|
|
|
|
+ tag += ' <div class="shape"><span>품절</span></div>';
|
|
|
|
|
+ }
|
|
|
|
|
+ tag += ' <button type="button" class="itemLike active" goodsCd="'+item.goodsCd+'" onclick="fnWishDelete(this);">관심상품 추가</button>';
|
|
|
|
|
+ tag += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\', \'\', \'\', \'\');" class=" itemLink">';
|
|
|
|
|
+ tag += ' <div class="itemPic">';
|
|
|
|
|
+ tag += ' <img class="vLHTC pd_img" src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '" alt="이미지설명"/>';
|
|
|
|
|
+ tag += ' </div>';
|
|
|
|
|
+ tag += ' </a>';
|
|
|
|
|
+ tag += ' <div class="hover_con">';
|
|
|
|
|
+ if (item.stockQty>0) {
|
|
|
|
|
+ tag += ' <button type="button" class="btn btn_sm cart_btn on"><span>쇼핑백 담기</span></button>';
|
|
|
|
|
+ }
|
|
|
|
|
+ tag += ' </div>';
|
|
|
|
|
+ tag += ' </div>';
|
|
|
|
|
+ tag += ' </div> ';
|
|
|
|
|
+ tag += ' <div class="no_item">';
|
|
|
|
|
+ tag += ' 최근 본 상품이 없습니다.';
|
|
|
|
|
+ tag += ' </div>';
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ tag += ' </div>\n';
|
|
|
|
|
+
|
|
|
|
|
+ $('#quickMenuWishList').html(tag);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $('#quickMenuWishList').addClass('nodata');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 위시리스트 해제
|
|
|
|
|
+ let fnWishDelete = function(obj) {
|
|
|
|
|
+ cfnPutWishList(obj);
|
|
|
|
|
+ fnGetWishList();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 팝업
|
|
// 팝업
|
|
|
let fnGetPopup = function(){
|
|
let fnGetPopup = function(){
|
|
|
let data = {viewPage : [[${viewPage}]]
|
|
let data = {viewPage : [[${viewPage}]]
|
|
@@ -1097,6 +1102,9 @@
|
|
|
// 최근본상품 조회
|
|
// 최근본상품 조회
|
|
|
fnGetRecentlyGoods();
|
|
fnGetRecentlyGoods();
|
|
|
|
|
|
|
|
|
|
+ // 위시리스트
|
|
|
|
|
+ fnGetWishList();
|
|
|
|
|
+
|
|
|
// 팝업조회
|
|
// 팝업조회
|
|
|
fnGetPopup();
|
|
fnGetPopup();
|
|
|
|
|
|