|
@@ -18,20 +18,29 @@ var fnGoodsTogetherSearch = function(params) {
|
|
|
$("#goodsTogetherbArea").css("display", "block");
|
|
$("#goodsTogetherbArea").css("display", "block");
|
|
|
$("#goodsTogetherbArea").html(result);
|
|
$("#goodsTogetherbArea").html(result);
|
|
|
|
|
|
|
|
- /*var otherItemSwiper1 = new Swiper('.pd .pd_clickother .area_slider .swiper-container', {
|
|
|
|
|
- slidesPerView: 5,
|
|
|
|
|
- slidesToScroll: 5,
|
|
|
|
|
- slidesPerGroup: 5,
|
|
|
|
|
- spaceBetween: 20,
|
|
|
|
|
- navigation: {
|
|
|
|
|
- nextEl: '.pd_clickother .swiper-button-next',
|
|
|
|
|
- prevEl: '.pd_clickother .swiper-button-prev',
|
|
|
|
|
- },
|
|
|
|
|
- pagination: {
|
|
|
|
|
- el: '.pd_clickother .swiper-pagination',
|
|
|
|
|
- clickable: true,
|
|
|
|
|
- },
|
|
|
|
|
- }); */
|
|
|
|
|
|
|
+ // 위시처리- 로그인 되어 있을시
|
|
|
|
|
+ if (cfCheckLogin()) {
|
|
|
|
|
+ //이상품과 함께본 상품
|
|
|
|
|
+ let targetT = $('#goodsTogetherbArea').find('.item_state').find('button');
|
|
|
|
|
+ //let targetTSize = targetT.length;
|
|
|
|
|
+ targetT.each(function(){
|
|
|
|
|
+ let goodsCd = $(this).attr('goodscd');
|
|
|
|
|
+ var $this = $(this);
|
|
|
|
|
+ let url = "/mypage/wish/list/check/"+goodsCd;
|
|
|
|
|
+ var result = '';
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type: 'get'
|
|
|
|
|
+ , async: false
|
|
|
|
|
+ , url: url
|
|
|
|
|
+ , success: function (data) {
|
|
|
|
|
+ //likeit active
|
|
|
|
|
+ if ("Y" == data){
|
|
|
|
|
+ $this.addClass('likeit').addClass('active');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -55,19 +64,29 @@ var fnGoodsRecommendSearch = function(params) {
|
|
|
if (result != null) {
|
|
if (result != null) {
|
|
|
$("#goodsRecommendbArea").css("display", "block");
|
|
$("#goodsRecommendbArea").css("display", "block");
|
|
|
$("#goodsRecommendbArea").html(result);
|
|
$("#goodsRecommendbArea").html(result);
|
|
|
- /* var relateItemSwiper = new Swiper('.pd .pd_brand .area_slider .swiper-container', {
|
|
|
|
|
- slidesPerView: 5,
|
|
|
|
|
- spaceBetween: 20,
|
|
|
|
|
- slidesPerGroup: 5,
|
|
|
|
|
- navigation: {
|
|
|
|
|
- nextEl: '.pd_brand .swiper-button-next',
|
|
|
|
|
- prevEl: '.pd_brand .swiper-button-prev',
|
|
|
|
|
- },
|
|
|
|
|
- pagination: {
|
|
|
|
|
- el: '.pd_brand .swiper-pagination',
|
|
|
|
|
- clickable: true,
|
|
|
|
|
- },
|
|
|
|
|
- }); */
|
|
|
|
|
|
|
+ // 위시처리- 로그인 되어 있을시
|
|
|
|
|
+ if (cfCheckLogin()) {
|
|
|
|
|
+ //브랜드 추천상품
|
|
|
|
|
+ let targetR = $('#goodsRecommendbArea').find('.item_state').find('button');
|
|
|
|
|
+ //let targetRSize = targetT.length;
|
|
|
|
|
+ targetR.each(function(){
|
|
|
|
|
+ let goodsCd = $(this).attr('goodscd');
|
|
|
|
|
+ var $this = $(this);
|
|
|
|
|
+ let url = "/mypage/wish/list/check/"+goodsCd;
|
|
|
|
|
+ var result = '';
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type: 'get'
|
|
|
|
|
+ , async: false
|
|
|
|
|
+ , url: url
|
|
|
|
|
+ , success: function (data) {
|
|
|
|
|
+ //likeit active
|
|
|
|
|
+ if ("Y" == data){
|
|
|
|
|
+ $this.addClass('likeit').addClass('active');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -91,19 +110,29 @@ var fnGoodsLikeSearch = function(params) {
|
|
|
if (result != null) {
|
|
if (result != null) {
|
|
|
$("#goodsLikebArea").css("display", "block");
|
|
$("#goodsLikebArea").css("display", "block");
|
|
|
$("#goodsLikebArea").html(result);
|
|
$("#goodsLikebArea").html(result);
|
|
|
- /*var relateItemSwiper = new Swiper('.pd .pd_relate .area_slider .swiper-container', {
|
|
|
|
|
- slidesPerView: 5,
|
|
|
|
|
- spaceBetween: 20,
|
|
|
|
|
- slidesPerGroup: 5,
|
|
|
|
|
- navigation: {
|
|
|
|
|
- nextEl: '.pd_relate .swiper-button-next',
|
|
|
|
|
- prevEl: '.pd_relate .swiper-button-prev',
|
|
|
|
|
- },
|
|
|
|
|
- pagination: {
|
|
|
|
|
- el: '.pd_relate .swiper-pagination',
|
|
|
|
|
- clickable: true,
|
|
|
|
|
- },
|
|
|
|
|
- }); */
|
|
|
|
|
|
|
+ // 위시처리- 로그인 되어 있을시
|
|
|
|
|
+ if (cfCheckLogin()) {
|
|
|
|
|
+ //비슷한 상품
|
|
|
|
|
+ let targetL = $('#goodsLikebArea').find('.item_state').find('button');
|
|
|
|
|
+ //let targetTSize = targetT.length;
|
|
|
|
|
+ targetL.each(function(){
|
|
|
|
|
+ let goodsCd = $(this).attr('goodscd');
|
|
|
|
|
+ var $this = $(this);
|
|
|
|
|
+ let url = "/mypage/wish/list/check/"+goodsCd;
|
|
|
|
|
+ var reLult = '';
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type: 'get'
|
|
|
|
|
+ , async: false
|
|
|
|
|
+ , url: url
|
|
|
|
|
+ , success: function (data) {
|
|
|
|
|
+ //likeit active
|
|
|
|
|
+ if ("Y" == data){
|
|
|
|
|
+ $this.addClass('likeit').addClass('active');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|