PlanningReviewDetailFormMob.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <!--
  5. *******************************************************************************
  6. * @source : GoodsReviewDetailFormMob.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.07 eskim 최초 작성
  15. *******************************************************************************
  16. -->
  17. <div class="modal-dialog" role="document" th:with="imgGoodsUrl=${@environment.getProperty('upload.goods.view')}, uxImgUrl=${@environment.getProperty('domain.uximage')}, imgUrl=${@environment.getProperty('upload.image.view')}">
  18. <div class="modal-content">
  19. <div class="modal-header">
  20. <h5 class="modal-title" id="exampleFullLabel">리뷰 상세</h5>
  21. </th:block>
  22. </div>
  23. <div class="modal-body" th:if="${reviewList != null and !reviewList.empty}">
  24. <div class="pop_cont" th:each="review, status : ${reviewList}" >
  25. <!-- 리뷰사진영역 -->
  26. <div class="area_slider">
  27. <div class="swiper-container thumb_list">
  28. <div class="swiper-wrapper">
  29. <th:block th:if="${review.reviewAttachList != null and !review.reviewAttachList.empty}" >
  30. <th:block th:each="reviewAttach, attachStatus : ${review.reviewAttachList}">
  31. <div class="swiper-slide">
  32. <div class="thumb " th:classAppend="${(reviewAttach.fileGb == 'M') ? 'mov' :''}">
  33. <th:block th:if="${reviewAttach.fileGb == 'M'}">
  34. <iframe class="pd_mov" width="100%" height="100%" th:src="${kollusMediaUrl+'/'+reviewAttach.kmcKey +'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" frameborder="0" allowfullscreen></iframe>
  35. </th:block>
  36. <th:block th:unless="${reviewAttach.fileGb == 'M'}">
  37. <img th:src="${imgUrl+'/'+reviewAttach.sysFileNm}" alt="">
  38. </th:block>
  39. </div>
  40. </div>
  41. </th:block>
  42. </th:block>
  43. <th:block th:unless="${review.reviewAttachList != null and !review.reviewAttachList.empty}">
  44. <div class="swiper-slide"><div class="thumb nodata"><img th:src="${imgGoodsUrl+'/'+review.sysImgNm+'?RS=358'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'" alt=""></div></div><!-- 이미지 없으면 calss .nodata -->
  45. </th:block>
  46. </div>
  47. <!-- Add Pagination -->
  48. <div class="swiper-pagination"></div>
  49. </div>
  50. </div>
  51. <!-- //리뷰사진영역 -->
  52. <!-- 리뷰내용 -->
  53. <div class="pop_detail">
  54. <button type="button" class="pop_open_btn"><span class="sr-only"></span></button>
  55. <div class="comment_wrap">
  56. <div class="review_list">
  57. <ul>
  58. <li>
  59. <div class="review">
  60. <div class="info_box">
  61. <div class="star_score" th:with="starScore=${#numbers.formatDecimal((review.iscore*100/5), 0,0)}">
  62. <span class="star">
  63. <em class="progbar" th:style="${'width:'+starScore+'%;' }"></em> <!-- 평점 style로 표기 -->
  64. </span>
  65. </div>
  66. <div class="writer">
  67. <span class="wr_id" th:text="${review.maskingCustId}">ab2****</span>
  68. <span class="wr_date" th:text="${review.regDt}">2020.07.15</span>
  69. </div>
  70. </div>
  71. <div class="response_box">
  72. <div>
  73. <dl>
  74. <div th:if="${review.goodsOptionList != null and !review.goodsOptionList.empty}" >
  75. <dt >구매옵션</dt>
  76. <dd>
  77. <th:block th:each="reviewGoods, goodsStatus : ${review.goodsOptionList}">
  78. <th:block th:text="${reviewGoods.optCd1Nm +' / '+ reviewGoods.optCd2}">베이지 / 100</th:block>
  79. <th:block th:if="${not goodsStatus.last}" th:text="${','}"></th:block>
  80. </th:block>
  81. </dd>
  82. </div>
  83. <div>
  84. <dt>키/몸무게</dt>
  85. <dd><th:block th:if="${not #strings.isEmpty(review.height)}" th:text="|${review.height}cm / |"></th:block>
  86. <th:block th:if="${not #strings.isEmpty(review.weight)}" th:text="|${review.weight}kg|"></th:block>
  87. </dd>
  88. </div>
  89. </dl>
  90. </div>
  91. </div>
  92. <div class="txt_review_box">
  93. <p th:utext="${#strings.unescapeJava(#strings.escapeJava(review.reviewContent))}">옷</p>
  94. </div>
  95. <div class="response_box2" th:if="${not #strings.isEmpty(review.sizeGb)}">
  96. <div>
  97. <dl>
  98. <div>
  99. <dt>사이즈</dt>
  100. <dd th:text="${review.scoreSizeNm}">작음</dd>
  101. </div>
  102. <div>
  103. <dt>컬러</dt>
  104. <dd th:text="${review.scoreColorNm}">밝음</dd>
  105. </div>
  106. <th:block th:if="${review.sizeGb == 'T' or review.sizeGb == 'B'}">
  107. <div>
  108. <dt>핏</dt>
  109. <dd th:text="${review.scoreFitNm}">레귤러</dd>
  110. </div>
  111. <div>
  112. <dt>두께감</dt>
  113. <dd th:text="${review.scoreThickNm}">적당함</dd>
  114. </div>
  115. </th:block>
  116. <th:block th:unless="${review.sizeGb == 'T' or review.sizeGb == 'B'}">
  117. <div>
  118. <dt>무게감</dt>
  119. <dd th:text="${review.scoreWeightNm}">레귤러</dd>
  120. </div>
  121. <div>
  122. <dt>볼너비</dt>
  123. <dd th:text="${review.scoreBallNm}">적당함</dd>
  124. </div>
  125. </th:block>
  126. </dl>
  127. </div>
  128. </div>
  129. <div class="reply_box" th:if="${not #strings.isEmpty(review.admRpl)}">
  130. <div class="reply">
  131. <div class="reply_writer">
  132. <span class="wr_name">관리자</span>
  133. <span class="wr_date" th:text="${review.admRplDt}" >2020.07.15</span>
  134. </div>
  135. <div class="reply_txt">
  136. <p th:utext="${#strings.unescapeJava(#strings.escapeJava(review.admRpl))}">
  137. 안녕하세요, 스타일24 관리자입니다.
  138. </p>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </li>
  144. </ul>
  145. </div>
  146. </div>
  147. </div>
  148. <!-- //리뷰내용 -->
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. <script th:inline="javascript">
  154. /*<![CDATA[*/
  155. $(document).ready( function() {
  156. //슬라이드 - 포토,영상리뷰팝업
  157. let reviewAttchSq = 0;
  158. if (!gagajf.isNull( [[${review.attachSq}]])){
  159. reviewAttchSq = [[${review.attachSq}]];
  160. }
  161. // reviewAttchSq = Number(reviewAttchSq) +1;
  162. // console.log("reviewAttchSq {}",reviewAttchSq);
  163. var photoreviewdetailSwiper = new Swiper('.pd_photoreviewdetail_pop .area_slider .swiper-container', {
  164. observer: true,
  165. observeParents: true,
  166. slidesPerView: 1,
  167. pagination: {
  168. el: '.swiper-pagination',
  169. type: 'fraction',
  170. },
  171. });
  172. //선태 이미지 노출
  173. photoreviewdetailSwiper.slideTo(reviewAttchSq, 0, false);
  174. // 포토,베스트리뷰숨김
  175. var review_open=$(".btn_review_open");
  176. $(document).on('click','.btn_review_open',function(e){
  177. $(this).toggleClass('active');
  178. $(this).next(".review_list").toggleClass('active');
  179. return false;
  180. });
  181. });
  182. /*]]>*/
  183. </script>
  184. </html>