| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <!DOCTYPE html>
- <html lang="ko" xmlns:th="http://www.thymeleaf.org">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="couponModifyLabel">할인쿠폰 변겅</h5>
- </div>
- <div class="modal-body">
- <div class="pop_cont">
-
- <!-- 상품쿠폰적용 -->
- <th:block th:if="${goodsApplyCpnList.size() > 0}">
- <h6>상품쿠폰</h6>
- <div class="area_item_coupon">
- <th:block th:each="goods, i : ${goodsApplyCpnList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
- <th:block th:if="${goods.goodsCpnList.size() > 0}">
- <div class="apply_item goodsCpn">
- <div class="item_gd">
- <figure>
- <span class="thumb">
- <img th:src="${imageUrl + '/' + goods.sysImgNm}" src="/" width="100%" alt="">
- </span>
-
- <figcaption>
- <div class="brand" th:text="${goods.brandEnm}+' '+${goods.brandKnm}"></div>
- <div class="name" th:text="${goods.goodsNm}"></div>
- <div class="option" th:each="colorNm, index : ${goods.colorNmArr}" th:text="${colorNm}+'/'+${goods.optCd2Arr[index.index]}"></div>
- </figcaption>
- </figure>
- </div>
- <div class="form_field">
- <div class="select_custom coupon_list">
- <div class="combo">
- <div class="select">
- <div class="item_coupon"></div>
- </div>
- <ul class="list">
- <!-- 선택처리 class="selected" / 선택불가 aria-disabled="true"추가 -->
- <th:block th:each="goodsCpn, k : ${goods.goodsCpnList}">
- <li th:value="${goodsCpn.custCpnSq}" th:data="${goodsCpn.cpnDcAmt}">
- <div class="item_coupon">
- <p class="name" th:text="${goodsCpn.cpnNm}"></p>
- <p class="txt">
- <th:block th:if="${goodsCpn.buyLimitAmt} > 0">
- <span th:text="${#numbers.formatInteger(goodsCpn.buyLimitAmt, 1, 'COMMA')}"></span>원 이상 구매시
- </th:block>
- <th:block th:if="${goodsCpn.maxDcAmt} > 0">
- 최대 <span th:text="${#numbers.formatInteger(goodsCpn.maxDcAmt, 1, 'COMMA')}"></span>원 할인
- </th:block>
- </p>
- <p class="discount">
- <th:block th:if="${goodsCpn.dcWay} == 'G240_10'">
- <span th:text="${#numbers.formatInteger(goodsCpn.dcVal, 1, 'COMMA')}"></span>원 할인
- </th:block>
- <th:block th:if="${goodsCpn.dcWay} == 'G240_11'">
- <span th:text="${#numbers.formatInteger(goodsCpn.dcVal, 1, 'COMMA')}"></span>% 할인
- </th:block>
- </p>
- </div>
- </li>
- </th:block>
- <li value="0" data="0">
- <div class="item_coupon empty"><p class="empty">적용 안함</p></div>
- </li>
- <input type="hidden" name="cpnType" value="goodsCpn"/>
- <input type="hidden" name="cpnCartSq" th:value="${goods.cartSq}"/>
- <input type="hidden" name="custCpnSq" value="0"/>
- <input type="hidden" name="cpnDcAmt" value="0"/>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </th:block>
- </th:block>
- </div>
- </th:block>
- <!-- //상품쿠폰적용 -->
-
- <!-- 장바구니쿠폰적용 -->
- <th:block th:if="${cartCpnList.size() > 0}">
- <h6>장바구니 쿠폰</h6>
- <div class="area_cart_coupon">
- <div class="form_field">
- <th:block th:each="cartCpn, k : ${cartCpnList}">
- <div class="cartCpn" th:value="${cartCpn.custCpnSq}">
- <input type="hidden" name="dcWay" th:value="${cartCpn.dcWay}"/>
- <input type="hidden" name="dcVal" th:value="${cartCpn.dcVal}"/>
- <!-- 장바구니쿠폰 적용 장바구니 시퀀스 -->
- <th:block th:each="cartCpnCartSq, kokok : ${cartCpn.cartCpnCartSqArr}">
- <input type="hidden" name="cartCpnCartSq" th:value="${cartCpnCartSq}" />
- </th:block>
-
- <!-- 장바구니쿠폰 결제가능수단목록조회 -->
- <th:block th:each="payType, kokok : ${cartCpn.payTypeArr}">
- <input type="hidden" name="payTypeArr" th:value="${payType}" />
- </th:block>
-
- <input type="radio" name="rdi-cart-coupon" th:id="|rdi-cart-coupon${k.index}|" value="">
- <label th:for="|rdi-cart-coupon${k.index}|">
- <div class="cart_coupon">
- <p class="name" th:text="${cartCpn.cpnNm}"></p>
- <p class="txt">
- <th:block th:if="${cartCpn.buyLimitAmt} > 0">
- <span th:text="${#numbers.formatInteger(cartCpn.buyLimitAmt, 1, 'COMMA')}"></span>원 이상 구매시
- </th:block>
- <th:block th:if="${cartCpn.maxDcAmt} > 0">
- 최대 <span th:text="${#numbers.formatInteger(cartCpn.maxDcAmt, 1, 'COMMA')}"></span>원 할인
- </th:block>
- </p>
- <p class="discount">
- <th:block th:if="${cartCpn.dcWay} == 'G240_10'">
- <span th:text="${#numbers.formatInteger(cartCpn.dcVal, 1, 'COMMA')}"></span>원 할인
- </th:block>
- <th:block th:if="${cartCpn.dcWay} == 'G240_11'">
- <span th:text="${#numbers.formatInteger(cartCpn.dcVal, 1, 'COMMA')}"></span>% 할인
- </th:block>
- </p>
- </div>
- </label>
-
- </div>
- </th:block>
- <input type="hidden" name="cpnType" value="cartCpn"/>
- <input type="hidden" name="custCpnSq" value="0"/>
- <input type="hidden" name="cpnDcAmt" value="0"/>
- </div>
- </div>
- </th:block>
- <!-- //장바구니쿠폰적용 -->
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" id="btn_coupon_apply" class="btn btn_primary">
- <span>총 <em class="goodsCartCpnSumAmt">99,999,999</em>원 쿠폰 적용</span>
- </button>
- </div>
- </div>
- </div>
- <a href="#close-modal" rel="modal:close" id="couponModifyPop_close" class="close-modal">Close</a>
- <script th:inline="javascript">
- //컨텐츠 호출
- $(document).ready( function() {
- //상품쿠폰 combo 리스트 설정
- $(".goodsCpn .select_custom.coupon_list").each(function(){
- var od_coupon_modify_selecter1 = new sCombo($(this));
- });
- });
- </script>
- </html>
|