OrderDcAmtInfoWeb.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <!DOCTYPE html>
  2. <html lang="ko" xmlns:th="http://www.thymeleaf.org">
  3. <!--
  4. *******************************************************************************
  5. * @source : OrderDcAmtInfoWeb.html
  6. * @desc : 할인혜택 Page
  7. *============================================================================
  8. * STYLE24
  9. * Copyright(C) 2020 TSIT, All rights reserved.
  10. *============================================================================
  11. * VER DATE AUTHOR DESCRIPTION
  12. * === =========== ========== =============================================
  13. * 1.0 2021.02.01 jsh77b 최초 작성
  14. *******************************************************************************
  15. -->
  16. <!-- 할인/혜택 사용 -->
  17. <div class="fold_head">
  18. <a href="javascript:void(0)">
  19. <div>
  20. <div class="fold_tit">
  21. <span>할인/혜택 사용</span>
  22. </div>
  23. <div class="data maxdisc">
  24. <div class="form_field">
  25. <input id="chk-maxdisc" type="checkbox" checked="">
  26. <label for="chk-maxdisc">
  27. <span>최대 할인혜택을 바로 적용하세요 <em class="maxdisc_amount"></em></span>
  28. </label>
  29. </div>
  30. </div>
  31. </div>
  32. </a>
  33. </div>
  34. <div class="fold_cont" style="display: none;">
  35. <div class="area_seldiscount">
  36. <dl>
  37. <div>
  38. <dt><span class="mid">할인코드</span></dt>
  39. <dd>
  40. <div class="form_field">
  41. <div class="input_wrap">
  42. <input type="text" id="serialCpnNm" class="form_control" maxlength="13" placeholder="할인코드를 입력해주세요.">
  43. <button type="button" class="btn btn_dark" onclick="serialCpnApply()">적용</button>
  44. </div>
  45. </div>
  46. </dd>
  47. </div>
  48. <div>
  49. <dt>할인쿠폰</dt>
  50. <dd>
  51. <a href="javascript:void(0);" class="btn_coupon_toggle">할인쿠폰 <span id="cpnApplyCnt"></span>적용</a>
  52. <div class="coupon_list">
  53. <ul>
  54. <!-- 상품쿠폰 -->
  55. <th:block th:each="goods, i : ${goodsApplyCpnList}">
  56. <th:block th:if="${goods.goodsCpnList.size() > 0}">
  57. <li>
  58. <div class="coupon">
  59. <div class="item_gd">
  60. <figure>
  61. <span class="thumb"><img src="/images/pc/thumb/tmp_odSide1.jpg" alt=""></span>
  62. <figcaption>
  63. <div class="brand" th:text="${goods.brandEnm}+' '+${goods.brandKnm}"></div>
  64. <div class="name" th:text="${goods.goodsNm}"></div>
  65. <div class="price">
  66. <th:block th:if="${goods.tmtbDcAmt} > 0">
  67. <span class="selling_price" th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></span>
  68. </th:block>
  69. <th:block th:if="${goods.tmtbDcAmt} < 1">
  70. <span class="selling_price" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
  71. </th:block>
  72. </div>
  73. </figcaption>
  74. </figure>
  75. </div>
  76. <div class="form_field">
  77. <div class="select_custom type1">
  78. <div class="combo">
  79. <input type="hidden" name="cpnType" value="goodsCpn"/>
  80. <input type="hidden" name="cpnCartSq" th:value="${goods.cartSq}"/>
  81. <input type="hidden" name="custCpnSq" value="0"/>
  82. <input type="hidden" name="cpnDcAmt" value="0"/>
  83. <div class="select">선택없음</div>
  84. <ul class="list">
  85. <li value="0">선택없음</li>
  86. <th:block th:each="goodsCpn, k : ${goods.goodsCpnList}">
  87. <li th:value="${goodsCpn.custCpnSq}" th:data="${goodsCpn.cpnDcAmt}" th:text="${goodsCpn.cpnNm}"></li>
  88. </th:block>
  89. </ul>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="cp_discount" style="display:none;">
  94. <span class="cp_amount"></span>
  95. <button type="button" class="btn_del_coupon"><span>쿠폰적용해제</span></button>
  96. </div>
  97. </div>
  98. </li>
  99. </th:block>
  100. </th:block>
  101. <!-- 상품쿠폰 -->
  102. <!-- 장바구니쿠폰 -->
  103. <th:block th:if="${cartCpnList.size() > 0}">
  104. <li>
  105. <div class="coupon">
  106. <div class="form_field">
  107. <div class="select_custom type1">
  108. <div class="combo">
  109. <input type="hidden" name="cpnType" value="cartCpn"/>
  110. <input type="hidden" name="custCpnSq" value="0"/>
  111. <input type="hidden" name="cpnDcAmt" value="0"/>
  112. <div class="select">선택없음</div>
  113. <ul class="list">
  114. <li value="0">선택없음</li>
  115. <th:block th:each="cartCpn, k : ${cartCpnList}">
  116. <li th:value="${cartCpn.custCpnSq}" th:data="${cartCpn.cpnDcAmt}">
  117. <th:block th:text="${cartCpn.cpnNm}"></th:block>
  118. <input type="hidden" name="dcWay" th:value="${cartCpn.dcWay}"/>
  119. <input type="hidden" name="dcVal" th:value="${cartCpn.dcVal}"/>
  120. <th:block th:each="cartCpnCartSq, kokok : ${cartCpn.cartCpnCartSqArr}">
  121. <input type="hidden" name="cartCpnCartSq" th:value="${cartCpnCartSq}" />
  122. </th:block>
  123. </li>
  124. </th:block>
  125. </ul>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="cp_discount">
  130. <span class="cp_amount"></span>
  131. <button type="button" class="btn_del_coupon"><span>쿠폰적용해제</span></button>
  132. </div>
  133. </div>
  134. </li>
  135. </th:block>
  136. <!-- 장바구니쿠폰 -->
  137. <!-- 배송비쿠폰 -->
  138. <th:block th:if="${delvCpnList.size() > 0}">
  139. <li>
  140. <div class="coupon">
  141. <div class="form_field">
  142. <div class="select_custom type1">
  143. <div class="combo">
  144. <input type="hidden" name="cpnType" value="delvCpn"/>
  145. <input type="hidden" name="custCpnSq" value="0"/>
  146. <input type="hidden" name="cpnDcAmt" value="0"/>
  147. <input type="hidden" name="delvFeeCd" value="0"/>
  148. <div class="select" value="0">선택없음</div>
  149. <ul class="list">
  150. <li value="0">선택없음</li>
  151. <th:block th:each="delvCpn, k : ${delvCpnList}">
  152. <li th:value="${delvCpn.custCpnSq}" th:data="${delvCpn.cpnDcAmt}" th:delvfeecd="${delvCpn.delvFeeCd}" th:text="${delvCpn.cpnNm}"></li>
  153. </th:block>
  154. </ul>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="cp_discount">
  159. <span class="cp_amount"></span>
  160. <button type="button" class="btn_del_coupon"><span>쿠폰적용해제</span></button>
  161. </div>
  162. </div>
  163. </li>
  164. </th:block>
  165. <!-- 배송비쿠폰 -->
  166. </ul>
  167. </div>
  168. </dd>
  169. </div>
  170. </dl>
  171. </div>
  172. <!-- 선포인트금액, 포인트금액, 상품권금액 0보다 클때 적용 -->
  173. <th:block th:if="${prePntDcAmt} > 0 or ${rmPntAmt} > 0 or ${rmGfcdAmt} > 0">
  174. <div class="area_selpoint">
  175. <dl>
  176. <th:block th:if="${prePntDcAmt} > 0">
  177. <div>
  178. <dt>선 포인트 사용</dt>
  179. <dd>
  180. <div class="form_field">
  181. <input type="hidden" name="rmPrePntAmt" th:value="${prePntDcAmt}"/>
  182. <div>
  183. <input type="radio" name="rdi-beforpoint" id="rdi-beforpoint1" value="N">
  184. <label for="rdi-beforpoint1"><span>사용 안함</span></label>
  185. </div>
  186. <div>
  187. <input type="radio" name="rdi-beforpoint" id="rdi-beforpoint2" value="Y">
  188. <label for="rdi-beforpoint2"><span>사용함</span></label>
  189. <span class="remain_point" th:text="|사용가능 포인트 : ${#numbers.formatInteger(prePntDcAmt, 1, 'COMMA')} P|"></span>
  190. </div>
  191. </div>
  192. </dd>
  193. </div>
  194. </th:block>
  195. <th:block th:if="${rmPntAmt} > 0">
  196. <div>
  197. <dt>
  198. <span class="mid">스타일 포인트</span>
  199. </dt>
  200. <dd>
  201. <div class="form_field">
  202. <input type="hidden" name="rmPntAmt" th:value="${rmPntAmt}"/>
  203. <!-- 스타일 포인트 3만원 이상 결제시 노출 -->
  204. <th:block th:if="${orgGoodsSumAmt} >= 30000">
  205. <div class="input_wrap">
  206. <input type="text" name="pntDcAmtStr" class="form_control" maxlength="" placeholder="사용할 포인트를 입력해주세요.">
  207. <button type="button" class="btn btn_dark" id="btn_point_apply">적용</button>
  208. </div>
  209. <p><span class="remain_point rmPntAmt" th:text="|보유 : ${#numbers.formatInteger(rmPntAmt, 1, 'COMMA')} P|"></span>(결제금액의 최대 40%까지 사용가능)</p>
  210. </th:block>
  211. <!-- 스타일 포인트 3만원 이상 결제시 노출 -->
  212. <!-- 스타일 포인트 3만원 미만 결제시 노출 -->
  213. <th:block th:if="${orgGoodsSumAmt} < 30000">
  214. <div class="input_wrap">
  215. <input type="text" class="form_control" maxlength="" placeholder="3만원 이상 결제시에만 포인트 사용이 가능합니다." disabled>
  216. </div>
  217. </th:block>
  218. </div>
  219. </dd>
  220. </div>
  221. </th:block>
  222. <th:block th:if="${rmGfcdAmt} > 0">
  223. <div>
  224. <dt>
  225. <span class="mid">상품권</span>
  226. </dt>
  227. <dd>
  228. <div class="form_field">
  229. <input type="hidden" name="rmGfcdAmt" th:value="${rmGfcdAmt}"/>
  230. <div class="input_wrap">
  231. <input type="text" name="gfcdUseAmtStr" class="form_control" maxlength="" placeholder="사용할 금액을 입력해주세요.">
  232. <button type="button" class="btn btn_dark" id="btn_gfcd_apply">적용</button>
  233. </div>
  234. <p><span class="remain_point" th:text="|보유 : ${#numbers.formatInteger(rmGfcdAmt, 1, 'COMMA')} 원|"></span></p>
  235. <div class="agree_receipt">
  236. <input id="chk-receipt" type="checkbox">
  237. <label for="chk-receipt"><span>상품권 현금영수증 신청</span></label>
  238. <div class="info_box">
  239. <div class="input_wrap">
  240. <input type="text" class="form_control" maxlength="11" placeholder="">
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </dd>
  246. </div>
  247. </th:block>
  248. </dl>
  249. </div>
  250. </th:block>
  251. </div> <!-- //할인/혜택 사용 -->
  252. <script th:inline="javascript">
  253. var dispYn = [[${order.dispYn}]]; // 노출여부
  254. //컨텐츠 호출
  255. $(document).ready( function() {
  256. // 화면펼침
  257. if (dispYn == "Y") {
  258. $("#dcAmtInfo .fold_head").addClass("on");
  259. $("#dcAmtInfo .fold_cont").css("display", "block");
  260. $("#dcAmtInfo .fold_cont .btn_coupon_toggle").addClass("on");
  261. $("#dcAmtInfo .fold_cont .coupon_list").css("display", "block");
  262. }
  263. });
  264. </script>
  265. </html>