<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<div class="lap">
	<div class="popup_close">카테고리닫기</div>
	<div class="popup_head"><h2>옵션변경</h2></div>
	<div class="popup_con">
		<ul class="list" style="display: block;">
			<input type="hidden" name="cpnType" value="delvCpn"/>
			<input type="hidden" name="custCpnSq" value="0"/>
			<input type="hidden" name="cpnDcAmt" value="0"/>
			<input type="hidden" name="delvFeeCd" value="0"/>
			
			<th:block th:each="delvCpn, k : ${delvCpnList}">
				<li class="delvCpn" th:value="${delvCpn.custCpnSq}" th:data="${delvCpn.cpnDcAmt}" th:delvfeecd="${delvCpn.delvFeeCd}" th:delvfee="${delvCpn.delvFee}">
					<button type="button" class="dlvr_coupon">
						<p class="name"  th:text="${delvCpn.cpnNm}"></p>
						<p class="txt">
							<th:block th:if="${delvCpn.buyLimitAmt} > 0">
								<span th:text="${#numbers.formatInteger(delvCpn.buyLimitAmt, 1, 'COMMA')}"></span>원 이상 구매시
							</th:block>
							<th:block th:if="${delvCpn.maxDcAmt} > 0"> 
								최대 <span th:text="${#numbers.formatInteger(delvCpn.maxDcAmt, 1, 'COMMA')}"></span>원 할인
							</th:block>
						</p>
						<p class="discount">
							<th:block th:if="${delvCpn.dcWay} == 'G240_10'">
								<span th:text="${#numbers.formatInteger(delvCpn.dcVal, 1, 'COMMA')}"></span>원 할인
							</th:block>
							<th:block th:if="${delvCpn.dcWay} == 'G240_11'">
								<span th:text="${#numbers.formatInteger(delvCpn.dcVal, 1, 'COMMA')}"></span>% 할인
							</th:block>
						</p>
					</button>
				</li>
			</th:block>
			<li class="delvCpn" value="0" data="0" delvfeecd="0" delvfee="0">
				<button type="button" class="dlvr_coupon">
					<p class="empty">적용 안함</p>
				</button>
			</li>
		</ul>
	</div>
</div>

<script th:inline="javascript">
//컨텐츠 호출
$(document).ready( function() {

});

// 배송비쿠폰 팝업 닫기
$('.couponSelectPop02 .popup_close').on("click",function(){
	$('.popup_box').hide();
	$('.popup_box').removeClass('active');
	$("body").css({"overflow":"visible"});
});
</script>

</html>