|
|
@@ -360,39 +360,44 @@
|
|
|
<!-- 상품쿠폰 -->
|
|
|
<th:block th:each="goods, i : ${goodsApplyCpnList}">
|
|
|
<th:block th:if="${goods.goodsCpnList.size() > 0}">
|
|
|
- <li>
|
|
|
- <div class="coupon">
|
|
|
- <div class="item_gd">
|
|
|
- <figure>
|
|
|
- <span th:text="${goods.goodsCd}"></span>
|
|
|
- <span class="thumb"><img src="/images/pc/thumb/tmp_odSide1.jpg" alt=""></span>
|
|
|
- <figcaption>
|
|
|
- <div class="brand" th:text="${goods.brandEnm}+' '+${goods.brandKnm}"></div>
|
|
|
- <div class="name" th:text="${goods.goodsNm}"></div>
|
|
|
- <div class="price">
|
|
|
- <span class="selling_price" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
|
|
|
- </div>
|
|
|
- </figcaption>
|
|
|
- </figure>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="form_field">
|
|
|
- <select id="" class="select_hidden">
|
|
|
- <option value="">선택안함</option>
|
|
|
- <th:block th:each="goodsCpn, k : ${goods.goodsCpnList}">
|
|
|
- <option th:value="${goodsCpn.cpnId}" th:text="${goodsCpn.cpnId}+'|'+${goodsCpn.cpnNm}"></option>
|
|
|
- </th:block>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="cp_discount">
|
|
|
- <span class="cp_amount">-10,000원 할인적용</span>
|
|
|
- <button type="button" class="btn_del_coupon" id="">
|
|
|
- <span>쿠폰적용해제</span>
|
|
|
- </button>
|
|
|
+ <li>
|
|
|
+ <div class="coupon">
|
|
|
+ <div class="item_gd">
|
|
|
+ <figure>
|
|
|
+ <span class="thumb"><img src="/images/pc/thumb/tmp_odSide1.jpg" alt=""></span>
|
|
|
+ <figcaption>
|
|
|
+ <div class="brand" th:text="${goods.brandEnm}+' '+${goods.brandKnm}"></div>
|
|
|
+ <div class="name" th:text="${goods.goodsNm}"></div>
|
|
|
+ <div class="price">
|
|
|
+ <span th:text="${goods.goodsCd}"></span>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} > 0">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} < 1">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
+ </div>
|
|
|
+ </figcaption>
|
|
|
+ </figure>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form_field">
|
|
|
+ <select id="" class="select_hidden cpnSelect">
|
|
|
+ <option value="">선택안함</option>
|
|
|
+ <th:block th:each="goodsCpn, k : ${goods.goodsCpnList}">
|
|
|
+ <option th:value="${goodsCpn.cpnId}" th:text="${goodsCpn.cpnId}+'|'+${goodsCpn.cpnNm}+'|'+${goodsCpn.cpnDcAmt}"></option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="cp_discount">
|
|
|
+ <span class="cp_amount">-10,000원 할인적용</span>
|
|
|
+ <button type="button" class="btn_del_coupon" id="">
|
|
|
+ <span>쿠폰적용해제</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ </li>
|
|
|
</th:block>
|
|
|
</th:block>
|
|
|
<!-- 상품쿠폰 -->
|
|
|
@@ -795,7 +800,6 @@
|
|
|
<figure>
|
|
|
<span class="thumb"><img src="/images/pc/thumb/tmp_odSide1.jpg" alt=""></span>
|
|
|
<figcaption>
|
|
|
- <span th:text="${goods.goodsCd}"></span>
|
|
|
<div class="brand" th:text="${goods.brandEnm} + ' ' + ${goods.brandKnm}"></div>
|
|
|
<div class="name" th:text="${goods.goodsNm}"></div>
|
|
|
<div class="option" th:each="opt, index : ${goods.itemNmArr}">
|
|
|
@@ -803,7 +807,12 @@
|
|
|
<span>수량:<em th:text="${goods.goodsQty}"></em>개</span>
|
|
|
</div>
|
|
|
<div class="price">
|
|
|
- <span class="selling_price" th:text="|${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')} 원|"></span>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} > 0">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} < 1">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
</figcaption>
|
|
|
</figure>
|
|
|
@@ -824,7 +833,6 @@
|
|
|
<figure>
|
|
|
<span class="thumb"><img src="/images/pc/thumb/tmp_odSide1.jpg" alt=""></span>
|
|
|
<figcaption>
|
|
|
- <span th:text="${goods.goodsCd}"></span>
|
|
|
<div class="brand" th:text="${goods.brandEnm} + ' ' + ${goods.brandKnm}"></div>
|
|
|
<div class="name" th:text="${goods.goodsNm}"></div>
|
|
|
<div class="option">
|
|
|
@@ -832,7 +840,12 @@
|
|
|
<span>수량:<em th:text="${goods.goodsQty}"></em>개</span>
|
|
|
</div>
|
|
|
<div class="price">
|
|
|
- <span class="selling_price" th:text="|${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')} 원|"></span>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} > 0">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} < 1">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
</figcaption>
|
|
|
</figure>
|
|
|
@@ -853,7 +866,6 @@
|
|
|
<figure>
|
|
|
<span class="thumb"><img src="/images/pc/thumb/tmp_odSide1.jpg" alt=""></span>
|
|
|
<figcaption>
|
|
|
- <span th:text="${goods.goodsCd}"></span>
|
|
|
<div class="brand" th:text="${goods.brandEnm} + ' ' + ${goods.brandKnm}"></div>
|
|
|
<div class="name" th:text="${goods.goodsNm}"></div>
|
|
|
<div class="option">
|
|
|
@@ -861,7 +873,12 @@
|
|
|
<span>수량:<em th:text="${goods.goodsQty}"></em>개</span>
|
|
|
</div>
|
|
|
<div class="price">
|
|
|
- <span class="selling_price" th:text="${goods.currPrice}"></span>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} > 0">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goods.tmtbDcAmt} < 1">
|
|
|
+ <span class="selling_price" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
</figcaption>
|
|
|
</figure>
|
|
|
@@ -952,7 +969,7 @@
|
|
|
<!-- 사은품지급안내 팝업 -->
|
|
|
<div class="modal fade od_pop infoGift_pop" id="infoGiftPop" tabindex="-1" role="dialog" aria-labelledby="infoGiftLabel" aria-hidden="true"></div>
|
|
|
|
|
|
-<script type="text/javascript">
|
|
|
+<script th:inline="javascript">
|
|
|
|
|
|
$(document).ready( function() {
|
|
|
|
|
|
@@ -1199,7 +1216,7 @@ $(document).ready( function() {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<script type="text/javascript">
|
|
|
+<script th:inline="javascript">
|
|
|
// 컨텐츠 호출
|
|
|
$(document).ready( function() {
|
|
|
// 1. 총알배송가능 지역, 총알배송 가능 시간 체크
|
|
|
@@ -1220,6 +1237,12 @@ $(document).ready( function() {
|
|
|
if (resCnt > 0) {
|
|
|
$("#resDelvArea").css("display", "block");
|
|
|
}
|
|
|
+
|
|
|
+ // 3. 최적의 할인으로 쿠폰 설정
|
|
|
+ //$(".cpnSelect option:eq(1)").attr("selected", "selected");
|
|
|
+ $(".cpnSelect").each(function(i){
|
|
|
+ $(this).find("option:eq(1)").attr("selected", "selected");
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
// 사은품선택 라디오 버튼 기능
|