|
|
@@ -281,18 +281,32 @@ function cfnAddCart(cartList) {
|
|
|
// 룩북 및 이벤트 페이지에서 여러 타입의 상품이 들어 올 수 있음. 반복문으로 들어오므로 cartList[0].multiGoodsGb == O면 confirm 창 안띄움.
|
|
|
// 일반적인 장바구니 담기를 위해 공백이나 O가 아닌 값일때 confirm 처리
|
|
|
if(!(cartList != null && cartList[0].multiGoodsGb != null && cartList[0].multiGoodsGb == "O")) {
|
|
|
- mcxDialog.confirm("<div class=" + "dialog-title" + ">" + "상품이 쇼핑백에 추가되었습니다.</div><p>쇼핑백으로 이동하시겠습니까?</p>", {
|
|
|
- cancelBtnText: "계속 쇼핑하기",
|
|
|
- sureBtnText : "쇼핑백 가기",
|
|
|
- sureBtnClick : function () {
|
|
|
- location.href = '/cart/list/form'; //내 쇼핑백 이동url
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
// PC버전에서만 동작해야함(퀵메뉴)
|
|
|
if (navigator.userAgent.indexOf('Mobile') == -1) {
|
|
|
+ mcxDialog.confirm("<div class=" + "dialog-title" + ">" + "상품이 쇼핑백에 추가되었습니다.</div><p>쇼핑백으로 이동하시겠습니까?</p>", {
|
|
|
+ cancelBtnText: "계속 쇼핑하기",
|
|
|
+ sureBtnText : "쇼핑백 가기",
|
|
|
+ sureBtnClick : function () {
|
|
|
+ location.href = '/cart/list/form'; //내 쇼핑백 이동url
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
fnGetCartGoodsList();
|
|
|
} else {
|
|
|
+ mcxDialog.confirm("<span class='trans'></span><div class="+"dialog-title"+">"+"쇼핑백에 상품을 담았습니다.</div>", {
|
|
|
+ sureBtnText: "쇼핑백 가기",
|
|
|
+ sureBtnClick: function(){
|
|
|
+ location.href='/cart/list/form'; //내 쇼핑백 이동url
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if($('.dialog-content').find('.trans')){
|
|
|
+ $('.dialog-content').closest(".dialog-mobile").addClass("trans");
|
|
|
+ $('.dialog-mobile').children(".dialog-cancel-button").css("display", "none");
|
|
|
+ $(document).find(".dialog-mobile-bg").css("display", "none");
|
|
|
+ };
|
|
|
+
|
|
|
+ $("body>.trans").delay(3000).fadeOut();
|
|
|
+
|
|
|
if($("header #htopSub .button_wrap .store>span")) {
|
|
|
// 장바구니 수량 조회
|
|
|
$.getJSON('/cart/goods/not/soldout/cnt', function (order, status) {
|