GoodsOtherFormMob.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <!--
  5. *******************************************************************************
  6. * @source : GoodsOtherFormMob.html
  7. * @desc : 상품 안내
  8. *============================================================================
  9. * STYLE24
  10. * Copyright(C) 2020 TSIT, All rights reserved.
  11. *============================================================================
  12. * VER DATE AUTHOR DESCRIPTION
  13. * === =========== ========== =============================================
  14. * 1.0 2021.04.05 eskim 최초 작성
  15. *******************************************************************************
  16. -->
  17. <th:block th:if="${goodsList != null and !goodsList.empty}" th:with="imgGoodsUrl=${@environment.getProperty('upload.goods.view')}, uxImgUrl=${@environment.getProperty('domain.uximage')}">
  18. <h3 class="tit">
  19. <th:block th:if="${params.goodsOtherGb =='tmtb'}" th:text="${'함께하면 할인되는 다다익선 상품'}"></th:block>
  20. <th:block th:if="${params.goodsOtherGb =='together'}" th:text="${'이 상품과 함께 본 상품'}"></th:block>
  21. <th:block th:if="${params.goodsOtherGb =='recommend'}" th:text="${params.brandGroupNm +' 추천상품'}"></th:block>
  22. <th:block th:if="${params.goodsOtherGb =='like'}" th:text="${'이 상품과 비슷한 상품'}"></th:block>
  23. </h3>
  24. <div class="area_slider">
  25. <div class="swiper-container swiper-container-initialized swiper-container-horizontal">
  26. <div class="swiper-wrapper">
  27. <div class="swiper-slide" th:each="goodsInfo, status : ${goodsList}">
  28. <div class="item_prod">
  29. <div class="item_state">
  30. <button type="button" class="itemLike" th:classappend="${goodsInfo.wishYn == 'Y'}? 'likeit active' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsInfo.goodsCd}, ithrCd=${params.ithrCd}, contentsLoc=${params.contentsLoc}, planDtlSq=''">관심상품 추가</button>
  31. <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail([[${goodsInfo.goodsCd}]], '',[[${params.ithrCd}]],'[[${params.contentsLoc}]]','','pc_detail');" class="itemLink" >
  32. <div class="itemPic">
  33. <img alt="" class="vLHTC pd_img" th:src="${imgGoodsUrl+'/'+goodsInfo.sysImgNm}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
  34. </div>
  35. <p class="itemBrand" th:text="${goodsInfo.brandGroupNm}">BRAND NAME1</p>
  36. <div class="itemName" th:text="${goodsInfo.goodsFullNm}">남성 로고 자카드 방풍 패딩</div>
  37. <p class="itemPrice">
  38. <span class="itemPrice_original" th:if="${goodsInfo.listPrice > goodsInfo.currPrice}" th:text="${#numbers.formatInteger(goodsInfo.listPrice, 0,'COMMA')}">1,000,000</span>
  39. <th:block th:text="${#numbers.formatInteger(goodsInfo.currPrice, 0,'COMMA')}"></th:block>
  40. <span class="itemPercent" th:if="${goodsInfo.dcRate > 0}" th:text="|${#numbers.formatDecimal(goodsInfo.dcRate,0,0)}%|">30%</span>
  41. </p>
  42. </a>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <script th:inline="javascript">
  50. /*<![CDATA[*/
  51. //슬라이드 - 함께하면 할인되는 다다익선 상품
  52. var togetherItemSwiper = new Swiper('.pd .pd_together .area_slider .swiper-container', {
  53. slidesPerView: 3,
  54. spaceBetween: 8,
  55. });
  56. //슬라이드 - 이 상품과 함께 본 상품
  57. var otherItemSwiper = new Swiper('.pd .pd_clickother .area_slider .swiper-container', {
  58. slidesPerView: 2,
  59. spaceBetween: 8,
  60. });
  61. //슬라이드 - 동일브랜드 상품 추천
  62. var rcmdItemSwiper = new Swiper('.pd .pd_samebrand .area_slider .swiper-container', {
  63. slidesPerView: 3,
  64. spaceBetween: 8,
  65. });
  66. //슬라이드 - 이 상품과 비슷한 상품
  67. var relateItemSwiper = new Swiper('.pd .pd_relate .area_slider .swiper-container', {
  68. slidesPerView: 3,
  69. spaceBetween: 8,
  70. });
  71. /*]]>*/
  72. </script>
  73. </th:block>
  74. </html>