fix : 화폐단위 변경 (원 → 円)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
------- -------- ---------------------------
|
||||
2024-07-23 유재현 최초 생성
|
||||
--%>
|
||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||
<script defer>
|
||||
//상품 타이틀, 수량, 가격 저장하는 배열
|
||||
// 배열 순서 -> [상품명, 수량, 1개당 가격, 상품 총가격(=수량x개당가격), 추가정보(색상, 사이즈등)]
|
||||
@@ -101,13 +102,14 @@
|
||||
//
|
||||
// //배열 내용을 바탕으로 각 아이템 텍스트 변경
|
||||
function updateCartCounters() {
|
||||
var curUnit = '${curUnit}';
|
||||
$(".modal .productDetailInfo__count").each(function () {
|
||||
var $counter = $(this);
|
||||
var $index = $counter.index();
|
||||
var $number = $counter.find(".productDetailInfo__count__amountNumber");
|
||||
var $price = $counter.find(".productDetailInfo__count__priceNum");
|
||||
$number.text(productArr[$index][1]);
|
||||
$price.text(addComma(productArr[$index][3]) + "원");
|
||||
$price.text(addComma(productArr[$index][3]) + curUnit);
|
||||
});
|
||||
updateCartTotalPrice(); // 총 상품금액 업데이트
|
||||
}
|
||||
@@ -292,7 +294,7 @@
|
||||
</span>
|
||||
<span class="product-unit-price__current">
|
||||
<span class="comma"> <fmt:formatNumber value="${addCartResultMap.goodsDtl.dcSlepric}"/></span>
|
||||
<span class="priceUnit">원</span></span>
|
||||
<span class="priceUnit">${curUnit}</span></span>
|
||||
</div>
|
||||
<div class="product-unit-price__sale">
|
||||
<span class="percent">
|
||||
@@ -325,7 +327,7 @@
|
||||
<c:if test="${goodsOpt01.disableAt eq 'Y'}"> <span>(품절)</span></c:if>
|
||||
</div>
|
||||
<div class="productDetailInfo__option__right">
|
||||
<span class="productDetailInfo__option__price"><span class="comma"><fmt:formatNumber value="${goodsOpt01.slepric}"/></span> <span class="priceUnit"> 원</span></span>
|
||||
<span class="productDetailInfo__option__price"><span class="comma"><fmt:formatNumber value="${goodsOpt01.slepric}"/></span> <span class="priceUnit"> ${curUnit}</span></span>
|
||||
<span class="productDetailInfo__option__monthly-payment"><c:out value="${goodsOpt01.optnInfo}"/></span>
|
||||
</div>
|
||||
</c:if>
|
||||
@@ -456,7 +458,7 @@
|
||||
<span class="product-total__text">총 상품금액</span>
|
||||
<span class="product-total__price">
|
||||
<span class="product-total__price__totalPriceNum">0</span>
|
||||
<span class="won">원</span>
|
||||
<span class="won">${curUnit}</span>
|
||||
</span>
|
||||
</div>
|
||||
<c:choose>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
------- -------- ---------------------------
|
||||
2024-05 리브가
|
||||
--%>
|
||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||
<div class="left">
|
||||
<div class="search-number">
|
||||
<span class="search-number__text">총 <strong><c:out
|
||||
@@ -99,9 +100,9 @@
|
||||
<div class="product-unit-price col order-${list.pricExpsrOrdr-1}" style="order: ${list.pricExpsrOrdr-1}">
|
||||
<div class="product-unit-price__price">
|
||||
<span class="product-unit-price__original"><fmt:formatNumber
|
||||
value="${list.cnsmrpric}"/> 원</span>
|
||||
value="${list.cnsmrpric}"/> ${curUnit}</span>
|
||||
<span class="product-unit-price__current"><fmt:formatNumber
|
||||
value="${list.slepric}"/> 원</span>
|
||||
value="${list.slepric}"/> ${curUnit}</span>
|
||||
</div>
|
||||
<div class="product-unit-price__sale">
|
||||
<span class="percent"> <c:out value="${list.slePercent}"/> %</span>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<head>
|
||||
<%-- 공통 include --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||
</head>
|
||||
|
||||
<script>
|
||||
@@ -51,30 +52,31 @@
|
||||
var startPric = null;
|
||||
var endPric = null;
|
||||
var buttonText = $(this).text();
|
||||
var curUnit = '${curUnit}';
|
||||
|
||||
switch (buttonText) {
|
||||
case '전체':
|
||||
startPric = null;
|
||||
endPric = null;
|
||||
break;
|
||||
case '~ 1만원':
|
||||
case '~ 1000' + curUnit:
|
||||
startPric = 0;
|
||||
endPric = 10000;
|
||||
endPric = 1000;
|
||||
break;
|
||||
case '1 ~ 5만원':
|
||||
startPric = 10000;
|
||||
endPric = 50000;
|
||||
case '1000 ~ 5000' + curUnit:
|
||||
startPric = 1000;
|
||||
endPric = 5000;
|
||||
break;
|
||||
case '5 ~ 15만원':
|
||||
startPric = 50000;
|
||||
endPric = 150000;
|
||||
case '5000 ~ 15000' + curUnit:
|
||||
startPric = 5000;
|
||||
endPric = 15000;
|
||||
break;
|
||||
case '15 ~ 30만원':
|
||||
startPric = 150000;
|
||||
endPric = 300000;
|
||||
case '15000 ~ 30000' + curUnit:
|
||||
startPric = 15000;
|
||||
endPric = 30000;
|
||||
break;
|
||||
case '30만원 이상':
|
||||
startPric = 300000;
|
||||
case '30000' + curUnit + ' 이상':
|
||||
startPric = 30000;
|
||||
endPric = null;
|
||||
break;
|
||||
default:
|
||||
@@ -1072,25 +1074,25 @@
|
||||
<input type="hidden" id="pricDv" name="pricDv" value="slepric">
|
||||
<div class="searchPrice__select">
|
||||
<button value="btnAll" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == null or resultMap.BOGoodsVO.priceRange == 'btnAll'}">selected</c:if>">전체</button>
|
||||
<button value="btn1" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn1'}">selected</c:if>">~ 1만원</button>
|
||||
<button value="btn2" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn2'}">selected</c:if>">1 ~ 5만원</button>
|
||||
<button value="btn3" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn3'}">selected</c:if>">5 ~ 15만원</button>
|
||||
<button value="btn4" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn4'}">selected</c:if>">15 ~ 30만원</button>
|
||||
<button value="btn5" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn5'}">selected</c:if>">30만원 이상</button>
|
||||
<button value="btn1" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn1'}">selected</c:if>">~ 1000${curUnit}</button>
|
||||
<button value="btn2" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn2'}">selected</c:if>">1000 ~ 5000${curUnit}</button>
|
||||
<button value="btn3" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn3'}">selected</c:if>">5000 ~ 15000${curUnit}</button>
|
||||
<button value="btn4" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn4'}">selected</c:if>">15000 ~ 30000${curUnit}</button>
|
||||
<button value="btn5" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn5'}">selected</c:if>">30000${curUnit} 이상</button>
|
||||
</div>
|
||||
<div class="searchPrice__range">
|
||||
<div class="searchPrice__rangeInput">
|
||||
<input type="text" class="searchPrice__input input-text "
|
||||
title="가격 입력" placeholder="" id="startPric" name="startPric"
|
||||
value="${ resultMap.BOGoodsVO.startPric }">
|
||||
<span class="searchPrice__rangeWon">원</span>
|
||||
<span class="searchPrice__rangeWon">${curUnit}</span>
|
||||
</div>
|
||||
<span class="searchPrice__rangeTilde">~</span>
|
||||
<div class="searchPrice__rangeInput">
|
||||
<input type="text" class="searchPrice__input input-text "
|
||||
title="가격 입력" placeholder="" id="endPric" name="endPric"
|
||||
value="${ resultMap.BOGoodsVO.endPric }">
|
||||
<span class="searchPrice__rangeWon">원</span>
|
||||
<span class="searchPrice__rangeWon">${curUnit}</span>
|
||||
</div>
|
||||
</div>
|
||||
<button class="searchPrice__btn btn theme">검색</button>
|
||||
|
||||
Reference in New Issue
Block a user