fix : 화폐단위 변경 (원 → 円)

This commit is contained in:
이대환
2025-12-18 15:15:56 +09:00
parent acef9e1c0a
commit cee548594f
6 changed files with 43 additions and 33 deletions

View File

@@ -15,6 +15,7 @@
------- -------- ---------------------------
2024-07-23 유재현 최초 생성
--%>
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
<script defer>
fn_set_niceSelect_datePicker('.select-box')
/*************************************************************
@@ -191,13 +192,14 @@
//배열 내용을 바탕으로 각 아이템 텍스트 변경
function updateCounters() {
var curUnit = '${curUnit}';
$(".productOption .product-count").each(function () {
var $counter = $(this);
var $index = $counter.index();
var $number = $counter.find(".product-count__amount-number");
var $price = $counter.find(".product-count__priceNum");
$number.text(productArr[$index][1]);
$price.text(addComma(productArr[$index][3]) + "원");
$price.text(addComma(productArr[$index][3]) + curUnit);
});
updateTotalPrice(); // 총 상품금액 업데이트
console.log(productArr); // 배열 정보확인
@@ -282,7 +284,7 @@
<c:if test="${goodsOpt01.disableAt eq 'Y'}"> <span>(품절)</span></c:if>
</div>
<div class="product-option__right">
<span class="product-option__price"><fmt:formatNumber value="${goodsOpt01.slepric}"/>원</span>
<span class="product-option__price"><fmt:formatNumber value="${goodsOpt01.slepric}"/>${curUnit}</span>
<span class="product-option__monthly-payment">${goodsOpt01.optnInfo}</span>
</div>
</c:if>
@@ -382,7 +384,7 @@
<span class="product-total__text">총 상품금액</span>
<span class="product-total__price">
<span class="productDetailInfo__priceTotal__totalPriceNum">0</span><span
class="won">원</span></span>
class="won">${curUnit}</span></span>
</div>
<c:choose>
<c:when test="${addCartResultMap.goodsDtl.buttonRplcWordsUseAt ne 'Y'}">

View File

@@ -14,6 +14,7 @@
------- -------- ---------------------------
2024-05 리브가
--%>
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
<div class="sub-page">
<div class="sub-box">
<!-- 상품 - 카테고리별 타입 (상품 2열) -->
@@ -111,9 +112,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>

View File

@@ -19,6 +19,7 @@
<html lang="ko">
<head>
<jsp:include page="/WEB-INF/views/comm/mobile/Include.jsp" />
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
</head>
<script defer>
//장바구니 버튼 선택 배열
@@ -149,6 +150,7 @@
success: function (result) {
const resultList = JSON.parse(result.resBody.result).list
let list = '';
var curUnit = '${curUnit}';
if (resultList != null && resultList.length > 0) {
const cdnurl = $('#cdnurl').val()
resultList.forEach(function (item ,index) {
@@ -210,8 +212,8 @@
if(!fn_is_empty(item.pricRplcWordsUseAt) && item.pricRplcWordsUseAt !== 'Y'){
list += ` <div class="product-unit-price col order-${'${item.pricExpsrOrdr-1}'}" style="order: ${'${item.pricExpsrOrdr-1}'}">`;
list += ' <div class="product-unit-price__price">';
list += ` <span class="product-unit-price__original">${'${addComma(item.cnsmrpric)}'} 원</span>`;
list += ` <span class="product-unit-price__current">${'${addComma(item.slepric)}'} 원</span>`;
list += ` <span class="product-unit-price__original">${'${addComma(item.cnsmrpric)}'} ` + curUnit + `</span>`;
list += ` <span class="product-unit-price__current">${'${addComma(item.slepric)}'} ` + curUnit + `</span>`;
list += ' </div>';
list += ' <div class="product-unit-price__sale">';
list += ` <span class="percent">${'${item.slePercent}'} %</span>`;