|
|
@@ -37,7 +37,7 @@
|
|
|
<div class="txtWrap">
|
|
|
<dl th:class="${ContentsData.strVar7=='BLACK'?'':'w'}">
|
|
|
<dt th:if="${ContentsData.strVar5=='P'}" th:text="${ContentsData.planBrandGroupNm}">NBA</dt>
|
|
|
-<!-- <dt th:if="${ContentsData.strVar5!='P'}">EVENT</dt>-->
|
|
|
+ <dt th:if="${ContentsData.strVar5=='P' and ContentsData.planGb=='E'}">EVENT</dt>
|
|
|
<dd class="mainTitle">
|
|
|
<input type="hidden" name="mainTitlee" th:value="${ContentsData.strTitle1}"/>
|
|
|
</dd>
|
|
|
@@ -255,7 +255,7 @@
|
|
|
<th:block th:each="socialData, socialStat : ${mainData.socialInfo}">
|
|
|
<th:block th:each="goodsData, goodsStat : ${socialData.socialGoodsList}">
|
|
|
<div class="swiper-slide" th:if="${goodsStat.count<21}">
|
|
|
- <div class="item_prod">
|
|
|
+ <div class="item_prod" style="width:100%">
|
|
|
<div class="item_state">
|
|
|
<button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, ithrCd='', contentsLoc='SMM006', planDtlSq=''">관심상품 추가</button>
|
|
|
<a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM006');">
|
|
|
@@ -337,15 +337,16 @@
|
|
|
</div>
|
|
|
</th:block>
|
|
|
</div> <!--pick-post 종료 -->
|
|
|
+ <!-- 210524 : pick-post 형제로 버튼그룹 이동 -->
|
|
|
+ <div class="btn_group_flex">
|
|
|
+ <div>
|
|
|
+ <button class="btn btn_default" th:onclick="cfnGoToBrandMain([[${brandPickData.brandGroupNo}]])">다음 브랜드 보기<span></span></button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- //210329 : 브랜드 pick 상품 swiper 제거 -->
|
|
|
<!-- 210329 : 브랜드 pick 상품 swiper 제거 -->
|
|
|
</div>
|
|
|
</th:block>
|
|
|
- <div class="btn_group_flex">
|
|
|
- <div>
|
|
|
- <button class="btn btn_default">다음 브랜드 보기<span></span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -382,7 +383,7 @@
|
|
|
</div>
|
|
|
</th:block>
|
|
|
|
|
|
- <th:block th:if="${contentsLoc=='012'}">
|
|
|
+ <th:block th:if="${contentsLoc=='009'}">
|
|
|
<!-- 9. MD추천 스타일 -->
|
|
|
<div class="inner">
|
|
|
<div class="main_recomm">
|
|
|
@@ -736,7 +737,7 @@
|
|
|
var mainLayoutList = [[${mainLayoutList}]];
|
|
|
console.log(mainLayoutList);
|
|
|
|
|
|
- var targetTime = $("#socailForm").find("input[name=targetTime]").val();
|
|
|
+ var targetTime = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
|
|
|
if(targetTime != null && targetTime != ''){
|
|
|
/* 핫딜 countDown */
|
|
|
var endTime = new Date(targetTime); // 남은시간 지정
|
|
|
@@ -930,7 +931,7 @@
|
|
|
$pickHd.parent().removeClass('on')
|
|
|
target.addClass('on');
|
|
|
muCenter(target);
|
|
|
- })
|
|
|
+ });
|
|
|
function muCenter(target){
|
|
|
var snbwrap = $('.pick-head .swiper-wrapper');
|
|
|
var targetPos = target.position();
|
|
|
@@ -966,6 +967,12 @@
|
|
|
//post-pick-post
|
|
|
var post_pick = new Swiper(".pick-cont .swiper-container", {
|
|
|
//slidesPerView: 1,
|
|
|
+ watchOverflow:true, //210520_ 추가 : 슬라이드 1개일 경우 롤링 제거.
|
|
|
+ //210520_ 추가 : 자동재생 시간 추가.
|
|
|
+ autoplay: {
|
|
|
+ delay: 4000,
|
|
|
+ disableOnInteraction: false,
|
|
|
+ },
|
|
|
observer: true,
|
|
|
observeParents: true
|
|
|
});
|
|
|
@@ -1025,27 +1032,103 @@
|
|
|
});
|
|
|
|
|
|
// post_sug
|
|
|
+ var numCnt = 0;
|
|
|
var post_sug = new Swiper('.swiper-container.post-sug', {
|
|
|
pagination: {
|
|
|
el: '.swiper-pagination',
|
|
|
},
|
|
|
- // autoHeight: true,
|
|
|
+ //autoHeight: true,
|
|
|
autoplay: {
|
|
|
- delay: 9500,
|
|
|
+ delay: 24700,
|
|
|
disableOnInteraction: false,
|
|
|
},
|
|
|
+ on : {
|
|
|
+ slideChange: function(){
|
|
|
+ foryouIndex = 0;
|
|
|
+ if(numCnt === 0){
|
|
|
+ $(".swiper-slide.type1 .list_cate > li").removeClass('on');
|
|
|
+ $(".swiper-slide.type2 .list_cate > li").removeClass('on');
|
|
|
+ $(".swiper-slide.type2 .list_cate .first").addClass('on');
|
|
|
+ numCnt = 1;
|
|
|
+ } else {
|
|
|
+ $(".swiper-slide.type1 .list_cate > li").removeClass('on');
|
|
|
+ $(".swiper-slide.type2 .list_cate > li").removeClass('on');
|
|
|
+ $(".swiper-slide.type1 .list_cate .first").addClass('on');
|
|
|
+ numCnt = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
});
|
|
|
+ var foryouIndex = 0;
|
|
|
+ //var foryouIndex1 = -1;
|
|
|
+ //var foryouIndex2 = -1;
|
|
|
+ var cntNum = 0;
|
|
|
function foryouInterval(_foryouIndex) {
|
|
|
- var foryouCateItems = $(".main_foryou .post-sug .swiper-slide-active .list_cate li");
|
|
|
- $(foryouCateItems[(_foryouIndex + 1) % 5]).addClass("on");
|
|
|
- $(foryouCateItems[_foryouIndex % 5]).removeClass("on");
|
|
|
+ //console.log($(".main_foryou .post-sug .swiper-slide.swiper-slide-active .list_cate li")[0]);
|
|
|
+ var foryouCateItems1 = $(".main_foryou .post-sug .swiper-slide.type1.swiper-slide-active .list_cate li");
|
|
|
+ var foryouCateItems2 = $(".main_foryou .post-sug .swiper-slide.type2.swiper-slide-active .list_cate li");
|
|
|
+ $(".main_foryou .post-sug .swiper-slide.type1 .list_cate li").removeClass("on");
|
|
|
+ $(".main_foryou .post-sug .swiper-slide.type2 .list_cate li").removeClass("on");
|
|
|
+
|
|
|
+ if($(".main_foryou .post-sug .swiper-slide.type1").hasClass("swiper-slide-active")){
|
|
|
+ $(foryouCateItems1[(_foryouIndex + 1) % 5]).addClass("on");
|
|
|
+ if (_foryouIndex >= 5) foryouIndex = 0;
|
|
|
+ foryouIndex++;
|
|
|
+ //$(foryouCateItems1[_foryouIndex % 5]).removeClass("on");
|
|
|
+ //setTimeout(function () {
|
|
|
+ // foryouInterval(foryouIndex1);
|
|
|
+ // if (foryouIndex1 >= 5) foryouIndex1 = 0;
|
|
|
+ // foryouIndex1++;
|
|
|
+ //}, 0);
|
|
|
+ $(foryouCateItems1).click(function () {
|
|
|
+ //console.log($(this).index());
|
|
|
+ foryouIndex = $(this).index();
|
|
|
+ //setInterval(function () {
|
|
|
+ // foryouInterval(foryouIndex1);
|
|
|
+ // if (foryouIndex1 >= 5) foryouIndex1 = 0;
|
|
|
+ // foryouIndex1++;
|
|
|
+ //}, 2000);
|
|
|
+ clearInterval(stopInter);
|
|
|
+ stopInter = startTimeInterval();
|
|
|
+ //setTimeout(function () {
|
|
|
+ // foryouInterval(foryouIndex);
|
|
|
+ //}, 0);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if($(".main_foryou .post-sug .swiper-slide.type2").hasClass("swiper-slide-active")){
|
|
|
+ $(foryouCateItems2[(_foryouIndex + 1) % 5]).addClass("on");
|
|
|
+ if (_foryouIndex >= 5) foryouIndex = 0;
|
|
|
+ foryouIndex++;
|
|
|
+ //$(foryouCateItems2[_foryouIndex % 5]).removeClass("on");
|
|
|
+ //setTimeout(function () {
|
|
|
+ // foryouInterval(foryouIndex2);
|
|
|
+ // if (foryouIndex2 >= 5) foryouIndex2 = 0;
|
|
|
+ // foryouIndex2++;
|
|
|
+ //}, 0);
|
|
|
+ $(foryouCateItems2).click(function () {
|
|
|
+ //console.log($(this).index());
|
|
|
+ foryouIndex = $(this).index();
|
|
|
+ //setInterval(function () {
|
|
|
+ // foryouInterval(foryouIndex2);
|
|
|
+ // if (foryouIndex2 >= 5) foryouIndex2 = 0;
|
|
|
+ // foryouIndex2++;
|
|
|
+ //}, 2000);
|
|
|
+ clearInterval(stopInter);
|
|
|
+ stopInter = startTimeInterval();
|
|
|
+ //setTimeout(function () {
|
|
|
+ // foryouInterval(foryouIndex);
|
|
|
+ //}, 0);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
- var foryouIndex = 0;
|
|
|
- setInterval(function () {
|
|
|
- foryouInterval(foryouIndex);
|
|
|
- if (foryouIndex >= 5) foryouIndex = 0;
|
|
|
- foryouIndex++;
|
|
|
- }, 2000);
|
|
|
+
|
|
|
+ function startTimeInterval(){
|
|
|
+ return setInterval(function () {
|
|
|
+ foryouInterval(foryouIndex);
|
|
|
+ }, 5000);
|
|
|
+ }
|
|
|
+ var stopInter = startTimeInterval();
|
|
|
+
|
|
|
var post_sug_items = new Swiper ('.swiper-container.post-sug-items', {
|
|
|
slidesPerView: 3,
|
|
|
spaceBetween: 10,
|
|
|
@@ -1079,7 +1162,6 @@
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
</th:block>
|