| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221 |
- <!DOCTYPE html>
- <html lang="ko"
- xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorator="mob/common/layout/DefaultLayoutMob">
- <!--
- *******************************************************************************
- * @source : MallMainFormMob.html
- * @desc : 몰메인 Page
- *============================================================================
- * STYLE24
- * Copyright(C) 2020 TSIT, All rights reserved.
- *============================================================================
- * VER DATE AUTHOR DESCRIPTION
- * === =========== ========== =============================================
- * 1.0 2021.03.10 gagamel 최초 작성
- *******************************************************************************
- -->
- <body>
- <th:block layout:fragment="content">
- <main role="" id="" class="container">
- <section class="main">
- <th:block th:if="${mainLayoutList}" th:each="mainData, mainStat : ${mainLayoutList}" th:with="contentsLoc=${#strings.replace(mainData.contentsLoc,'SMM','')},contentsTitle=${#strings.replace(mainData.contentsTitle,'<br>',' ')}">
- <!-- <th:block th:if="${mainData.ContentsList != null and !mainData.ContentsList.empty}">-->
- <th:block th:if="${contentsLoc=='001'}">
- <!-- 1. 비주얼 슬라이드 -->
- <div class="inner wide" th:if="${mainData.ContentsList != null and !mainData.ContentsList.empty}">
- <div class="main_visual">
- <div class="swiper-container post-visual">
- <div class="swiper-wrapper">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.ContentsList}">
- <div class="swiper-slide">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);">
- <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath2}" alt="">
- <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' and ContentsData.planGb=='E'}">EVENT</dt>
- <dd class="mainTitle">
- <input type="hidden" name="mainTitlee" th:value="${ContentsData.strTitle1}"/>
- </dd>
- <!-- <dd>NEW ARRIVAL</dd>-->
- <dd class="txt_xs" th:text="${ContentsData.subText1}">나만의 가을 스타일 찾기</dd>
- </dl>
- </div>
- </a>
- </div>
- </th:block>
- </div>
- <!-- Add Pagination -->
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='002'}">
- <!-- 2. 스타일리포트 -->
- <div class="inner bg_gray">
- <div class="main_stylereport">
- <th:block th:if="${mainData.contentsTitle != null and !mainData.contentsTitle.empty}">
- <div class="titWrap">
- <h2 th:text="${mainData.contentsTitle}"></h2>
- </div>
- </th:block>
- <div class="swiper-container post-stylereport">
- <div class="swiper-wrapper">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.ContentsList}">
- <div class="swiper-slide styleArea" th:if="${ContentsStat.count<5}">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);">
- <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}" alt="">
- <dl>
- <dt class="styleTitleC">
- <input type="hidden" name="styleTitle" th:value="${ContentsData.strTitle1}"/>
- </dt>
- <dd class="styleNoteC">
- <input type="hidden" name="styleNote" th:value="${ContentsData.subText1}"/>
- </dd>
- <!-- <dd>준비한 아우터 픽을 만나보자</dd>-->
- </dl>
- </a>
- </div>
- </th:block>
- </div>
- <!-- Add Pagination -->
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='003'}">
- <!-- 3. 트렌디한 신상아이템 -->
- <div class="inner" th:if="${mainData.goodsList != null}">
- <div class="main_trendy">
- <th:block th:if="${mainData.contentsTitle != null and !mainData.contentsTitle.empty}">
- <div class="titWrap">
- <h2 th:text="${mainData.contentsTitle}"></h2>
- </div>
- </th:block>
- <div class="swiper-container post-trendy">
- <div class="swiper-wrapper">
- <th:block th:each="goodsData, goodsStat : ${mainData.goodsList}">
- <th:block th:if="${(goodsStat.index%4)==0 or goodsStat.first}">
- <div class="swiper-slide">
- </th:block>
- <div class="item_prod">
- <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='SMM003', planDtlSq=''">관심상품 추가</button>
- <a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM003');">
- <div class=" itemPic">
- <!-- <img alt="BLUE-a" class=" pd_img" src="/images/mo/thumb/main_trendy05.jpg"> onerror="img_check(this)"-->
- <th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
- <iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>
- <iframe th:unless="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${kollusMediaUrl+'/'+videoArr[1]+'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" allow="fullscreen" allowFullScreen></iframe>
- </th:block>
- <img alt="BLUE-a" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)" >
- </div>
- <p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
- <div class="itemComment" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
- <div class=" itemName" th:text="${goodsData.goodsFullNm}">가을 신상 남성 스탠다드핏 로고맨 블루 볼 캡 유니 경량다운 시보리넥 베스트</div>
- <p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">488,000</p>
- </a>
- </div>
- </div>
- <th:block th:if="${(goodsStat.index%4)== 3 or goodsStat.last}">
- <th:block th:utext="'</div>'"></th:block>
- </th:block>
- </th:block>
- </div>
- <!-- Add Pagination -->
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='004'}">
- <!-- 4. 잇 아이템 -->
- <div class="inner">
- <div class="main_it">
- <div class="titWrap">
- <!-- <th:block th:each="ContentsData, ContentsStat : ${mainData.ContentsList}">-->
- <a href="javascript:void(0)" onclick="cfnGoToPage(_PAGE_BEST_MAIN);">
- <h2 th:text="${contentsTitle}"></h2>
- </a>
- <!-- </th:block>-->
- </div>
- <div class="inner_head">
- <ul class="it_nav">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.BestItemList}">
- <li><button class="btn btn_link" th:attr="data-tab=${'it'+ContentsStat.count}"><span th:text="${ContentsData.cateNm}">여성</span></button></li>
- </th:block>
- </ul>
- </div>
- <div class="inner_body">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.BestItemList}">
- <div class="swiper-container post-it it_item" th:id="${'it'+ContentsStat.count}">
- <div class="swiper-wrapper" >
- <th:block th:each="bestItemData, bestItemStat : ${ContentsData.goodsList}">
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <button type="button" class="itemLike" th:classappend="${bestItemData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${bestItemData.goodsCd}, ithrCd='', contentsLoc='SMM004', planDtlSq=''">관심상품 추가</button>
- <a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${bestItemData.goodsCd}]], '', '', 'SMM004');">
- <div class="shape" th:classappend="${bestItemStat.count==1}?'ranker'">
- <span><em class="number" th:text="${bestItemStat.count}">1</em></span>
- </div>
- <div class="itemPic">
- <th:block th:each="option,idx:${bestItemData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
- <iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>
- <iframe th:unless="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${kollusMediaUrl+'/'+videoArr[1]+'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" allow="fullscreen" allowFullScreen></iframe>
- </th:block>
- <img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm}" onerror="noneImg(this)">
- </div>
- <p class="itemBrand" th:text="${bestItemData.brandGroupNm}">TBJ</p>
- <div class="itemComment" th:text="${bestItemData.goodsTnm}"># 가을 느낌 물씬!</div>
- <div class="itemName" th:text="${bestItemData.goodsFullNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">
- <span class="itemPrice_original" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${#numbers.formatInteger(bestItemData.listPrice,3,'COMMA')}">89,000</span>[[${#numbers.formatInteger(bestItemData.currPrice,0,'COMMA')}]]
- <span class=" itemPercent" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${(bestItemData.listPrice == 0 ? 0 : #numbers.formatDecimal((bestItemData.listPrice - bestItemData.currPrice) / (bestItemData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
- </p>
- </a>
- </div>
- </div>
- </div>
- </th:block>
- </div>
- </div>
- </th:block>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='005'}">
- <!-- 5. 프로모션배너 -->
- <div class="inner wide">
- <div class="main_2stage">
- <div class="swiper-container post-bnnEvent">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.ContentsList}">
- <th:block th:if="${ContentsData.contentsType!=null && ContentsData.contentsType!=''}">
- <div class="swiper-wrapper" th:if="${ContentsData.contentsType=='1'}">
- <div class="swiper-slide">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);">
- <div class="bnnbox" style="background:#e3e7ea;">
- <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}" alt="">
- </div>
- </a>
- </div>
- </div>
- <div class="swiper-wrapper" th:if="${ContentsData.contentsType=='2'}">
- <div class="swiper-slide">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);">
- <div class="bnnbox" style="background:#e3e7ea;">
- <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}" alt="">
- </div>
- </a>
- </div>
- <div class="swiper-slide">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${ContentsData.strVar2}]]);">
- <div class="bnnbox" style="background:#eef1f3;">
- <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath2}" alt="">
- </div>
- </a>
- </div>
- </div>
- </th:block>
- </th:block>
- <!-- Add Pagination -->
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='006'}">
- <!-- 6. 타임딜 : 슬라이드 -->
- <th:block th:each="socialData, socialStat : ${mainData.socialInfo}">
- <div class="inner bg_dark" th:if="${socialData.socialGoodsList != null and !socialData.socialGoodsList.empty}">
- <div class="main_deal">
- <div class="titWrap">
- <a href="javascript:void(0)" onclick="cfnGoToPage(_PAGE_SOCIAL_MAIN);">
- <h2 th:text="${contentsTitle}"></h2>
- </a>
- <th:block th:each="socialData, socialStat : ${mainData.socialInfo}">
- <form name="socailForm" id="socailForm">
- <input type="hidden" name="targetTime" th:value="${socialData.socialEddt}">
- </form>
- </th:block>
- <div class="count">
- <span class="count_tit">남은 시간</span>
- <div class="hotdealcount" id="countdown">
- <div id="tiles"></div>
- </div>
- </div>
- </div>
- <div class="swiper-container post-deal">
- <div class="swiper-wrapper" >
- <!-- <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" 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');">
- <div class="itemPic">
- <img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
- </div>
- <p class="itemBrand" th:text="${goodsData.brandGroupNm}">TBJ</p>
- <div class="itemComment" th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
- <div class="itemName" th:text="${goodsData.goodsNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">
- <span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,0,'COMMA')}">89,000</span>[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
- <span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatDecimal(goodsData.dcRate,1,0)} + '%'">10%</span>
- </p>
- </a>
- </div>
- </div>
- </div>
- </th:block>
- <!-- </th:block>-->
- </div>
- </div>
- </div>
- </div>
- </th:block>
- </th:block>
- <th:block th:if="${contentsLoc=='007'}">
- <!-- 7. 브랜드픽 -->
- <div class="inner" th:if="${mainData.ContentsList != null}">
- <div class="main_pick" >
- <div class="titWrap">
- <h2 th:text="${contentsTitle}"></h2>
- </div>
- <div class="inner_head">
- <div class="swiper-container pick-head"> <!--(pick-head)슬라이드 키클래스-->
- <ul class="swiper-wrapper">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.ContentsList}">
- <li class="swiper-slide" th:classappend="${ContentsStat.count==1}?'on'"> <!-- li.on / li .btn.active : 메뉴 표시 -->
- <button class="btn btn_link" th:id="${'pickBtn'+ContentsStat.count}" th:attr="data-tab=${'pick'+ContentsStat.count}"><span th:text="${ContentsData.brandGroupNm}">BUKAROO</span></button>
- </li>
- </th:block>
- </ul>
- </div>
- </div>
- <div class="inner_body">
- <th:block th:each="brandPickData, brandPickStat : ${mainData.brandPickList}">
- <div class="pick-cont" th:classappend="${brandPickStat.count==1}?'active'" th:id="${'pick'+brandPickStat.count}"> <!-- .pick-cont.active : 컨텐츠 표시 -->
- <!-- 210329 : 브랜드 pick 슬라이드 추가 -->
- <div class="swiper-container">
- <div class="swiper-wrapper" id="id007">
- <th:block th:each="bannerData, bannerStat : ${brandPickData.BannerList}">
- <div class="swiper-slide" th:if="${bannerData.imgPath1 != ''}">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${bannerData.strVar1}]]);"><!-- 해당 배너 상세 이동 -->
- <div class="txtWrap">
- <p class="title">
- <input type="hidden" name="title" th:value="${bannerData.strTitle1}">
- </p>
- <span th:text="${bannerData.subText1}">2020 FALL/WINTER 신상살펴보기</span>
- </div>
- <img th:src="${@environment.getProperty('domain.image')+bannerData.imgPath1}" alt="">
- </a>
- </div>
- </th:block>
- </div>
- </div>
- <!-- //210329 : 브랜드 pick 슬라이드 추가 -->
- <!-- 210329 : 브랜드 pick 상품 swiper 제거 -->
- <div class="pick-post"><!-- (pick-post)슬라이드 키클래스(해당 배너 관련 상품) -->
- <th:block th:each="goodsData, goodsStat : ${brandPickData.goodsList}">
- <div class="item_prod" th:if="${goodsStat.count<4}">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM007');">
- <div class="itemPic">
- <th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
- <iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>
- <iframe th:unless="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${kollusMediaUrl+'/'+videoArr[1]+'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" allow="fullscreen" allowFullScreen></iframe>
- </th:block>
- <img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
- </div>
- <div class="itemName" th:text="${goodsData.goodsFullNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">35,900</p>
- </a>
- </div>
- </div>
- </th:block>
- </div> <!--pick-post 종료 -->
- <!-- 210524 : pick-post 형제로 버튼그룹 이동 -->
- <div class="btn_group_flex">
- <div>
- <button class="btn btn_default" th:onclick="fnNextBrand([[${brandPickStat.size}]],[[${brandPickStat.count}]])">다음 브랜드 보기<span></span></button>
- </div>
- </div>
- <!-- //210329 : 브랜드 pick 상품 swiper 제거 -->
- <!-- 210329 : 브랜드 pick 상품 swiper 제거 -->
- </div>
- </th:block>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='008'}">
- <!-- 8. 가로 긴 배너 슬라이드 -->
- <div class="inner wide">
- <div class="main_1stage">
- <div class="swiper-container post-bnnWide">
- <div class="swiper-wrapper">
- <th:block th:each="ContentsData, ContentsStat : ${mainData.ContentsList}">
- <div class="swiper-slide silderBannerArea">
- <th:block th:if="${ContentsData.imgPath1!=null && ContentsData.imgPath1!=''}">
- <a href="javascript:void(0)" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);">
- <div class="bnnbox" style="background:#bdc3c7;">
- <div class="txtWrap bannerNote">
- <p class="noteArea">
- <input type="hidden" name="bannerNote" th:value="${ContentsData.strTitle1}"/>
- </p>
- <!-- <p>아우터 + 이너 단독세일</p>-->
- </div>
- <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}">
- </div>
- </a>
- </th:block>
- </div>
- </th:block>
- </div>
- <!-- Add Pagination -->
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='009'}">
- <!-- 9. MD추천 스타일 -->
- <div class="inner">
- <div class="main_recomm">
- <div class="titWrap">
- <h2 th:text="${contentsTitle}">MD가 추천하는 스타일</h2>
- </div>
- <div class="inner_head">
- <div class="swiper-container recomm-head"> <!--(recomm-head)슬라이드 키클래스-->
- <ul class="swiper-wrapper">
- <th:block th:each="titleData, titleStat : ${mainData.mdPickList}" >
- <th:block th:if="${titleData.goodsList!=null and !titleData.goodsList.empty}" >
- <li class="swiper-slide"> <!-- li .btn.active : 메뉴 표시 --><!--data-filter 사용 안하시면 제거하셔도 좋습니다-->
- <button class="btn btn_link" th:classappend="${titleStat.count==1}?'active'" th:attr="data-tab=${'recomm'+titleStat.count}" data-filter="tag_warm"><span th:text="${titleData.mdTitle}">따뜻한 무드</span></button>
- </li>
- </th:block>
- </th:block>
- </ul>
- </div>
- </div>
- <th:block th:each="titleData, titleStat : ${mainData.mdPickList}">
- <div class="inner_body">
- <div class="swiper-container recomm-post recomm_item" th:classappend="${titleStat.count==1}?'active'" th:id="${'recomm'+titleStat.count}">
- <div class="swiper-wrapper" >
- <th:block th:if="${titleData.goodsList!=null and !titleData.goodsList.empty}">
- <th:block th:each="goodsData, goodsStat : ${titleData.goodsList}">
- <div class="swiper-slide">
- <div class="item_prod">
- <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='SMM009', planDtlSq=''">관심상품 추가</button>
- <a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM009');">
- <div class="itemPic">
- <th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
- <iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>
- <iframe th:unless="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${kollusMediaUrl+'/'+videoArr[1]+'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" allow="fullscreen" allowFullScreen></iframe>
- </th:block>
- <img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
- </div>
- <p class="itemBrand" th:text="${goodsData.brandGroupNm}">TBJ</p>
- <div class="itemComment" th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
- <div class="itemName" th:text="${goodsData.goodsFullNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">
- <span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
- <span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
- </p>
- </a>
- </div>
- </div>
- </div>
- </th:block>
- </th:block>
- </div>
- <!-- <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span> -->
- </div>
- </div>
- </th:block>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='010'}">
- <!-- 10. 당신을위한제안 -->
- <div class="inner wide">
- <div class="main_foryou">
- <div class="titWrap">
- <h2>당신을 위한 제안</h2>
- </div>
- <div class="swiper-container post-sug">
- <div class="swiper-wrapper">
- <div class="swiper-slide">
- <!-- 폴딩1,2,3,4,5시작 -->
- <ol class="list_cate">
- <li class="on">
- <dl>
- <dt>
- <button>
- <span class="fold_rank">1</span>
- <span class="fold_txt">모이몰른</span>
- </button>
- </dt>
- <dd>
- <div class="swiper-container post-sug-items"><!-- (post-sug-items)슬라이드 키클래스(해당 배너 관련 상품) -->
- <div class="swiper-wrapper">
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">45,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">39,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">39,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">45,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">45,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">45,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <img alt="" class=" pd_img" src="/images/mo/thumb/main_pickImg02.jpg">
- </div>
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
- <p class="itemPrice">45,900</p>
- </a>
- </div>
- </div>
- </div>
- <div class="swiper-slide">
- <div class="item_prod">
- <div class="item_state">
- <a href="javascript:void(0)" class="itemLink">
- <div class="itemPic">
- <span class="more_txt">더보기</span>
- </div>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">2</span>
- <span class="fold_txt">기모</span>
- </button>
- </dt>
- <dd>
- 기모_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">3</span>
- <span class="fold_txt">겨울 팬츠</span>
- </button>
- </dt>
- <dd>
- 겨울팬츠_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">4</span>
- <span class="fold_txt">TBJ</span>
- </button>
- </dt>
- <dd>
- TBJ_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">5</span>
- <span class="fold_txt">캔버스 주니어</span>
- </button>
- </dt>
- <dd>
- 캔버스주니어_슬라이드
- </dd>
- </dl>
- </li>
- </ol>
- <!-- 폴딩종료 -->
- </div>
- <div class="swiper-slide">
- <!-- 폴딩6,7,8,9,10시작 -->
- <ol class="list_cate">
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">6</span>
- <span class="fold_txt">키워드_6</span>
- </button>
- </dt>
- <dd>
- 키워드_6_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">7</span>
- <span class="fold_txt">키워드_7</span>
- </button>
- </dt>
- <dd>
- 키워드_7_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">8</span>
- <span class="fold_txt">키워드_8</span>
- </button>
- </dt>
- <dd>
- 키워드_8_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">9</span>
- <span class="fold_txt">키워드_9</span>
- </button>
- </dt>
- <dd>
- 키워드_9_슬라이드
- </dd>
- </dl>
- </li>
- <li>
- <dl>
- <dt>
- <button>
- <span class="fold_rank">10</span>
- <span class="fold_txt">키워드_10</span>
- </button>
- </dt>
- <dd>
- 키워드_10_슬라이드
- </dd>
- </dl>
- </li>
- </ol>
- <!-- 폴딩종료 -->
- </div>
- </div>
- <!-- Add Pagination -->
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- </th:block>
- <th:block th:if="${contentsLoc=='011'}">
- <!-- 11. TV 슬라이드 -->
- <div class="inner wide bg_dark" th:if="${mainData.ContentsList != null}">
- <div class="titWrap">
- <h2 data-style="unusual" th:text="${mainData.contentsTitle}">STYLE24 TV</h2>
- </div>
- <div class="main_tv" >
- <div class="swiper-container post-tv">
- <div class="swiper-wrapper ">
- <div class="swiper-slide" th:each="item, stat : ${mainData.ContentsList}">
- <div class="movbox">
- <iframe th:if="${item.strVar1=='Y'}" width="100%" height="100%" th:src="${'https://www.youtube.com/embed/'+item.strVar2+'?rel=0'}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
- <iframe th:if="${item.strVar1=='M'}" class="pd_mov" th:src="${kollusMediaUrl+'/'+item.strVar2+'?enable_initialize_focus=false'}" allowfullscreen></iframe>
- <!-- <iframe width="100%" height="100%" src="https://www.youtube.com/embed/hGjFwebN5ks" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>-->
- </div>
- </div>
- </div>
- <div class="swiper-pagination"></div>
- </div>
- </div>
- </div>
- <!-- </th:block>-->
- </th:block>
- </th:block>
- </section>
- </main>
- <script th:inline="javascript">
- /*<![CDATA[*/
- var mainLayoutList = [[${mainLayoutList}]];
- // console.log(mainLayoutList);
- var targetTime = '';
- if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
- targetTime = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
- }
- if(targetTime != null && targetTime != ''){
- /* 핫딜 countDown */
- var endTime = new Date(targetTime); // 남은시간 지정
- endTime = (Date.parse(endTime) / 1000);
- var countdown = document.getElementById("tiles"); // get tag element
- getCountdown();
- setInterval(function () { getCountdown(); }, 1000);
- function getCountdown(){
- // find the amount of "seconds" between now and target
- var now = new Date();
- now = (Date.parse(now) / 1000);
- var timeLeft = endTime - now;
- var days = Math.floor(timeLeft / 86400);
- var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
- var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
- var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
- if (hours < '10') { hours = '0' + hours; }
- if (minutes < '10') { minutes = '0' + minutes; }
- if (seconds < '10') { seconds = '0' + seconds; }
- // format countdown string + set tag value
- countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
- }
- function pad(n) {
- return (n < 10 ? '0' : '') + n;
- }
- }
- // 컨텐츠 호출
- $(document).ready(function() {
- // 몰메인 띠배너 표출
- $("#divTopbanner").show();
- setHtop();
- let randomNum = Math.floor( ( Math.random() * 4 ) );
- $(".it_nav .btn").eq(randomNum).trigger('click');
- // 몰메인 <br> 태그
- $('.mainTitle').each(function (){
- var brText = $(this).find("input[name=mainTitlee]").val();
- let tag = brText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
- $(this).append(tag);
- });
- // 브랜드픽 <br> 태그
- $('#id007 .title').each(function (){
- var brText = $(this).find("input[name=title]").val();
- let tag = brText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
- $(this).append(tag);
- });
- // 가로긴배너 슬라이드
- $('.silderBannerArea').each(function (){
- let tag = '';
- if(!gagajf.isNull($(this).find("input[name=bannerNote]").val())) {
- var noteText = $(this).find("input[name=bannerNote]").val();
- tag = noteText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
- $(this).find('.noteArea').append(tag);
- }
- });
- // 스타일리포트 <br> 태그
- $('.styleArea').each(function (){
- let tag = '';
- let tag2 = '';
- if(!gagajf.isNull($(this).find("input[name=styleTitle]").val())) {
- var titleText = $(this).find("input[name=styleTitle]").val();
- tag = titleText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
- $(this).find('.styleTitleC').append(tag);
- }
- if(!gagajf.isNull($(this).find("input[name=styleNote]").val())) {
- var noteText = $(this).find("input[name=styleNote]").val();
- tag2 = noteText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
- $(this).find('.styleNoteC').append(tag2);
- }
- });
- });
- function setHtop() {
- if($('header').hasClass('main')) {
- $('#htopMain').show();
- $('#htopSub').hide();
- } else {
- $('#htopMain').hide();
- $('#gnb').hide();
- $('#htopSub').show();
- }
- }
- var fnNextBrand = function (tot, idx){
- if(tot == idx){
- $("#pickBtn1").click();
- }else{
- $("#pickBtn"+(idx+1)).click();
- }
- }
- /*]]>*/
- </script>
- <script type="text/javascript">
- // post-visual
- // 비주얼 슬라이드 카운팅
- var pickvisualCont = $('.post-visual .swiper-slide');
- var pickvisualLength = pickvisualCont.length;
- if (pickvisualLength < 2) {
- // $(".main_visual .swiper-pagination").css({"display": "none"});
- var post_visual = new Swiper('.swiper-container.post-visual', {
- autoplay: false,
- loop:false,
- // pagination: false,
- pagination: {
- el: '.swiper-pagination',
- type: 'fraction',
- },
- });
- } else {
- var post_visual = new Swiper('.swiper-container.post-visual', {
- slideTo: 2,
- autoplay: {
- delay: 3000,
- },
- loop:true,
- pagination: {
- el: '.swiper-pagination',
- type: 'fraction',
- },
- });
- }
- // post-trendy
- var post_trendy = new Swiper('.swiper-container.post-trendy', {
- pagination: {
- el: '.swiper-pagination',
- },
- });
- // post-it
- var post_it = new Swiper('.swiper-container.post-it', {
- slidesPerView: 2,
- spaceBetween: 8,
- observer: true,
- observeParents: true,
- speed : 1000,
- freeMode: true,
- autoplay: false,
- });
- $(".it_nav .btn").click(function(){
- var itActive = $(this).attr('data-tab');
- $(".it_nav .btn").removeClass('active');
- $(".it_item").removeClass('active');
- $(this).addClass('active');
- $('#'+itActive).addClass('active');
- });
- // post-stylereport
- var post_stylereport = new Swiper('.swiper-container.post-stylereport', {
- slidesPerView: 1,
- pagination: {
- el: '.swiper-pagination',
- },
- spaceBetween: 8,
- });
- //post-deal
- var post_deal = new Swiper('.swiper-container.post-deal', {
- slidesPerView: 2.22,
- spaceBetween: 8,
- observer: true,
- observeParents: true,
- speed : 1000,
- freeMode: true,
- autoplay: false,
- });
- //post-pick
- //post-pick-head
- var Head_pick = new Swiper(".pick-head", {
- slidesPerView: "auto",
- spaceBetween: 20,
- autoHeight: true,
- preventClicks: true,
- preventClicksPropagation: false,
- observer: true,
- observeParents: true
- });
- var $pickHd = $('.pick-head .swiper-wrapper .swiper-slide .btn');
- $pickHd.click(function(){
- var target = $(this).parent();
- $pickHd.parent().removeClass('on')
- target.addClass('on');
- muCenter(target);
- })
- function muCenter(target){
- var snbwrap = $('.pick-head .swiper-wrapper');
- var targetPos = target.position();
- var box = $('.pick-head');
- var boxHarf = box.width()/2;
- var pos;
- var listWidth=0;
- snbwrap.find('.swiper-slide').each(function(){ listWidth += $(this).outerWidth(); })
- var selectTargetPos = targetPos.left + target.outerWidth()/2;
- if (selectTargetPos <= boxHarf) { // left
- pos = 0;
- }else if ((listWidth - selectTargetPos) <= boxHarf) { //right
- pos = listWidth-box.width();
- }else {
- pos = selectTargetPos - boxHarf;
- }
- setTimeout(function(){snbwrap.css({
- "transform": "translate3d("+ (pos*-2) +"px, 0, 0)",
- "transition-duration": "500ms"
- })}, 200);
- }
- $(".pick-head li .btn").click(function(){
- var itActive = $(this).attr('data-tab');
- $(".pick-head li .btn").removeClass('active');
- $(".pick-cont").removeClass('active');
- $(this).addClass('active');
- $('#'+itActive).addClass('active');
- });
- //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
- });
- // post-recomm
- // recomm-head
- var Head_recomm = new Swiper(".swiper-container.recomm-head", {
- slidesPerView: "auto",
- spaceBetween: 10,
- autoHeight: true,
- loop:false,
- });
- $(".recomm-head li .btn").click(function(){
- var recommActive = $(this).attr('data-tab');
- $(".recomm-head li .btn").removeClass('active');
- $(".recomm-post").removeClass('active');
- $(this).addClass('active');
- $('#'+recommActive).addClass('active');
- });
- // recomm-post
- var post_recomm = new Swiper(".recomm-post", {
- slidesPerView: 2.22,
- spaceBetween: 8,
- observer: true,
- observeParents: true,
- speed : 1000,
- freeMode: true,
- autoplay: false,
- });
- // post-bnnWide
- // 와이드배너 슬라이드 카운팅
- var pickbnnWdCont = $('.post-bnnWide .swiper-slide');
- var pickbnnWdLength = pickbnnWdCont.length;
- if (pickbnnWdLength < 2) {
- var post_bnnWide = new Swiper ('.swiper-container.post-bnnWide', {
- loop: false,
- autoplay: false,
- pagination: false,
- });
- } else {
- var post_bnnWide = new Swiper ('.swiper-container.post-bnnWide', {
- loop: true,
- slidesPerView: 1,
- speed : 1500,
- autoplay: {
- delay: 4000,
- disableOnInteraction: false,
- },
- pagination: {
- el: '.swiper-pagination',
- },
- });
- }
- // post-bnnEvent
- // 이벤트배너 슬라이드 카운팅
- var pickbnnEvCont = $('.post-bnnEvent .swiper-slide');
- var pickbnnEvLength = pickbnnEvCont.length;
- if (pickbnnEvLength < 2) {
- var post_bnnEvent = new Swiper ('.swiper-container.post-bnnEvent', {
- loop: false,
- autoplay: false,
- pagination:false,
- });
- } else {
- var post_bnnEvent = new Swiper ('.swiper-container.post-bnnEvent', {
- loop: true,
- slidesPerView: 1,
- speed : 1500,
- autoplay: {
- delay: 4000,
- disableOnInteraction: false,
- },
- pagination: {
- el: '.swiper-pagination',
- },
- });
- }
- // post_sug
- var numCnt = 0;
- var post_sug = new Swiper('.swiper-container.post-sug', {
- pagination: {
- el: '.swiper-pagination',
- },
- //autoHeight: true,
- autoplay: {
- 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) {
- //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);
- });
- }
- }
- 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,
- speed : 800,
- //autoplay: {
- // delay: 3000,
- // disableOnInteraction: false,
- //},
- });
- // post-tv
- var post_tv = new Swiper ('.post-tv', {
- loop: true,
- // slidesPerView: 2,
- // spaceBetween: 20,
- centeredSlides: true,
- speed : 800,
- // effect: 'fade',
- autoplay: false,
- //autoplay: {
- // delay: 10000,
- // disableOnInteraction: false,
- //},
- // navigation: {
- // nextEl: '.main_tv .swiper-button-next',
- // prevEl: '.main_tv .swiper-button-prev',
- // },
- pagination: {
- el: '.main_tv .swiper-pagination',
- clickable: true,
- },
- });
- </script>
- </th:block>
- </body>
- </html>
|