MallMainFormWeb.html 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org"
  4. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  5. layout:decorator="web/common/layout/DefaultLayoutWeb">
  6. <!--
  7. *******************************************************************************
  8. * @source : MallMainFormWeb.html
  9. * @desc : 몰메인 Page
  10. *============================================================================
  11. * STYLE24
  12. * Copyright(C) 2020 TSIT, All rights reserved.
  13. *============================================================================
  14. * VER DATE AUTHOR DESCRIPTION
  15. * === =========== ========== =============================================
  16. * 1.0 2021.01.28 gagamel 최초 작성
  17. *******************************************************************************
  18. -->
  19. <body>
  20. <th:block layout:fragment="content">
  21. <div id="container" class="container main">
  22. <!-- <div class="breadcrumb"> (breadcrumb) </div> -->
  23. <div class="wrap ">
  24. <th:block th:if="${mainLayoutList}" th:each="mainLayoutData, mainStat : ${mainLayoutList}" th:with="contentsLoc=${#strings.replace(mainLayoutData.contentsLoc,'SMM','')}">
  25. <!-- <th:block th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">-->
  26. <th:block th:if="${contentsLoc=='001'}">
  27. <!-- 1. 비주얼 슬라이드 -->
  28. <div class="content wide main_visual" th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">
  29. <div class="cont_head dpnone">
  30. <p class="t_c">비주얼 슬라이드</p>
  31. </div>
  32. <div class="cont_body">
  33. <div class="swiper-container post-visual">
  34. <div class="swiper-wrapper ">
  35. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">
  36. <div class="swiper-slide">
  37. <th:block th:if="${ContentsData.imgPath1!=null && ContentsData.imgPath1!=''}">
  38. <div class="txtWrap">
  39. <th:block th:if="${ContentsData.strVar5!=null && ContentsData.strVar5!=''}">
  40. <p class="vrt_txt" th:if="${ContentsData.strVar5=='P' and ContentsData.planBrandCnt<2}" th:text="${ContentsData.planBrandGroupNm}"></p>
  41. <p class="vrt_txt" th:if="${ContentsData.strVar5=='P' and ContentsData.planBrandCnt>1}" th:text="${ContentsData.planBrandGroupNm+' 외'}"></p>
  42. <p class="vrt_txt" th:if="${ContentsData.strVar5=='P' and ContentsData.planGb=='E'}" >EVENT</p>
  43. </th:block>
  44. <dl th:class="${ContentsData.strVar7=='BLACK'?'':'w'}">
  45. <dt th:if="${ContentsData.strVar5=='P' and ContentsData.planBrandCnt<2}" th:text="${ContentsData.planBrandGroupNm}"></dt>
  46. <dt th:if="${ContentsData.strVar5=='P' and ContentsData.planBrandCnt>1}" th:text="${ContentsData.planBrandGroupNm+' 외'}"></dt>
  47. <dt th:if="${ContentsData.strVar5=='P' and ContentsData.planGb=='E' }" >EVENT</dt>
  48. <dd class="mainTitle">
  49. <input type="hidden" name="mainTitlee" th:value="${ContentsData.strTitle1}"/>
  50. </dd>
  51. <!-- <dd>NEW ARRIVAL</dd>-->
  52. <dd class="txt_xs" th:text="${ContentsData.subText1}"></dd>
  53. </dl>
  54. <button type="button" class="btn" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);"><span>자세히 보기</span></button>
  55. </div>
  56. <!--<img src="/images/pc/thumb/main_visual01.jpg" alt="">-->
  57. <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}">
  58. </th:block>
  59. </div>
  60. </th:block>
  61. </div>
  62. <div class="swiper-button-prev sbtn01_lb"></div>
  63. <div class="swiper-button-next sbtn01_rb"></div>
  64. </div>
  65. <div class="swiper-controls">
  66. <div class="swiper-pagination"></div>
  67. <div class="slide-curb">
  68. <div class="slide-curb-play sbtn01_play">슬라이드 재생</div>
  69. <div class="slide-curb-pause sbtn01_stop">슬라이드 정지</div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </th:block>
  75. <!-- 2. 스타일리포트 -->
  76. <th:block th:if="${contentsLoc=='002'}">
  77. <div class="content main_stylereport" th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">
  78. <th:block th:if="${mainLayoutData.contentsTitle != null and !mainLayoutData.contentsTitle.empty}">
  79. <div class="cont_head">
  80. <p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
  81. </div>
  82. </th:block>
  83. <div class="cont_body">
  84. <div class="ui_row">
  85. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">
  86. <div class="ui_col_3 styleArea" th:if="${ContentsStat.count<5}">
  87. <a th:href="${ContentsData.strVar1}">
  88. <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}">
  89. <dl>
  90. <dt class="styleTitleC"> <!--th:text="${ContentsData.strTitle1}"-->
  91. <input type="hidden" name="styleTitle" th:value="${ContentsData.strTitle1}"/>
  92. </dt>
  93. <dd class="styleNoteC"> <!--th:text="${ContentsData.subText1}"-->
  94. <input type="hidden" name="styleNote" th:value="${ContentsData.subText1}"/>
  95. </dd>
  96. <!--<dd>당신을 위해 준비한 아우터 픽을 만나보자</dd>-->
  97. </dl>
  98. </a>
  99. </div>
  100. </th:block>
  101. </div>
  102. </div>
  103. </div>
  104. </th:block>
  105. <!-- 3. 트렌디한 신상아이템 -->
  106. <th:block th:if="${contentsLoc=='003'}">
  107. <div class="content main_trendy" th:if="${mainLayoutData.goodsList != null}">
  108. <div class="cont_head">
  109. <p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
  110. </div>
  111. <div class="cont_body">
  112. <div class="swiper-container post-trendy">
  113. <div class="swiper-wrapper">
  114. <th:block th:each="goodsData, goodsStat : ${mainLayoutData.goodsList}">
  115. <div class="swiper-slide" th:if="${goodsStat.count<21}">
  116. <div class="item_prod">
  117. <div class="item_state">
  118. <button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, ithrCd='', contentsLoc='SMM003', planDtlSq=''">관심상품 추가</button>
  119. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM003');">
  120. <div class=" itemPic">
  121. <th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
  122. <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>
  123. <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>
  124. </th:block>
  125. <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
  126. </div>
  127. <p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
  128. <div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
  129. <div class=" itemName" th:text="${goodsData.goodsFullNm}">스타 착용 여성 퍼 아플리케 오버핏 투마일 웨어링 점퍼</div>
  130. <p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">488,000원</p>
  131. </a>
  132. </div>
  133. </div>
  134. </div>
  135. </th:block>
  136. </div>
  137. </div>
  138. <div class="swiper-pagination"></div>
  139. <div class="swiper-button-prev"></div>
  140. <div class="swiper-button-next"></div>
  141. </div>
  142. </div>
  143. </th:block>
  144. <!-- 4. 잇 아이템 -->
  145. <th:block th:if="${contentsLoc=='004'}">
  146. <div class="content main_it" th:if="${mainLayoutData.BestItemList != null}">
  147. <div class="cont_head">
  148. <p class="displayH" id="id004">
  149. <input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
  150. </p>
  151. <!-- <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">-->
  152. <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_BEST_MAIN);"><span>전체보기</span></a>
  153. <!-- </th:block>-->
  154. </div>
  155. <div class="cont_body">
  156. <div class="it_nav">
  157. <ul>
  158. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.BestItemList}">
  159. <li><button class="btn btn_link" th:attr="data-tab=${'it'+ContentsStat.count}"><span th:text="${ContentsData.cateNm}"></span></button></li>
  160. </th:block>
  161. </ul>
  162. </div>
  163. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.BestItemList}">
  164. <div class="swiper-container post-it it_item" th:id="${'it'+ContentsStat.count}">
  165. <div class="swiper-wrapper">
  166. <th:block th:each="bestItemData, bestItemStat : ${ContentsData.goodsList}">
  167. <div class="swiper-slide">
  168. <div class=" item_prod sUiXc "> <!-- item_prod ranker d_detail -->
  169. <div class="item_state"> <!-- item_state AD soldout -->
  170. <button type="button" class="itemLike" th:classappend="${bestItemData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${bestItemData.goodsCd}, ithrCd='', contentsLoc='SMM004', planDtlSq=''">관심상품 추가</button>
  171. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${bestItemData.goodsCd}]], '', '', 'SMM004');">
  172. <div class="shape" th:classappend="${bestItemStat.count==1}?'ranker'"><span th:text="${bestItemStat.count}"></span></div>
  173. <div class="itemPic">
  174. <th:block th:each="option,idx:${bestItemData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
  175. <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>
  176. <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>
  177. </th:block>
  178. <img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm}" onerror="noneImg(this)">
  179. </div>
  180. <p class=" itemBrand" th:text="${bestItemData.brandGroupNm}">BRAND NAME</p>
  181. <div class="itemComment" th:unless="${bestItemData.goodsTnm == null or bestItemData.goodsTnm == ''}" th:text="${bestItemData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
  182. <div class=" itemName" th:text="${bestItemData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  183. <p class="itemPrice">[[${#numbers.formatInteger(bestItemData.currPrice,0,'COMMA')}]]
  184. <span class="itemPrice_original" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${#numbers.formatInteger(bestItemData.listPrice,3,'COMMA')}">89,000</span>
  185. <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>
  186. </p>
  187. </a>
  188. </div>
  189. </div>
  190. </div>
  191. </th:block>
  192. </div>
  193. <div class="swiper-controls">
  194. <div class="swiper-scrollbar"></div>
  195. </div>
  196. </div>
  197. </th:block>
  198. </div>
  199. </div>
  200. </th:block>
  201. <!-- 5. 프로모션배너 -->
  202. <th:block th:if="${contentsLoc=='005'}">
  203. <div class="content main_2stage" th:if="${mainLayoutData.ContentsList != null}">
  204. <div class="cont_head dpnone">
  205. <p class="t_c">프로모션배너</p>
  206. </div>
  207. <div class="cont_body">
  208. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">
  209. <th:block th:if="${ContentsData.contentsType!=null && ContentsData.contentsType!=''}">
  210. <div class="bnnbox_crop" th:if="${ContentsData.contentsType=='1'}">
  211. <div class="" style="width: 100%;height: 230px;float: none;overflow: hidden;">
  212. <a th:href="${ContentsData.strVar1}" target="_blank">
  213. <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}" alt="">
  214. </a>
  215. </div>
  216. </div>
  217. <div class="bnnbox_crop" th:if="${ContentsData.contentsType=='2'}">
  218. <div class="bnn_half">
  219. <a th:href="${ContentsData.strVar1}" target="_blank">
  220. <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}" alt="">
  221. </a>
  222. </div>
  223. <div class="bnn_half">
  224. <a th:href="${ContentsData.strVar2}" target="_blank">
  225. <img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath2}" alt="">
  226. </a>
  227. </div>
  228. </div>
  229. </th:block>
  230. </th:block>
  231. </div>
  232. </div>
  233. </th:block>
  234. <!-- 6. 타임딜 : 슬라이드 -->
  235. <th:block th:if="${contentsLoc=='006'}">
  236. <th:block th:each="socialData, socialStat : ${mainLayoutData.socialInfo}">
  237. <div class="content wide main_deal" th:if="${socialData.socialGoodsList != null and !socialData.socialGoodsList.empty}">
  238. <div class="cont_head">
  239. <p class="displayH" id="id006">
  240. <input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
  241. </p>
  242. <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_SOCIAL_MAIN);"><span>전체보기</span></a>
  243. <div class="deal_progress">
  244. <div class="bar_current" id="barCurrent" style="width:33.333%"><span>HERE</span></div>
  245. <div class="bar_bg"></div>
  246. </div>
  247. <th:block th:each="socialData, socialStat : ${mainLayoutData.socialInfo}">
  248. <form name="socailForm" id="socailForm">
  249. <input type="hidden" name="targetTime" th:value="${socialData.socialEddt}">
  250. </form>
  251. </th:block>
  252. <div class="count" >
  253. <span class="count_tit">남은 시간</span>
  254. <div class="hotdeal">
  255. <div id="countdown">
  256. <div id="tiles"></div>
  257. </div>
  258. <!-- <div class="count_time" id="countdownTime">-->
  259. <!-- <span id="h-hours">HOURS</span>-->
  260. <!-- <span id="h-minutes">MINS</span>-->
  261. <!-- <span id="h-seconds">SECS</span>-->
  262. <!-- </div>-->
  263. <div class="count_time">
  264. <span>HOURS</span>
  265. <span>MINS</span>
  266. <span>SECS</span>
  267. </div>
  268. </div>
  269. </div>
  270. <!-- <script>-->
  271. <!-- /* 핫딜 countDown */-->
  272. <!-- // var target_date = new Date().getTime() + (1000*3600*8); // set the countdown date-->
  273. <!-- -->
  274. <!-- var target_date = '';-->
  275. <!-- if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){-->
  276. <!-- target_date = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");-->
  277. <!-- }-->
  278. <!-- if(target_date != null && target_date != ''){-->
  279. <!-- var days, hours, minutes, seconds; // variables for time units-->
  280. <!-- var countdown = document.getElementById("tiles"); // get tag element-->
  281. <!-- getCountdown();-->
  282. <!-- var timerStop = setInterval(function () { getCountdown(); }, 1000);-->
  283. <!-- var fixDate = new Date().getTime();-->
  284. <!-- var fixTarget = (target_date - fixDate) / 1000;-->
  285. <!-- var width = (86400-fixTarget)*100/86400;-->
  286. <!-- function getCountdown(){-->
  287. <!-- // find the amount of "seconds" between now and target-->
  288. <!-- var current_date = new Date().getTime();-->
  289. <!-- var seconds_left = (target_date - current_date) / 1000;-->
  290. <!-- seconds_left = seconds_left % 86400;-->
  291. <!-- hours = pad( parseInt(seconds_left / 3600) );-->
  292. <!-- seconds_left = seconds_left % 3600;-->
  293. <!-- minutes = pad( parseInt(seconds_left / 60) );-->
  294. <!-- seconds = pad( parseInt( seconds_left % 60 ) );-->
  295. <!-- // format countdown string + set tag value-->
  296. <!-- countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";-->
  297. <!-- var elem = document.getElementById("barCurrent");-->
  298. <!-- function progressMove(){-->
  299. <!-- width += (100-width)/fixTarget;-->
  300. <!-- elem.style.width = width + "%";-->
  301. <!-- }-->
  302. <!-- progressMove();-->
  303. <!-- if(seconds_left < 1){-->
  304. <!-- clearInterval(timerStop);-->
  305. <!-- elem.style.width = "100%";-->
  306. <!-- }-->
  307. <!-- }-->
  308. <!-- function pad(n) {-->
  309. <!-- return (n < 10 ? '0' : '') + n;-->
  310. <!-- }-->
  311. <!-- }-->
  312. <!-- /* countDown */-->
  313. <!-- </script>-->
  314. </div>
  315. <div class="cont_body">
  316. <div class="swiper-container post-deal">
  317. <div class="swiper-wrapper">
  318. <!-- <th:block th:each="socialData, socialStat : ${mainLayoutData.socialInfo}">-->
  319. <th:block th:each="goodsData, goodsStat : ${socialData.socialGoodsList}">
  320. <div class="swiper-slide" th:if="${goodsStat.count<21}">
  321. <div class="item_prod">
  322. <div class="item_state">
  323. <button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, ithrCd='', contentsLoc='SMM006', planDtlSq=''">관심상품 추가</button>
  324. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM006');">
  325. <div class="itemPic">
  326. <img alt="" class="pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
  327. </div>
  328. <p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
  329. <div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
  330. <div class="itemName" th:text="${goodsData.goodsNm}">여성 체인 프린트 큐롯 스커트 프린트 큐롯 스커트</div>
  331. <p class="itemPrice">
  332. [[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
  333. <span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,0,'COMMA')} + '원'"></span>
  334. <span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatDecimal(goodsData.dcRate,1,0)} + '%'"></span>
  335. <!--<span class="itemPercent" th:if="${planningGoods.currPrice != planningGoods.listPrice}" th:text="${(planningGoods.listPrice == 0 ? 0 : #numbers.formatDecimal((planningGoods.listPrice - planningGoods.currPrice) / (planningGoods.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>-->
  336. </p>
  337. </a>
  338. </div>
  339. </div>
  340. </div>
  341. </th:block>
  342. <!-- </th:block>-->
  343. </div>
  344. <div class="swiper-controls">
  345. <div class="swiper-scrollbar"></div>
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. </th:block>
  351. </th:block>
  352. <!-- 7. 브랜드픽 -->
  353. <th:block th:if="${contentsLoc=='007'}">
  354. <div class="content main_pick">
  355. <div class="cont_head">
  356. <p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}">브랜드 PICK1</p>
  357. </div>
  358. <div class="cont_body">
  359. <div class="swiper-container post-pick-nav">
  360. <div class="swiper-wrapper">
  361. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">
  362. <div class="swiper-slide"><img th:src="${@environment.getProperty('domain.image')+ContentsData.brandGroupImg}"></div>
  363. </th:block>
  364. </div>
  365. <div class="swiper-button-prev "></div>
  366. <div class="swiper-button-next "></div>
  367. </div>
  368. </div>
  369. <div class="swiper-container post-pick-for">
  370. <div class="swiper-wrapper">
  371. <th:block th:each="brandPickData, brandPickStat : ${mainLayoutData.brandPickList}">
  372. <div class="swiper-slide">
  373. <div class="pick_look">
  374. <div class="swiper-container post-lookbook">
  375. <div class="swiper-wrapper" id="id007">
  376. <th:block th:each="bannerData, bannerStat : ${brandPickData.BannerList}">
  377. <div class="swiper-slide" th:if="${bannerData.imgPath1 != ''}">
  378. <a th:href="${bannerData.strVar1}">
  379. <div class="text_box">
  380. <p class="title">
  381. <input type="hidden" name="title" th:value="${bannerData.strTitle1}">
  382. </p>
  383. <p class="sub_text" th:text="${bannerData.subText1}"> 2020 FALL / WINTER 신상살펴보기1</p>
  384. </div>
  385. <div class="img_box">
  386. <img th:src="${@environment.getProperty('domain.image')+bannerData.imgPath1}" alt="barnd lookbook">
  387. </div>
  388. </a>
  389. </div>
  390. </th:block>
  391. </div>
  392. <div class="swiper-controls">
  393. <div class="swiper-pagination"></div>
  394. </div>
  395. </div>
  396. </div>
  397. <div class="pick_item">
  398. <div class="itemGrp">
  399. <th:block th:each="goodsData, goodsStat : ${brandPickData.goodsList}">
  400. <div class="item_prod" th:if="${goodsStat.count<4}">
  401. <div class="item_state">
  402. <button type="button" class="itemLike" tabindex="0" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, ithrCd='', contentsLoc='SMM007', planDtlSq=''">관심상품 추가</button>
  403. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM007');">
  404. <div class="itemPic">
  405. <th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
  406. <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>
  407. <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>
  408. </th:block>
  409. <img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
  410. </div>
  411. <div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
  412. <div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  413. <p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">80,100
  414. <span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
  415. <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>
  416. </p>
  417. </a>
  418. </div>
  419. </div>
  420. </th:block>
  421. </div>
  422. </div>
  423. </div>
  424. </th:block>
  425. </div>
  426. </div>
  427. </div>
  428. </th:block>
  429. <!-- 8. 가로 긴 배너 슬라이드 -->
  430. <!-- bnn_1stage -->
  431. <th:block th:if="${contentsLoc=='008'}">
  432. <div class="content wide main_1stage">
  433. <div class="cont_head dpnone">
  434. <p class="t_c">배너 슬라이드</p>
  435. </div>
  436. <div class="cont_body">
  437. <div class="swiper-container post-bnnWide">
  438. <div class="swiper-wrapper ">
  439. <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">
  440. <div class="swiper-slide silderBannerArea">
  441. <th:block th:if="${ContentsData.imgPath1!=null && ContentsData.imgPath1!=''}">
  442. <a th:href="${ContentsData.strVar1}">
  443. <div class="bnnbox" style="background:#e3e7ea;">
  444. <div class="txtWrap bannerNote">
  445. <p class="noteArea"> <!--th:text="${ContentsData.strTitle1}"-->
  446. <input type="hidden" name="bannerNote" th:value="${ContentsData.strTitle1}"/>
  447. </p>
  448. <!--<p>아우터 + 이너 단독세일</p>--> <!-- br 태그 줄바꿈해야함-->
  449. <!-- <button type="button" class="btn">VIEW MORE</button>-->
  450. </div>
  451. <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}">
  452. </div>
  453. </a>
  454. </th:block>
  455. </div>
  456. </th:block>
  457. </div>
  458. <div class="swiper-button-prev "></div>
  459. <div class="swiper-button-next "></div>
  460. </div>
  461. </div>
  462. <div class="cont_foot dpnone">
  463. CONT-FOOT
  464. </div>
  465. </div>
  466. </th:block>
  467. <!-- 9. MD추천 스타일 -->
  468. <th:block th:if="${contentsLoc=='009'}">
  469. <div class="content main_recomm" >
  470. <div class="cont_head">
  471. <p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
  472. </div>
  473. <div class="cont_body">
  474. <div class="sec_head">
  475. <div class="filter action tag_list">
  476. <th:block th:each="titleData, titleStat : ${mainLayoutData.mdPickList}" >
  477. <th:block th:if="${titleData.goodsList!=null and !titleData.goodsList.empty}" >
  478. <button class="btn" th:attr="data-tab=${'tag'+titleStat.count}" th:text="${titleData.mdTitle}">따뜻한 무드2</button>
  479. </th:block>
  480. </th:block>
  481. </div>
  482. </div>
  483. <div class="sec_body">
  484. <th:block th:each="titleData, titleStat : ${mainLayoutData.mdPickList}">
  485. <div th:id="${'tag'+titleStat.count}" class="tagitem" > <!--th:classappend="${titleStat.count} == 1? active"-->
  486. <div class="swiper-container post-recomm">
  487. <div class="swiper-wrapper">
  488. <th:block th:if="${titleData.goodsList!=null and !titleData.goodsList.empty}">
  489. <th:block th:each="goodsData, goodsStat : ${titleData.goodsList}">
  490. <div class="swiper-slide">
  491. <div class="item_prod">
  492. <div class="item_state">
  493. <button type="button" class="itemLike" tabindex="0" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, ithrCd='', contentsLoc='SMM009', planDtlSq=''">관심상품 추가</button>
  494. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM009');">
  495. <div class="itemPic">
  496. <th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
  497. <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>
  498. <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>
  499. </th:block>
  500. <img alt="" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
  501. </div>
  502. <p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
  503. <div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
  504. <div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  505. <p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
  506. <span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
  507. <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>
  508. </p>
  509. </a>
  510. </div>
  511. </div>
  512. </div>
  513. </th:block>
  514. </th:block>
  515. </div>
  516. <div class="swiper-controls">
  517. <div class="swiper-pagination"></div>
  518. </div>
  519. </div>
  520. <div class="swiper-button-prev"></div>
  521. <div class="swiper-button-next"></div>
  522. </div>
  523. </th:block>
  524. </div>
  525. </div>
  526. </div>
  527. </th:block>
  528. <!-- 11. TV 슬라이드 -->
  529. <th:block th:if="${contentsLoc=='011'}">
  530. <div class="content wide main_tv" th:if="${mainLayoutData.ContentsList != null}">
  531. <div class="cont_head">
  532. <p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
  533. </div>
  534. <div class="cont_body">
  535. <div class="swiper-container post-tv">
  536. <div class="swiper-wrapper">
  537. <th:block th:each="item, stat : ${mainLayoutData.ContentsList}">
  538. <div class="swiper-slide">
  539. <div class="movbox">
  540. <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>
  541. <iframe th:if="${item.strVar1=='M'}" class="pd_mov" th:src="${kollusMediaUrl+'/'+item.strVar2+'?enable_initialize_focus=false'}" allowfullscreen></iframe>
  542. </div>
  543. </div>
  544. </th:block>
  545. </div>
  546. <div class="swiper-button-prev white"></div> <!-- 클래스명 white 추가 -->
  547. <div class="swiper-button-next white"></div>
  548. </div>
  549. <div class="swiper-controls">
  550. <div class="swiper-pagination"></div>
  551. </div>
  552. </div>
  553. </div>
  554. </th:block>
  555. </th:block>
  556. <!-- </th:block>-->
  557. <!-- 10. 당신을위한제안 -->
  558. <div class="content main_foryou">
  559. <div class="cont_head">
  560. <p class="displayH">당신을 위한 제안</p>
  561. <span>스타일24에서 가장 주목받는 상품을 살펴보세요</span>
  562. </div>
  563. <div class="cont_body">
  564. <div class="post-sug fy_nav">
  565. <div class="swiper-container">
  566. <div class="swiper-wrapper">
  567. <div class="swiper-slide">
  568. <ul>
  569. <li><button class="btn btn_shape active" data-tab="fy1"><div><span class="number">1</span><span>BUCKAROO</span></div></button><a href="#none">자세히 보기</a></li>
  570. <li><button class="btn btn_shape" data-tab="fy2"><div><span class="number">2</span><span>기모청바지</span></div></button><a href="#none">자세히 보기</a></li>
  571. <li><button class="btn btn_shape" data-tab="fy3"><div><span class="number">3</span><span>겨울 팬츠</span></div></button><a href="#none">자세히 보기</a></li>
  572. <li><button class="btn btn_shape" data-tab="fy4"><div><span class="number">4</span><span>컨버스 주니어</span></div></button><a href="#none">자세히 보기</a></li>
  573. <li><button class="btn btn_shape" data-tab="fy5"><div><span class="number">5</span><span>모이몰른</span></div></button><a href="#none">자세히 보기</a></li>
  574. </ul>
  575. </div>
  576. <div class="swiper-slide">
  577. <ul>
  578. <li><button class="btn btn_shape" data-tab="fy6"><div><span class="number">6</span><span>컨버스 주니어</span></div></button><a href="#none">자세히 보기</a></li>
  579. <li><button class="btn btn_shape" data-tab="fy7"><div><span class="number">7</span><span>겨울 팬츠</span></div></button><a href="#none">자세히 보기</a></li>
  580. <li><button class="btn btn_shape" data-tab="fy8"><div><span class="number">8</span><span>BUCKAROO</span></div></button><a href="#none">자세히 보기</a></li>
  581. <li><button class="btn btn_shape" data-tab="fy9"><div><span class="number">9</span><span>모이몰른</span></div></button><a href="#none">자세히 보기</a></li>
  582. <li><button class="btn btn_shape" data-tab="fy10"><div><span class="number">10</span><span>기모청바지</span></div></button><a href="#none">자세히 보기</a></li>
  583. </ul>
  584. </div>
  585. </div>
  586. </div>
  587. <div class="swiper-controls">
  588. <div class="swiper-pagination"></div>
  589. </div>
  590. </div>
  591. <div class="fy_item active" id="fy1">
  592. <div class="part">
  593. <div class="item_prod">
  594. <div class="item_state">
  595. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  596. <a href="#none" class="itemLink" tabindex="0">
  597. <div class="itemPic">
  598. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug01.jpg">
  599. </div>
  600. <div class="itemInfo">
  601. <p class="itemBrand">BRAND NAME</p>
  602. <div class=" itemName">자카드 방풍 패딩 스웨터 가디건 자카드 </div>
  603. <p class="itemPrice">80,100</p>
  604. </div>
  605. </a>
  606. </div>
  607. </div>
  608. <div class="item_prod">
  609. <div class="item_state">
  610. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  611. <a href="#none" class="itemLink" tabindex="0">
  612. <div class="itemPic">
  613. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug02.jpg">
  614. </div>
  615. <div class="itemInfo">
  616. <p class="itemBrand">BRAND NAME</p>
  617. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  618. <p class="itemPrice">80,100</p>
  619. </div>
  620. </a>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="part lg">
  625. <div class="item_prod">
  626. <div class="item_state">
  627. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  628. <a href="#none" class="itemLink" tabindex="0">
  629. <div class="itemPic">
  630. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug03.jpg">
  631. </div>
  632. <div class="itemInfo">
  633. <p class="itemBrand">BRAND NAME</p>
  634. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  635. <p class="itemPrice">80,100</p>
  636. </div>
  637. </a>
  638. </div>
  639. </div>
  640. </div>
  641. <div class="part">
  642. <div class="item_prod">
  643. <div class="item_state">
  644. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  645. <a href="#none" class="itemLink" tabindex="0">
  646. <div class="itemPic">
  647. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug04.jpg">
  648. </div>
  649. <div class="itemInfo">
  650. <p class="itemBrand">BRAND NAME</p>
  651. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  652. <p class="itemPrice">80,100</p>
  653. </div>
  654. </a>
  655. </div>
  656. </div>
  657. <div class="item_prod">
  658. <div class="item_state">
  659. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  660. <a href="#none" class="itemLink" tabindex="0">
  661. <div class="itemPic">
  662. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug05.jpg">
  663. </div>
  664. <div class="itemInfo">
  665. <p class="itemBrand">BRAND NAME</p>
  666. <div class=" itemName">남성 로고 자카드 방풍 패딩 가디건</div>
  667. <p class="itemPrice">80,100</p>
  668. </div>
  669. </a>
  670. </div>
  671. </div>
  672. </div>
  673. <div class="part">
  674. <div class="item_prod">
  675. <div class="item_state">
  676. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  677. <a href="#none" class="itemLink" tabindex="0">
  678. <div class="itemPic">
  679. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug06.jpg">
  680. </div>
  681. <div class="itemInfo">
  682. <p class="itemBrand">BRAND NAME</p>
  683. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  684. <p class="itemPrice">80,100</p>
  685. </div>
  686. </a>
  687. </div>
  688. </div>
  689. <div class="item_prod">
  690. <div class="item_state">
  691. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  692. <a href="#none" class="itemLink" tabindex="0">
  693. <div class="itemPic">
  694. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug07.jpg">
  695. </div>
  696. <div class="itemInfo">
  697. <p class="itemBrand">BRAND NAME</p>
  698. <div class=" itemName">남성 로고 자카드 방풍 패딩 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  699. <p class="itemPrice">80,100</p>
  700. </div>
  701. </a>
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. <div class="fy_item" id="fy2">
  707. <div class="part">
  708. <div class="item_prod">
  709. <div class="item_state">
  710. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  711. <a href="#none" class="itemLink" tabindex="0">
  712. <div class="itemPic">
  713. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug04.jpg">
  714. </div>
  715. <div class="itemInfo">
  716. <p class="itemBrand">BRAND NAME</p>
  717. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  718. <p class="itemPrice">80,100</p>
  719. </div>
  720. </a>
  721. </div>
  722. </div>
  723. <div class="item_prod">
  724. <div class="item_state">
  725. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  726. <a href="#none" class="itemLink" tabindex="0">
  727. <div class="itemPic">
  728. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug05.jpg">
  729. </div>
  730. <div class="itemInfo">
  731. <p class="itemBrand">BRAND NAME</p>
  732. <div class=" itemName">남성 로고 자카드 방풍 패딩 가디건</div>
  733. <p class="itemPrice">80,100</p>
  734. </div>
  735. </a>
  736. </div>
  737. </div>
  738. </div>
  739. <div class="part">
  740. <div class="item_prod">
  741. <div class="item_state">
  742. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  743. <a href="#none" class="itemLink" tabindex="0">
  744. <div class="itemPic">
  745. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug01.jpg">
  746. </div>
  747. <div class="itemInfo">
  748. <p class="itemBrand">BRAND NAME</p>
  749. <div class=" itemName">자카드 방풍 패딩 스웨터 가디건 자카드 </div>
  750. <p class="itemPrice">80,100</p>
  751. </div>
  752. </a>
  753. </div>
  754. </div>
  755. <div class="item_prod">
  756. <div class="item_state">
  757. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  758. <a href="#none" class="itemLink" tabindex="0">
  759. <div class="itemPic">
  760. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug02.jpg">
  761. </div>
  762. <div class="itemInfo">
  763. <p class="itemBrand">BRAND NAME</p>
  764. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  765. <p class="itemPrice">80,100</p>
  766. </div>
  767. </a>
  768. </div>
  769. </div>
  770. </div>
  771. <div class="part">
  772. <div class="item_prod">
  773. <div class="item_state">
  774. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  775. <a href="#none" class="itemLink" tabindex="0">
  776. <div class="itemPic">
  777. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug06.jpg">
  778. </div>
  779. <div class="itemInfo">
  780. <p class="itemBrand">BRAND NAME</p>
  781. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  782. <p class="itemPrice">80,100</p>
  783. </div>
  784. </a>
  785. </div>
  786. </div>
  787. <div class="item_prod">
  788. <div class="item_state">
  789. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  790. <a href="#none" class="itemLink" tabindex="0">
  791. <div class="itemPic">
  792. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug07.jpg">
  793. </div>
  794. <div class="itemInfo">
  795. <p class="itemBrand">BRAND NAME</p>
  796. <div class=" itemName">남성 로고 자카드 방풍 패딩 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  797. <p class="itemPrice">80,100</p>
  798. </div>
  799. </a>
  800. </div>
  801. </div>
  802. </div>
  803. <div class="part lg">
  804. <div class="item_prod">
  805. <div class="item_state">
  806. <button type="button" class="itemLike" tabindex="0">관심상품 추가</button>
  807. <a href="#none" class="itemLink" tabindex="0">
  808. <div class="itemPic">
  809. <img alt="BLACK-a" class=" vLHTC pd_img" src="/images/pc/thumb/main_sug03.jpg">
  810. </div>
  811. <div class="itemInfo">
  812. <p class="itemBrand">BRAND NAME</p>
  813. <div class=" itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
  814. <p class="itemPrice">80,100</p>
  815. </div>
  816. </a>
  817. </div>
  818. </div>
  819. </div>
  820. </div>
  821. <div class="fy_item" id="fy3"></div>
  822. <div class="fy_item" id="fy4"></div>
  823. <div class="fy_item" id="fy5"></div>
  824. <div class="fy_item" id="fy6"></div>
  825. <div class="fy_item" id="fy7"></div>
  826. <div class="fy_item" id="fy8"></div>
  827. <div class="fy_item" id="fy9"></div>
  828. <div class="fy_item" id="fy10"></div>
  829. </div>
  830. </div>
  831. <!-- End Of Main Contents -->
  832. </div>
  833. </div>
  834. <script th:inline="javascript">
  835. /*<![CDATA[*/
  836. var mainLayoutList = [[${mainLayoutList}]];
  837. // var targetTime = '';
  838. // if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
  839. // targetTime = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
  840. // }
  841. // if(targetTime != null && targetTime != ''){
  842. // /* 핫딜 countDown */
  843. // var endTime = new Date(targetTime); // 남은시간 지정
  844. // endTime = (Date.parse(endTime) / 1000);
  845. //
  846. // var countdown = document.getElementById("tiles"); // get tag element
  847. //
  848. // getCountdown();
  849. //
  850. // setInterval(function () { getCountdown(); }, 1000);
  851. //
  852. // function getCountdown(){
  853. // // find the amount of "seconds" between now and target
  854. // var now = new Date();
  855. // now = (Date.parse(now) / 1000);
  856. //
  857. // var timeLeft = endTime - now;
  858. //
  859. // var days = Math.floor(timeLeft / 86400);
  860. // var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
  861. // var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
  862. // var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
  863. //
  864. // if (hours < '10') { hours = '0' + hours; }
  865. // if (minutes < '10') { minutes = '0' + minutes; }
  866. // if (seconds < '10') { seconds = '0' + seconds; }
  867. //
  868. // // format countdown string + set tag value
  869. // countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
  870. // }
  871. //
  872. // function pad(n) {
  873. // return (n < 10 ? '0' : '') + n;
  874. // }
  875. // }
  876. /* 핫딜 countDown */
  877. /* 핫딜 countDown */
  878. var target_date = '';
  879. if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
  880. target_date = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
  881. }
  882. if(target_date != null && target_date != ''){
  883. // var target_date = new Date().getTime() + (1000*3600*7); // set the countdown date
  884. var days, hours, minutes, seconds; // variables for time units
  885. var countdown = document.getElementById("tiles"); // get tag element
  886. getCountdown();
  887. var timerStop = setInterval(function () { getCountdown(); }, 1000);
  888. var fixDate = new Date().getTime();
  889. var fixTarget = (target_date - fixDate) / 1000;
  890. var width = (86400-fixTarget)*100/86400;
  891. function getCountdown(){
  892. // find the amount of "seconds" between now and target
  893. var current_date = new Date().getTime();
  894. var seconds_left = (target_date - current_date) / 1000;
  895. seconds_left = seconds_left % 86400;
  896. hours = pad( parseInt(seconds_left / 3600) );
  897. seconds_left = seconds_left % 3600;
  898. minutes = pad( parseInt(seconds_left / 60) );
  899. seconds = pad( parseInt( seconds_left % 60 ) );
  900. // format countdown string + set tag value
  901. countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
  902. var elem = document.getElementById("barCurrent");
  903. function progressMove(){
  904. width += (100-width)/fixTarget;
  905. elem.style.width = width + "%";
  906. }
  907. progressMove();
  908. if(seconds_left < 1){
  909. clearInterval(timerStop);
  910. elem.style.width = "100%";
  911. }
  912. }
  913. function pad(n) {
  914. return (n < 10 ? '0' : '') + n;
  915. }
  916. }
  917. /* countDown */
  918. // var targetTime = $("#socailForm").find("input[name=targetTime]").val();
  919. // if(targetTime != null && targetTime != ''){
  920. // /* 핫딜 countDown */
  921. // var endTime = new Date(targetTime); // 남은시간 지정
  922. // endTime = (Date.parse(endTime) / 1000);
  923. //
  924. // var countdown = document.getElementById("tiles"); // get tag element
  925. //
  926. // getCountdown();
  927. //
  928. // setInterval(function () { getCountdown(); }, 1000);
  929. //
  930. // function getCountdown(){
  931. // // find the amount of "seconds" between now and target
  932. // var now = new Date();
  933. // now = (Date.parse(now) / 1000);
  934. //
  935. // var timeLeft = endTime - now;
  936. //
  937. // var days = Math.floor(timeLeft / 86400);
  938. // var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
  939. // var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
  940. // var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
  941. //
  942. // if (hours < '10') { hours = '0' + hours; }
  943. // if (minutes < '10') { minutes = '0' + minutes; }
  944. // if (seconds < '10') { seconds = '0' + seconds; }
  945. //
  946. // // format countdown string + set tag value
  947. // countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
  948. // }
  949. //
  950. // function pad(n) {
  951. // return (n < 10 ? '0' : '') + n;
  952. // }
  953. // }
  954. // 컨텐츠 호출
  955. $(document).ready( function() {
  956. //$("#header").load("head.html");
  957. //$("#footer").load("foot.html");
  958. $(".tag_list .btn").eq(0).trigger('click');
  959. let randomNum = Math.floor( ( Math.random() * 4 ) );
  960. $(".it_nav .btn").eq(randomNum).trigger('click');
  961. });
  962. /* SLIDE - MAIN_VISUAL */
  963. var agent = navigator.userAgent.toLowerCase();
  964. if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) {
  965. // ie일 경우
  966. var post01 = new Swiper('.main_visual .post-visual.swiper-container', {
  967. // Optional parameters
  968. loop: true,
  969. slidesPerView: 'auto',
  970. spaceBetween: 100,
  971. // initialSlide: 0,
  972. // 초기 슬라이드의 색인 번호입니다
  973. centeredSlides: true,
  974. // slidesOffsetBefore: 250,
  975. // 컨테이너 시작 부분 (모든 슬라이드 이전)에 슬라이드 오프셋 추가 (픽셀 단위)
  976. speed : 1000,
  977. // Navigation arrows
  978. //autoplay: false,
  979. autoplay: {
  980. delay: 3000,
  981. disableOnInteraction: false,
  982. },
  983. navigation: {
  984. nextEl: '.post-visual .swiper-button-next',
  985. prevEl: '.post-visual .swiper-button-prev',
  986. },
  987. pagination: {
  988. el: '.main_visual .swiper-pagination',
  989. clickable: true,
  990. },
  991. });
  992. }else{
  993. // ie가 아닐 경우
  994. var post01 = new Swiper('.main_visual .post-visual', {
  995. // Optional parameters
  996. loop: true,
  997. slidesPerView: 'auto',
  998. spaceBetween: 70,
  999. // initialSlide: 0,
  1000. // 초기 슬라이드의 색인 번호입니다
  1001. centeredSlides: true,
  1002. // slidesOffsetBefore: 250,
  1003. // 컨테이너 시작 부분 (모든 슬라이드 이전)에 슬라이드 오프셋 추가 (픽셀 단위)
  1004. speed : 1000,
  1005. // Navigation arrows
  1006. autoplay: {
  1007. delay: 3000,
  1008. disableOnInteraction: false,
  1009. },
  1010. navigation: {
  1011. nextEl: '.post-visual .swiper-button-next',
  1012. prevEl: '.post-visual .swiper-button-prev',
  1013. },
  1014. pagination: {
  1015. el: '.main_visual .swiper-pagination',
  1016. clickable: true,
  1017. },
  1018. });
  1019. }
  1020. //MAIN_VISUAL_자동재생 스탑
  1021. $(document).on('click','.main_visual .slide-curb-pause',function(e){
  1022. post01.autoplay.stop();
  1023. $(this).hide();
  1024. $('.main_visual .slide-curb-play').show();
  1025. });
  1026. //MAIN_VISUAL_자동재생 시작
  1027. $(document).on('click','.main_visual .slide-curb-play',function(e){
  1028. post01.autoplay.start();
  1029. $(this).hide();
  1030. $('.main_visual .slide-curb-pause').show();
  1031. });
  1032. //210624_ 수정 : autoplay delay 변경.
  1033. /* SLIDE - MAIN_TRENDY */
  1034. var main_trendy_slide = new Swiper('.main_trendy .post-trendy', {
  1035. watchSlidesProgress: true,
  1036. watchSlidesVisibility: true,
  1037. allowTouchMove: false,
  1038. loop: false,
  1039. loopAdditionalSlides : 1,
  1040. speed : 1000,
  1041. autoplay: {
  1042. delay: 3000,
  1043. disableOnInteraction:false,
  1044. },
  1045. navigation: {
  1046. nextEl: '.main_trendy .swiper-button-next',
  1047. prevEl: '.main_trendy .swiper-button-prev',
  1048. },
  1049. // pagination: {
  1050. // el: '.main_trendy .swiper-pagination',
  1051. // clickable: true,
  1052. // },
  1053. slidesPerView: 'auto',
  1054. spaceBetween: 22,
  1055. });
  1056. main_trendy_slide.on('slideChange', function () {
  1057. var newitemIndex = main_trendy_slide.activeIndex;
  1058. var slideWidth = $(".main_trendy .swiper-slide-visible").eq(0).width() + 22;
  1059. $(".main_trendy .swiper-slide").removeClass('scaleBig');
  1060. $(".main_trendy .swiper-slide-visible").eq(0).addClass('scaleBig');
  1061. $(".main_trendy .swiper-slide-visible").eq(3).addClass('scaleBig');
  1062. $(".main_trendy .swiper-wrapper").css("transform","translateX(-"+ (slideWidth * newitemIndex) +"px)");
  1063. });
  1064. main_trendy_slide.on('reachEnd', function () {
  1065. var newitemIndex = main_trendy_slide.activeIndex + 1;
  1066. var slideWidth = $(".main_trendy .swiper-slide-visible").eq(0).width() + 22;
  1067. $(".main_trendy .swiper-slide").removeClass('scaleBig');
  1068. $(".main_trendy .swiper-slide-visible").eq(1).addClass('scaleBig');
  1069. $(".main_trendy .swiper-slide-visible").eq(4).addClass('scaleBig');
  1070. $(".main_trendy .swiper-wrapper").css("transform","translateX(-"+ (slideWidth * newitemIndex) +"px)");
  1071. function l(n) {
  1072. if (n.direction !== "none")
  1073. {
  1074. var t = n.direction === "next" ? n.currentIndex + 1 : n.currentIndex - 1;
  1075. o(t)
  1076. }
  1077. }
  1078. });
  1079. /* SLIDE - MAIN_IT */
  1080. var main_it_slide = new Swiper ('.main_it .post-it', {
  1081. //loop: true,
  1082. slidesPerView: 'auto',
  1083. spaceBetween: 20,
  1084. slidesPerView: 4,
  1085. observer: true,
  1086. observeParents: true,
  1087. speed : 1000,
  1088. freeMode: true,
  1089. autoplay: false,
  1090. scrollbar: {
  1091. el: '.main_it .swiper-scrollbar',
  1092. hide: false,
  1093. },
  1094. });
  1095. //MAIN_IT_카테고리 탭
  1096. $(".main_it .it_nav .btn").click(function(){
  1097. var itActive = $(this).attr('data-tab');
  1098. $(".main_it .it_nav .btn").removeClass('active');
  1099. $(".main_it .it_item").removeClass('active');
  1100. $(this).addClass('active');
  1101. $('#'+itActive).addClass('active');
  1102. });
  1103. /* SLIDE - MAIN_DEAL */
  1104. var main_deal_slide = new Swiper ('.main_deal .post-deal', {
  1105. loop: false,
  1106. slidesPerView: 4,
  1107. // slidesToScroll: 4,
  1108. // centeredSlides: true,
  1109. speed : 1000,
  1110. autoWidth: true,
  1111. autoplay: false,
  1112. freeMode:true,
  1113. spaceBetween: 20,
  1114. // autoplay: {
  1115. // delay: 2000,
  1116. // disableOnInteraction: false,
  1117. // },
  1118. scrollbar: {
  1119. el: '.post-deal .swiper-scrollbar',
  1120. hide: false,
  1121. },
  1122. });
  1123. //210604_ 수정 : 브랜드 PICK 네비게이션 수정.
  1124. /* 브랜드 PICK 갯수체크 210430_수정 */
  1125. var pickCont = $('.post-pick-nav .swiper-slide');
  1126. var pickLength = pickCont.length;
  1127. if (pickLength < 7) { //210614_ 수정 : 슬라이드 갯수 7개 미만일시 롤링 기능 억제.
  1128. /* SLIDE - MAIN_PICK */
  1129. var main_pick_nav = new Swiper('.main_pick .post-pick-nav', { //top
  1130. initialSlide: 0,
  1131. slidesPerView: 6,
  1132. // slidesPerGroup: 6,
  1133. loop: false,
  1134. watchOverflow : true,
  1135. // slideToClickedSlide : true,
  1136. slideToClickedSlide : true,
  1137. loopAdditionalSlides : 1,
  1138. watchSlidesVisibility: true,
  1139. watchSlidesProgress: true,
  1140. freeMode: false,
  1141. navigation: {
  1142. nextEl: '.main_pick .swiper-button-next',
  1143. prevEl: '.main_pick .swiper-button-prev',
  1144. },
  1145. });
  1146. } else {
  1147. /* SLIDE - MAIN_PICK */
  1148. var main_pick_nav = new Swiper('.main_pick .post-pick-nav', { //top
  1149. initialSlide: 0,
  1150. slidesPerView: 6,
  1151. slidesPerGroup: 6,
  1152. loop: false,
  1153. // slideToClickedSlide : true,
  1154. slideToClickedSlide : true,
  1155. //loopAdditionalSlides : 1,
  1156. watchSlidesVisibility: true,
  1157. watchSlidesProgress: true,
  1158. freeMode: false,
  1159. navigation: {
  1160. nextEl: '.main_pick .swiper-button-next',
  1161. prevEl: '.main_pick .swiper-button-prev',
  1162. },
  1163. });
  1164. }
  1165. //210622_ 삭제 : 슬라이드 주석 삭제.
  1166. var pickForCont = $('.post-pick-for > .swiper-wrapper > .swiper-slide');
  1167. var pickForLength = pickForCont.length;
  1168. if (pickForLength < 7) {
  1169. var main_pick_post = new Swiper('.main_pick .post-pick-for', { //thumbs
  1170. initialSlide: 0,
  1171. slidesPerView: 1,
  1172. loop: false,
  1173. watchOverflow : true,
  1174. loopeSlides: 6,
  1175. spaceBetween: 10,
  1176. loopAdditionalSlides: 1,
  1177. allowTouchMove: false,
  1178. thumbs: {
  1179. swiper: main_pick_nav
  1180. },
  1181. });
  1182. }else{
  1183. var main_pick_post = new Swiper('.main_pick .post-pick-for', { //thumbs
  1184. initialSlide: 0,
  1185. slidesPerView: 1,
  1186. loop: true,
  1187. loopeSlides: 6,
  1188. loopAdditionalSlides: 1,
  1189. allowTouchMove: false,
  1190. thumbs: {
  1191. swiper: main_pick_nav
  1192. },
  1193. });
  1194. }
  1195. var main_pick_lookbook = new Swiper ('.main_pick .post-lookbook', {
  1196. slidesPerView: 1,
  1197. speed : 1000,
  1198. loop: false,
  1199. watchOverflow: true, //loop와 함께 사용 불가.
  1200. autoplay: {
  1201. delay: 3000,
  1202. disableOnInteraction: false,
  1203. },
  1204. pagination: {
  1205. el: '.main_pick .post-lookbook .swiper-pagination',
  1206. clickable: true,
  1207. },
  1208. });
  1209. //210705_수정 : 기획전 배너 2개이상 등록시 슬라이드 각각 실행.
  1210. $(".main_1stage .post-bnnWide").each(function(index){
  1211. var pickBnnCont = $(this).find('.swiper-slide');
  1212. var pickBnnLength = pickBnnCont.length;
  1213. if (pickBnnLength < 2) {
  1214. /* SLIDE - MAIN_BANNER WIDE */
  1215. var main_bnnWide_slide = new Swiper ($(this), {
  1216. slidesPerView: 1,
  1217. speed : 1000,
  1218. initialSlide: 0,
  1219. loop: false,
  1220. watchOverflow: true, //loop와 함께 사용 불가.
  1221. navigation: {
  1222. nextEl: '.main_1stage .swiper-button-next',
  1223. prevEl: '.main_1stage .swiper-button-prev',
  1224. },
  1225. // allowTouchMove : false,
  1226. // centeredSlides: true,
  1227. });
  1228. }else{
  1229. /* SLIDE - MAIN_BANNER WIDE */
  1230. var main_bnnWide_slide = new Swiper ($(this), {
  1231. slidesPerView: 1,
  1232. speed : 1000,
  1233. initialSlide: 0,
  1234. loop: true,
  1235. autoplay: {
  1236. delay: 4000,
  1237. disableOnInteraction: false,
  1238. },
  1239. navigation: {
  1240. nextEl: '.main_1stage .swiper-button-next',
  1241. prevEl: '.main_1stage .swiper-button-prev',
  1242. },
  1243. // allowTouchMove : false,
  1244. // centeredSlides: true,
  1245. });
  1246. }
  1247. });
  1248. /* SLIDE - MAIN_RECOMM */
  1249. //MAIN_RECOMM_키워드 탭
  1250. $(".main_recomm .tag_list .btn").click(function(){
  1251. var recommActive = $(this).attr('data-tab');
  1252. $(".main_recomm .tag_list .btn").removeClass('active');
  1253. $(".main_recomm .tagitem").removeClass('active');
  1254. $(this).addClass('active');
  1255. $('#'+recommActive).addClass('active');
  1256. });
  1257. function init(){
  1258. if(main_recomm_slide != null) main_recomm_slide.destroy();
  1259. var main_recomm_slide = new Swiper ('.main_recomm .post-recomm', {
  1260. slidesPerView: 5,
  1261. slidesPerGroup: 5,
  1262. speed : 1000,
  1263. spaceBetween: 20,
  1264. loop : true,
  1265. pagination: {
  1266. el: '.main_recomm .swiper-pagination',
  1267. clickable: true,
  1268. },
  1269. navigation: {
  1270. nextEl: '.main_recomm .swiper-button-next',
  1271. prevEl: '.main_recomm .swiper-button-prev',
  1272. },
  1273. observer:true,
  1274. observeParents: true,
  1275. });
  1276. }
  1277. init();
  1278. /* SLIDE - MAIN_FORYOU */
  1279. var cntNum = 0;
  1280. var main_foryou_slide = new Swiper ('.main_foryou .post-sug .swiper-container', {
  1281. allowTouchMove: false,
  1282. loop: false,
  1283. effect: 'fade',
  1284. autoHeight: false,
  1285. autoplay: {
  1286. delay: 25000,
  1287. disableOnInteraction: false,
  1288. },
  1289. pagination: {
  1290. el: '.post-sug .swiper-pagination',
  1291. clickable: true,
  1292. },
  1293. on : {
  1294. slideChange: function(){
  1295. $(".fy_nav .swiper-slide li").children('.btn_shape').removeClass('active');
  1296. $(".fy_nav .swiper-slide-next li").eq(0).children('.btn_shape').addClass('active');
  1297. $(".fy_nav .swiper-slide-prev li").eq(0).children('.btn_shape').addClass('active');
  1298. foryouIndex = -1;
  1299. if(cntNum === 0){
  1300. $('.fy_item').removeClass('active');
  1301. $('#fy6').addClass('active');
  1302. cntNum = 1;
  1303. } else {
  1304. $('.fy_item').removeClass('active');
  1305. $('#fy1').addClass('active');
  1306. cntNum = 0;
  1307. }
  1308. clearInterval(ti);
  1309. ti = startTimeInterval();
  1310. }
  1311. },
  1312. });
  1313. function foryouInterval(_foryouIndex) {
  1314. var foryouCateItems = $(".main_foryou .fy_nav .swiper-slide-active ul li .btn_shape");
  1315. $(foryouCateItems[(_foryouIndex + 1) % 5]).addClass("active");
  1316. $(foryouCateItems[_foryouIndex % 5]).removeClass("active");
  1317. }
  1318. function foryouFy_item(_Fy_itemIndex) {
  1319. var fynavItems = $('.main_foryou .fy_nav .swiper-slide-active ul li .btn_shape.active');
  1320. var fyActive = $(fynavItems).attr('data-tab');
  1321. // $(".fy_nav .btn_shape").removeClass('active');
  1322. $(".fy_item").removeClass('active');
  1323. // $(".fy_item").addClass('active');
  1324. $('#'+fyActive).addClass('active');
  1325. }
  1326. var foryouIndex = 0;
  1327. var ti;
  1328. function startTimeInterval() {
  1329. return setInterval(function () {
  1330. $(".fy_nav .btn_shape").removeClass('active');
  1331. $(".fy_item").removeClass('active');
  1332. foryouInterval(foryouIndex);
  1333. foryouFy_item();
  1334. if (foryouIndex >= 5) foryouIndex = 0;
  1335. foryouIndex++;
  1336. }, 5000);
  1337. }
  1338. $(".fy_nav .btn_shape").click(function(){
  1339. var fyActive = $(this).attr('data-tab');
  1340. $(".fy_nav .btn_shape").removeClass('active');
  1341. $(".fy_item").removeClass('active');
  1342. $(this).addClass('active');
  1343. $('#'+fyActive).addClass('active');
  1344. });
  1345. $(".fy_nav ul li").click(function(){
  1346. foryouIndex = $(this).index();
  1347. clearInterval(ti);
  1348. ti = startTimeInterval();
  1349. });
  1350. ti = startTimeInterval();
  1351. /* SLIDE - MAIN_TV */
  1352. //210629_ 수정 : 슬라이드 1개일 때, loop랑 롤링 제거.
  1353. var mainTvCont = $('.main_tv .swiper-slide');
  1354. var mainTvLength = mainTvCont.length;
  1355. if (mainTvLength < 2) {
  1356. var main_tv_slide = new Swiper ('.main_tv .post-tv', {
  1357. loop: false,
  1358. watchOverflow:true,
  1359. slidesPerView: 'auto',
  1360. spaceBetween: 170,
  1361. centeredSlides: true,
  1362. speed : 1000,
  1363. autoplay: false,
  1364. navigation: {
  1365. nextEl: '.main_tv .swiper-button-next',
  1366. prevEl: '.main_tv .swiper-button-prev',
  1367. },
  1368. pagination: {
  1369. el: '.main_tv .swiper-pagination',
  1370. clickable: true,
  1371. },
  1372. });
  1373. }else{
  1374. var main_tv_slide = new Swiper ('.main_tv .post-tv', {
  1375. loop: true,
  1376. slidesPerView: 'auto',
  1377. spaceBetween: 170,
  1378. centeredSlides: true,
  1379. speed : 1000,
  1380. autoplay: false,
  1381. navigation: {
  1382. nextEl: '.main_tv .swiper-button-next',
  1383. prevEl: '.main_tv .swiper-button-prev',
  1384. },
  1385. pagination: {
  1386. el: '.main_tv .swiper-pagination',
  1387. clickable: true,
  1388. },
  1389. });
  1390. }
  1391. $(document).ready(function() {
  1392. // 몰메인 <br> 태그
  1393. $('.mainTitle').each(function (){
  1394. var brText = $(this).find("input[name=mainTitlee]").val();
  1395. let tag = brText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1396. $(this).append(tag);
  1397. });
  1398. // 가로긴배너 슬라이드
  1399. $('.silderBannerArea').each(function (){
  1400. let tag = '';
  1401. if(!gagajf.isNull($(this).find("input[name=bannerNote]").val())) {
  1402. var noteText = $(this).find("input[name=bannerNote]").val();
  1403. tag = noteText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1404. $(this).find('.noteArea').append(tag);
  1405. }
  1406. });
  1407. // 스타일리포트 <br> 태그
  1408. $('.styleArea').each(function (){
  1409. let tag = '';
  1410. let tag2 = '';
  1411. if(!gagajf.isNull($(this).find("input[name=styleTitle]").val())) {
  1412. var titleText = $(this).find("input[name=styleTitle]").val();
  1413. tag = titleText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1414. $(this).find('.styleTitleC').append(tag);
  1415. }
  1416. if(!gagajf.isNull($(this).find("input[name=styleNote]").val())) {
  1417. var noteText = $(this).find("input[name=styleNote]").val();
  1418. tag2 = noteText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1419. $(this).find('.styleNoteC').append(tag2);
  1420. }
  1421. });
  1422. // 잇아이템 <br> 태그
  1423. if(!gagajf.isNull($("#id004").find("input[name=title]").val())){
  1424. var id004Text = $("#id004").find("input[name=title]").val();
  1425. let tag = id004Text.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1426. $("#id004").append(tag);
  1427. }
  1428. // 핫딜 <br> 태그
  1429. if(!gagajf.isNull($("#id006").find("input[name=title]").val())){
  1430. var id006Text = $("#id006").find("input[name=title]").val();
  1431. let tag = id006Text.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1432. $("#id006").append(tag);
  1433. }
  1434. // 브랜드픽 <br> 태그
  1435. $('#id007 .title').each(function (){
  1436. let tag = '';
  1437. if(!gagajf.isNull($(this).find("input[name=title]").val())){
  1438. var brText = $(this).find("input[name=title]").val();
  1439. tag = brText.replace(/(<br>|<br\/>|<br \/>)/g, '<br>');
  1440. $(this).append(tag);
  1441. }
  1442. });
  1443. });
  1444. /*]]>*/
  1445. </script>
  1446. </th:block>
  1447. </body>
  1448. </html>