OrderCouponApplyPopMob.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <!DOCTYPE html>
  2. <html lang="ko" xmlns:th="http://www.thymeleaf.org">
  3. <form class="form_wrap form_full" name="couponApplyForm" id="couponApplyForm">
  4. <div class="modal-dialog" role="document">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <h5 class="modal-title" id="couponModifyLabel">할인쿠폰 변경</h5>
  8. </div>
  9. <div class="modal-body">
  10. <div class="pop_cont">
  11. <!-- 상품쿠폰적용 -->
  12. <th:block th:if="${goodsApplyCpnList.size() > 0}">
  13. <h6>상품쿠폰</h6>
  14. <div class="area_item_coupon">
  15. <th:block th:each="goods, i : ${goodsApplyCpnList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
  16. <th:block th:if="${goods.goodsCpnList.size() > 0}">
  17. <div th:id="|item${i.index}|" class="apply_item goodsCpn goodsCartCpn" th:value="${i.index}+1">
  18. <div class="item_gd">
  19. <figure>
  20. <span class="thumb">
  21. <img th:src="${imageUrl + '/' + goods.sysImgNm}" src="/" width="100%" alt="">
  22. </span>
  23. <figcaption>
  24. <div class="brand" th:text="${goods.brandGroupNm}"></div>
  25. <div class="name" th:text="${goods.goodsNm}"></div>
  26. <div class="option" th:each="colorNm, index : ${goods.colorNmArr}" th:text="${colorNm}+'/'+${goods.optCd2Arr[index.index]}"></div>
  27. </figcaption>
  28. </figure>
  29. </div>
  30. <div class="form_field">
  31. <div class="select_custom coupon_list" th:value="${i.index}+1">
  32. <div class="combo">
  33. <div class="select">
  34. <div class="item_coupon"><p class="empty">선택</p></div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <input type="hidden" name="cpnType" value="goodsCpn"/>
  40. <input type="hidden" name="cpnCartSq" th:value="${goods.cartSq}"/>
  41. <input type="hidden" name="custCpnSq" value="0"/>
  42. <input type="hidden" name="cpnDcAmt" value="0"/>
  43. </div>
  44. </th:block>
  45. </th:block>
  46. </div>
  47. </th:block>
  48. <!-- //상품쿠폰적용 -->
  49. <!-- 장바구니쿠폰적용 -->
  50. <th:block th:if="${cartCpnList.size() > 0}">
  51. <h6>장바구니 쿠폰</h6>
  52. <div class="area_cart_coupon">
  53. <div class="form_field">
  54. <th:block th:each="cartCpn, k : ${cartCpnList}">
  55. <div class="cartCpn goodsCartCpn" th:value="${cartCpn.custCpnSq}">
  56. <input type="hidden" name="dcWay" th:value="${cartCpn.dcWay}"/>
  57. <input type="hidden" name="dcVal" th:value="${cartCpn.dcVal}"/>
  58. <input type="hidden" name="buyLimitAmt" th:value="${cartCpn.buyLimitAmt}"/>
  59. <input type="hidden" name="maxDcAmt" th:value="${cartCpn.maxDcAmt}"/>
  60. <!-- 장바구니쿠폰 적용 장바구니 시퀀스 -->
  61. <th:block th:each="cartCpnCartSq, kokok : ${cartCpn.cartCpnCartSqArr}">
  62. <input type="hidden" name="cartCpnCartSq" th:value="${cartCpnCartSq}" />
  63. </th:block>
  64. <!-- 장바구니쿠폰 결제가능수단목록조회 -->
  65. <th:block th:each="payType, kokok : ${cartCpn.payTypeArr}">
  66. <input type="hidden" name="payTypeArr" th:value="${payType}" />
  67. </th:block>
  68. <input type="radio" name="rdi-cart-coupon" th:id="|rdi-cart-coupon${k.index}|">
  69. <label th:for="|rdi-cart-coupon${k.index}|">
  70. <div class="cart_coupon">
  71. <p class="name" th:text="${cartCpn.cpnNm}"></p>
  72. <p class="txt">
  73. <th:block th:if="${cartCpn.buyLimitAmt} > 0">
  74. <span th:text="${#numbers.formatInteger(cartCpn.buyLimitAmt, 1, 'COMMA')}"></span>원 이상 구매시
  75. </th:block>
  76. <th:block th:if="${cartCpn.maxDcAmt} > 0">
  77. 최대 <span th:text="${#numbers.formatInteger(cartCpn.maxDcAmt, 1, 'COMMA')}"></span>원 할인
  78. </th:block>
  79. </p>
  80. <p class="discount">
  81. <th:block th:if="${cartCpn.dcWay} == 'G240_10'">
  82. <span th:text="${#numbers.formatInteger(cartCpn.dcVal, 1, 'COMMA')}"></span>원 할인
  83. </th:block>
  84. <th:block th:if="${cartCpn.dcWay} == 'G240_11'">
  85. <span th:text="${#numbers.formatInteger(cartCpn.dcVal, 1, 'COMMA')}"></span>% 할인
  86. </th:block>
  87. </p>
  88. </div>
  89. </label>
  90. </div>
  91. </th:block>
  92. <div class="cartCpn" value="0">
  93. <input type="hidden" name="dcWay" th:value="0"/>
  94. <input type="hidden" name="dcVal" th:value="0"/>
  95. <input type="hidden" name="buyLimitAmt" th:value="0"/>
  96. <input type="hidden" name="maxDcAmt" th:value="0"/>
  97. <div class="cart_coupon">
  98. <input type="radio" name="rdi-cart-coupon" id="rdi-cart-coupon00">
  99. <label for="rdi-cart-coupon00">적용안함</label>
  100. </div>
  101. </div>
  102. <input type="hidden" name="cpnType" value="cartCpn"/>
  103. <input type="hidden" name="custCpnSq" value="0"/>
  104. <input type="hidden" name="cpnDcAmt" value="0"/>
  105. </div>
  106. </div>
  107. </th:block>
  108. <!-- //장바구니쿠폰적용 -->
  109. </div>
  110. </div>
  111. <div class="modal-footer">
  112. <button type="button" class="btn btn_primary" id="btn_coupon_apply"><span>총 <em class="goodsCartCpnSumAmt">0</em>원 쿠폰 적용</span></button>
  113. </div>
  114. <!-- 상품쿠폰팝업적용 -->
  115. <th:block th:if="${goodsApplyCpnList.size() > 0}">
  116. <th:block th:each="goods, i : ${goodsApplyCpnList}">
  117. <th:block th:if="${goods.goodsCpnList.size() > 0}">
  118. <!-- 할인쿠폰 변경_쿠폰선택_팝업 -->
  119. <div class="popup_box couponSelectPop">
  120. <div class="lap">
  121. <div class="popup_close">카테고리닫기</div>
  122. <div class="popup_head">
  123. <h2>옵션변경</h2>
  124. </div>
  125. <div class="popup_con">
  126. <ul class="list" style="display: block;">
  127. <th:block th:each="goodsCpn, k : ${goods.goodsCpnList}">
  128. <li th:value="${goodsCpn.custCpnSq}" th:data="${goodsCpn.cpnDcAmt}">
  129. <button type="button" class="dlvr_coupon">
  130. <p class="name" th:text="${goodsCpn.cpnNm}"></p>
  131. <p class="txt">
  132. <th:block th:if="${goodsCpn.buyLimitAmt} > 0">
  133. <span th:text="${#numbers.formatInteger(goodsCpn.buyLimitAmt, 1, 'COMMA')}"></span>원 이상 구매시
  134. </th:block>
  135. <th:block th:if="${goodsCpn.maxDcAmt} > 0">
  136. 최대 <span th:text="${#numbers.formatInteger(goodsCpn.maxDcAmt, 1, 'COMMA')}"></span>원 할인
  137. </th:block>
  138. </p>
  139. <p class="discount">
  140. <th:block th:if="${goodsCpn.dcWay} == 'G240_10'">
  141. <span th:text="${#numbers.formatInteger(goodsCpn.dcVal, 1, 'COMMA')}"></span>원 할인
  142. </th:block>
  143. <th:block th:if="${goodsCpn.dcWay} == 'G240_11'">
  144. <span th:text="${#numbers.formatInteger(goodsCpn.dcVal, 1, 'COMMA')}"></span>% 할인
  145. </th:block>
  146. </p>
  147. </button>
  148. </li>
  149. </th:block>
  150. <li value="0" data="0">
  151. <button type="button" class="dlvr_coupon">
  152. <p class="empty">적용 안함</p>
  153. </button>
  154. </li>
  155. </ul>
  156. </div>
  157. </div>
  158. </div>
  159. <!-- //쿠폰선택_팝업 -->
  160. </th:block>
  161. </th:block>
  162. </th:block>
  163. <!-- //상품쿠폰팝업적용 -->
  164. </div>
  165. </div>
  166. <a href="#close-modal" rel="modal:close" id="couponModifyPop_close" class="close-modal">Close</a>
  167. </form>
  168. <script th:inline="javascript">
  169. //컨텐츠 호출
  170. $(document).ready( function() {
  171. });
  172. // 상품쿠폰, 장바구니쿠폰 팝업 닫기
  173. $("#couponModifyPop_close").on("click", function(){
  174. $("#couponModifyPop").modal("hide");
  175. });
  176. // 상품상세쿠폰 팝업 닫기
  177. $("#couponModifyPop .lap .popup_close").on("click", function() {
  178. $('.popup_box').hide();
  179. $('.popup_box').removeClass('active');
  180. $("body").css({"overflow":"visible"});
  181. });
  182. //팝업 - 할인혜택 > 상품쿠폰변경 선택
  183. //var od_coupon_modify_selecter1 = new sCombo('.od_pop.couponModify_pop #item1 .select_custom.coupon_list');
  184. //var od_coupon_modify_selecter2 = new sCombo('.od_pop.couponModify_pop #item2 .select_custom.coupon_list');
  185. </script>
  186. </html>