OutletMainFormWeb.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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 : OutletMainFormWeb.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.04.20 bin2107 최초 작성
  17. *******************************************************************************
  18. -->
  19. <body>
  20. <th:block layout:fragment="content">
  21. <div id="container" class="container dp">
  22. <div class="breadcrumb">
  23. <ul>
  24. <li class="bread_home"><a href="index.html">홈</a></li>
  25. <li class="bread_2depth">아울렛</li>
  26. </ul>
  27. </div>
  28. <div class="wrap">
  29. <th:block th:if="${outletMainLayoutList}" th:each="mainLayoutData, mainStat : ${outletMainLayoutList}" th:with="contentsLoc=${#strings.replace(mainLayoutData.contentsLoc,'SOM','')},contentsTitle=${mainLayoutData.contentsTitle}">
  30. <!-- 상단 스크롤 슬라이드 배너 -->
  31. <th:block th:if="${contentsLoc=='001'}">
  32. <div class="content dp_submain">
  33. <div class="cont_head">
  34. <div>
  35. <h3>아울렛</h3>
  36. </div>
  37. </div>
  38. <div class="cont_body" th:if="${planningList != null and !planningList.empty}">
  39. <div class="swiper-container">
  40. <div class="swiper-wrapper">
  41. <div class="swiper-slide" th:each="item, status : ${planningList}">
  42. <a th:href="${item.strVar1}">
  43. <div class="img">
  44. <img th:src="${@environment.getProperty('domain.image') + item.imgPath1}" alt="서브메인 썸네일">
  45. </div>
  46. <div class="txt">
  47. <p class="subject" th:text="${item.strTitle1}"></p>
  48. <span th:text="${item.subText1}"></span>
  49. </div>
  50. </a>
  51. </div>
  52. </div>
  53. <div class="swiper-controls">
  54. <div class="swiper-scrollbar"></div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </th:block>
  60. <!-- //상단 스크롤 슬라이드 배너 -->
  61. <th:block th:if="${contentsLoc=='004'}">
  62. <!-- 카테고리 바로가기 -->
  63. <div class="content wide dp_category">
  64. <div class="cont_head">
  65. <h4>카테고리 바로가기</h4>
  66. </div>
  67. <div class="cont_body">
  68. <div class="dp_cate_list">
  69. <a href="">전체</a>
  70. <a href="">여성</a>
  71. <a href="">남성</a>
  72. <a href="">유아동</a>
  73. <a href="">골프</a>
  74. <a href="">라이프</a>
  75. </div>
  76. </div>
  77. </div>
  78. </th:block>
  79. <!-- MD 추천 아이템 -->
  80. <th:block th:if="${contentsLoc=='002'}">
  81. <div class="content md_item" th:if="${mdPickGoodsList != null}">
  82. <div class="cont_head">
  83. <h4 th:text="${contentsTitle}">MD가 추천하는 아울렛 아이템</h4>
  84. </div>
  85. <div class="cont_body">
  86. <div class="swiper-container">
  87. <div class="swiper-wrapper">
  88. <div class="swiper-slide" th:each="item, status : ${mdPickGoodsList}">
  89. <div class="item_prod">
  90. <div class="item_state">
  91. <button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, ithrCd='', contentsLoc='SOM002', planDtlSq=''">관심상품 추가</button>
  92. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM002');">
  93. <div class="itemPic">
  94. <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + item.sysImgNm}" th:alt="${item.goodsCd}"/>
  95. </div>
  96. <p class="itemBrand" th:text="${item.brandGroupNm}">BRAND NAME</p>
  97. <div class="itemName" th:text="${item.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
  98. <p class="itemPrice">[[${#numbers.formatInteger(item.currPrice,0,'COMMA')} + 원]]
  99. <span class="itemPrice_original" th:if="${item.currPrice != item.listPrice}" th:text="${#numbers.formatInteger(item.listPrice,3,'COMMA')}">89,000</span>
  100. <span class=" itemPercent" th:if="${item.currPrice != item.listPrice}" th:text="${(item.listPrice == 0 ? 0 : #numbers.formatDecimal((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
  101. </p>
  102. <div class="itemComment" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
  103. </a>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="swiper-pagination"></div>
  110. <div class="swiper-button-prev"></div>
  111. <div class="swiper-button-next"></div>
  112. </div>
  113. </div>
  114. </th:block>
  115. <!-- //MD 추천 아이템 -->
  116. <!-- 베스트 상품 리스트 -->
  117. <th:block th:if="${contentsLoc=='003'}">
  118. <div class="content dp_best_list" th:if="${bestGoodsList != null}">
  119. <div class="cont_head">
  120. <div>
  121. <h4 th:text="${contentsTitle}">베스트</h4>
  122. </div>
  123. </div>
  124. <div class="cont_body">
  125. <div class="list_content">
  126. <div class="itemsGrp"> <!-- itemsGrp rank hot deal -->
  127. <div class="item_prod" th:each="item, status : ${bestGoodsList}">
  128. <div class="item_state">
  129. <button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, ithrCd='', contentsLoc='SOM003', planDtlSq=''">관심상품 추가</button>
  130. <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM003');">
  131. <div class="rank" th:classappend="${status.count==1}?'ranker'"><span th:text="${status.index+1}">1</span></div>
  132. <div class="itemPic">
  133. <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + item.sysImgNm}">
  134. </div>
  135. <p class="itemBrand" th:text="${item.brandGroupNm}">BRAND NAME</p>
  136. <div class="itemName" th:text="${item.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
  137. <p class="itemPrice">[[${#numbers.formatInteger(item.currPrice,0,'COMMA')} + 원]]
  138. <span class="itemPrice_original" th:if="${item.currPrice != item.listPrice}" th:text="${#numbers.formatInteger(item.listPrice,3,'COMMA')}">89,000</span>
  139. <span class=" itemPercent" th:if="${item.currPrice != item.listPrice}" th:text="${(item.listPrice == 0 ? 0 : #numbers.formatDecimal((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
  140. </p>
  141. <div class="itemcolorchip">
  142. <span class="chip_color35" value="ABM">BEIGE</span>
  143. <span class="chip_color54" value="BDS">BLACK</span>
  144. <span class="chip_color40" value="YBR">WHITE</span>
  145. </div>
  146. <p class="itemBadge">
  147. <span class="badge13">베스트 </span>
  148. </p>
  149. <div class="itemComment" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
  150. </a>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </th:block>
  158. </th:block>
  159. <!-- //베스트 상품 리스트 -->
  160. </div>
  161. </div>
  162. <script th:inline="javascript">
  163. /*<![CDATA[*/
  164. $(document).ready(function() {
  165. //fnSetCategory1Depts();
  166. });
  167. /* SLIDE - 상단 스크롤 슬라이드 배너 */
  168. var submain_slide = new Swiper('.dp_submain .swiper-container', {
  169. slidesPerView: 4,
  170. spaceBetween: 20,
  171. freeMode:true,
  172. scrollbar: {
  173. el: '.dp_submain .swiper-scrollbar',
  174. hide: false,
  175. },
  176. });
  177. /* SLIDE - MD ITEMS */
  178. var dp_submain_mditem = new Swiper('.dp .md_item .swiper-container', {
  179. slidesPerView: 5,
  180. spaceBetween: 20,
  181. watchSlidesProgress: true,
  182. watchSlidesVisibility: true,
  183. allowTouchMove: false,
  184. speed : 1000,
  185. autoplay: {
  186. delay: 3000,
  187. disableOnInteraction:false,
  188. },
  189. navigation: {
  190. nextEl: '.dp .md_item .swiper-button-next',
  191. prevEl: '.dp .md_item .swiper-button-prev',
  192. },
  193. pagination: {
  194. el: '.dp .md_item .swiper-pagination',
  195. clickable: true,
  196. },
  197. });
  198. // 카테고리1Depts 설정
  199. var fnSetCategory1Depts = function() {
  200. let allCate = [[${allCateList}]];
  201. $.each(allCate, function(idx1, cate1) {
  202. if ([[${params.cate1No}]] == cate1.cate1No) {
  203. let tag = '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'' + cate1.cateGb + '\', ' + cate1.cate1No + ');">전체</a>\n';
  204. if (cate1.leafYn == 'N' && cate1.cate2List.length > 0) {
  205. $.each(cate1.cate2List, function(idx2, cate2) {
  206. tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'' + cate2.cateGb + '\',' + cate2.cate1No + ',' + cate2.cate2No + ');">' + cate2.cate2Nm + '</a>\n';
  207. });
  208. }
  209. $('.dp_cate_list').html(tag);
  210. $('.cate1Nm').html(cate1.cate1Nm);
  211. }
  212. });
  213. }
  214. /*]]>*/
  215. </script>
  216. </th:block>
  217. </body>
  218. </html>