|
|
@@ -1,74 +1,43 @@
|
|
|
<html lang="ko"
|
|
|
xmlns:th="http://www.thymeleaf.org">
|
|
|
<!-- 배송비 SAVE 상품보기, 다다익선 할인 상품 보기 -->
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-dialog" role="document" th:with="imgGoodsUrl=${@environment.getProperty('upload.goods.view')}, uxImgUrl=${@environment.getProperty('domain.uximage')}, imgUrl=${@environment.getProperty('upload.image.view')}">
|
|
|
<div class="modal-content"><div class="modal-header">
|
|
|
<h5 class="modal-title" id="dlvrSaveLabel">배송비 SAVE 상품</h5>
|
|
|
- <input type="text" th:value="${goodsList.size()}" />
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="pop_cont">
|
|
|
<div class="area_slider">
|
|
|
<div class="swiper-container swiper-container-initialized swiper-container-horizontal">
|
|
|
<div class="swiper-wrapper" style="transform: translate3d(0px, 0px, 0px);">
|
|
|
- <div class="swiper-slide swiper-slide-active" style="width: 150px; margin-right: 20px;">
|
|
|
+ <div th:each="goods, status : ${goodsList}" class="swiper-slide swiper-slide-active" style="width: 150px; margin-right: 20px;">
|
|
|
<div class="item_prod">
|
|
|
<div class="item_state">
|
|
|
- <a href="#none" class="itemLink">
|
|
|
+ <a th:href="|javascript:fnGoToGoodsDetail('${goods.goodsCd}')|" class="itemLink">
|
|
|
<div class="itemPic">
|
|
|
- <img alt="" class="vLHTC pd_img" src="/images/pc/thumb/tmp_pdTogether1.jpg">
|
|
|
+ <img class="vLHTC pd_img" th:src="${imgGoodsUrl} + '/' + ${goods.sysImgNm} + '?RS=150'" src="/" width="100%" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'" th:alt="${goods.sysImgNm}" alt="">
|
|
|
</div>
|
|
|
- <p class="itemBrand">BRAND NAME1</p>
|
|
|
- <div class="itemName">남성 로고 자카드 방풍 패딩</div>
|
|
|
- <p class="itemPrice">80,100
|
|
|
- <span class="itemPrice_original">89,000</span>
|
|
|
- <span class="itemPercent">10%</span>
|
|
|
+ <p class="itemBrand" th:text="${goods.brandNm}"></p>
|
|
|
+ <div class="itemName" th:text="${goods.goodsNm}"></div>
|
|
|
+ <p class="itemPrice">
|
|
|
+ <span th:text="${#numbers.formatInteger(goods.price, 1, 'COMMA')}"></span>
|
|
|
+ <th:block th:if="${goods.currPrice != goods.price}">
|
|
|
+ <span class="itemPrice_original" th:text="${#numbers.formatInteger(goods.currPrice, 1, 'COMMA')}"></span>
|
|
|
+ <span class="itemPercent" th:text="${#strings.replace(goods.dcRate, '.0', '') + '%'}"></span>
|
|
|
+ </th:block>
|
|
|
</p>
|
|
|
</a>
|
|
|
- <button type="button" class="btn btn_default btn_sm"><span>쇼핑백 담기</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="swiper-slide swiper-slide-next" style="width: 150px; margin-right: 20px;">
|
|
|
- <div class="item_prod">
|
|
|
- <div class="item_state">
|
|
|
- <a href="#none" class="itemLink">
|
|
|
- <div class="itemPic">
|
|
|
- <img alt="" class="vLHTC pd_img" src="/images/pc/thumb/tmp_pdTogether1.jpg">
|
|
|
- </div>
|
|
|
- <p class="itemBrand">BRAND NAME1</p>
|
|
|
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
|
|
|
- <p class="itemPrice">80,100
|
|
|
- <span class="itemPrice_original">89,000</span>
|
|
|
- <span class=" itemPercent">10%</span>
|
|
|
- </p>
|
|
|
- </a>
|
|
|
- <button type="button" class="btn btn_default btn_sm"><span>쇼핑백 담기</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="swiper-slide" style="width: 150px; margin-right: 20px;">
|
|
|
- <div class="item_prod">
|
|
|
- <div class="item_state">
|
|
|
- <a href="#none" class="itemLink">
|
|
|
- <div class="itemPic">
|
|
|
- <img alt="" class="vLHTC pd_img" src="/images/pc/thumb/tmp_pdTogether1.jpg">
|
|
|
- </div>
|
|
|
- <p class="itemBrand">BRAND NAME1</p>
|
|
|
- <div class="itemName">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
|
|
|
- <p class="itemPrice">80,100
|
|
|
- <span class="itemPrice_original">89,000</span>
|
|
|
- <span class=" itemPercent">10%</span>
|
|
|
- </p>
|
|
|
- </a>
|
|
|
- <button type="button" class="btn btn_default btn_sm"><span>쇼핑백 담기</span></button>
|
|
|
+ <input type="text" th:value="${goods.goodsCd}">
|
|
|
+ <input type="text" th:value="${goods.optCd}">
|
|
|
+ <button type="button" class="btn btn_default btn_sm" th:onclick="fnAddCartDelvFeeSaveGoods([[${goods.goodsCd}]], [[${goods.optCd}]])"><span>쇼핑백 담기</span></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- Add Scrollbar -->
|
|
|
<div class="swiper-scrollbar"></div>
|
|
|
- <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
|
|
|
+ <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<!-- -->
|
|
|
</div>
|
|
|
@@ -94,7 +63,27 @@
|
|
|
|
|
|
<script th:inline="javascript">
|
|
|
$(document).ready(function() {
|
|
|
-
|
|
|
+ var goodsListCnt = [[${goodsList.size()}]];
|
|
|
+ if(goodsListCnt < 1) {
|
|
|
+ mcxDialog.alert("배송비 SAVE 상품이 없습니다.");
|
|
|
+ $("#dlvrSavePop_close").trigger("click");
|
|
|
+ } else {
|
|
|
+ $("#dlvrSavePop").modal("show");
|
|
|
+ }
|
|
|
});
|
|
|
+
|
|
|
+ function fnAddCartDelvFeeSaveGoods(goodsCd, optCd) {
|
|
|
+ let compsList = [];
|
|
|
+ let temp = new Object;
|
|
|
+ temp.goodsCd = goodsCd;
|
|
|
+ temp.optCd = optCd;
|
|
|
+ temp.goodsQty = 1;
|
|
|
+ temp.goodsType = "G056_N";
|
|
|
+ temp.cartGb = "C";
|
|
|
+ temp.popupYn = "Y";
|
|
|
+ compsList.push(temp);
|
|
|
+
|
|
|
+ cfnAddCart(compsList);
|
|
|
+ };
|
|
|
</script>
|
|
|
</html>
|