GoodsReviewPhotoFormWeb.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <!--
  5. *******************************************************************************
  6. * @source : GoodsInstockAlarmFormWeb.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.03.02 eskim 최초 작성
  15. *******************************************************************************
  16. -->
  17. <div class="modal-dialog" role="document">
  18. <div class="modal-content">
  19. <div class="modal-header">
  20. <h5 class="modal-title" id="pdPhotoReviewListLabel">포토/영상 리뷰</h5>
  21. </div>
  22. <div class="modal-body">
  23. <div class="pop_cont">
  24. <div class="photo_list">
  25. <ul id="ulGoodsReviewPhoto">
  26. <li>
  27. <a href="">
  28. <div class="pic">
  29. <span class="thumb mov" style="background-image:url('/images/pc/thumb/tmp_pdLookbook3.jpg');"></span><!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
  30. </div>
  31. </a>
  32. </li>
  33. </ul>
  34. </div>
  35. <div class="ui_row">
  36. <ul class="pageNav" id="reviewPhtoPageNav">
  37. </ul>
  38. </div>
  39. </div>
  40. </div>
  41. <!-- 포토영상 리뷰 자세히보기 팝업 내용 -->
  42. </div>
  43. <form id="goodsReviewPhotoForm" name="goodsReviewPhotoForm" action="#" th:action="@{'/goods/review/list'}">
  44. <input type="hidden" name="pageNo" value ="1"/>
  45. <input type="hidden" name="pageSize" value ="1"/>
  46. <input type="hidden" name="photoYn" value ="Y"/>
  47. <input type="hidden" name="goodsCd" th:value ="${params.goodsCd}"/>
  48. </form>
  49. </div>
  50. <script src="/ux/plugins/gaga/gaga.paging.js"></script>
  51. <a href="javascript:void(0);" rel="modal:close" onclick="cfCloseLayer('layer_review_photo')" class="close-modal">Close</a>
  52. <script th:inline="javascript">
  53. /*<![CDATA[*/
  54. var fnReviewPhotoGetList = function() {
  55. // Initialize a pagination
  56. gagaPaging.init('goodsReviewPhotoForm', fnReviewPhotoGetListCallback, 'reviewPhtoPageNav', 1);
  57. // Load data
  58. gagaPaging.load(1);
  59. }
  60. var fnReviewPhotoGetListCallback = function(result) {
  61. $('#ulGoodsReviewPhoto').html('');
  62. // 목록
  63. if (result.dataList != null && result.dataList.length > 0) {
  64. $.each(result.dataList, function(idx, item) {
  65. let tag = '';
  66. if (item.reviewAttachList != null && item.reviewAttachList.length > 0){
  67. var fileGbClass = '';
  68. $.each(item.reviewAttachList, function(aIdx, reviewAttach){
  69. fileGbClass = '';
  70. if (reviewAttach == "M") fileGbClass = "mov";
  71. tag += ' <li>\n';
  72. tag += ' <a href="javascript:void();" onclick="fnGoodsReviewDetail(\''+item.reviewSq+'\');">\n';
  73. tag += ' <div class="pic">\n';
  74. tag += ' <span class="thumb '+ fileGbClass +'" style="background-image:url('+ _imgUrl + reviewAttach.sysFileNm +');"></span>\n'; //<!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
  75. tag += ' </div>\n';
  76. tag += ' </a>\n';
  77. tag += ' </li>\n';
  78. });
  79. }
  80. $('#ulGoodsReviewPhoto').append(tag);
  81. });
  82. }
  83. // Create pagination
  84. gagaPaging.createPagination(result.paging.pageable);
  85. }
  86. // 상세보기
  87. var fnGoodsReviewDetail = function(reviewSq){
  88. cfGoodsReviewDetail([[${params.goodsCd}]],'', 'Y', reviewSq);
  89. cfCloseLayer('layer_review_photo');
  90. }
  91. $(document).ready( function() {
  92. fnReviewPhotoGetList();
  93. });
  94. /*]]>*/
  95. </script>
  96. </html>