구독서비스 페이지 추가

fix : 화폐단위 변경 (원 → 円)
fix : 관리자 상품 상세 - 공유버튼 제거
fix : 관리자 상품 등록/복사재등록, 구매이벤트 - 스타일 일부 변경
fix : 사용자 주문 상세 - 스타일 일부 변경
This commit is contained in:
이대환
2026-01-02 15:26:19 +09:00
parent ac1db26212
commit 085a75593a
14 changed files with 169 additions and 36 deletions

View File

@@ -3949,10 +3949,10 @@
<i class="icon icon_wish <c:if test="${resultMap.goodsDtl.isWish eq '1'}">active</c:if>"></i>
<span class="visually-hidden">위시리스트 추가</span>
</button>
<button class="productDetailInfo__miscControls__btn" id="snsShare">
<i class="icon icon_share"></i>
<span class="visually-hidden">공유하기</span>
</button>
<%-- <button class="productDetailInfo__miscControls__btn" id="snsShare">--%>
<%-- <i class="icon icon_share"></i>--%>
<%-- <span class="visually-hidden">공유하기</span>--%>
<%-- </button>--%>
</div>
</div>
<div class="productDetailInfo__price">

View File

@@ -71,12 +71,8 @@
startPric = 5000;
endPric = 15000;
break;
case '15000 ~ 30000' + curUnit:
case '15000' + curUnit + ' 이상':
startPric = 15000;
endPric = 30000;
break;
case '30000' + curUnit + ' 이상':
startPric = 30000;
endPric = null;
break;
default:
@@ -1077,8 +1073,7 @@
<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>
<button value="btn4" class="searchPrice__select__btn <c:if test="${resultMap.BOGoodsVO.priceRange == 'btn4'}">selected</c:if>">15000${curUnit} 이상</button>
</div>
<div class="searchPrice__range">
<div class="searchPrice__rangeInput">

View File

@@ -0,0 +1,124 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%--
Class Name : SubscribeR.jsp
Description : 구독 목록 폼
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2025-12-31 이대환 최초 생성
--%>
<!DOCTYPE html>
<html lang="ko">
<head>
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
</head>
<script>
</script>
<style>
.container {
display: flex;
width: 100%;
height: 200px;
border: 1px solid #e9ecef;
}
.box {
flex: 1;
flex-direction: column;
border-right: 1px solid #e9ecef;
display: flex;
padding: 32px;
box-sizing: border-box;
}
.box:last-child {
display: flex;
border-right: none;
justify-content: center;
}
.box > span {
width: 100%;
margin-bottom: 16px;
}
.box ul {
padding-left: 20px;
margin: 0;
}
.box ul li {
list-style-type: disc;
margin-bottom: 8px;
}
.box button {
background-color: #000;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
text-align: center;
}
.box button:hover {
opacity: 0.85;
}
</style>
<body>
<%-- 공통 Header --%>
<jsp:include page="/WEB-INF/views/comm/Header.jsp"/>
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
<!-- 메인 컨텐츠 영역 -->
<main>
<div class="sub-wrapper">
<div class="sub-content">
<form>
<h2 class="subList__title">구독 서비스</h2>
<div class="container">
<div class="box">
<span>구독서비스</span>
<div class="select-box">
<select class="" title="">
<option value="" selected>구독서비스 안내</option>
<option value="">구독서비스 준비중</option>
<option value="">프리미엄 구독 (잔여 : 100)</option>
<option value="">Top10 선정 (잔여 : 10)</option>
<option value="">Top100 선정 (잔여 : 100)</option>
</select>
</div>
</div>
<div class="box">
<span>구독서비스 내역</span>
<ul>
<li>구독기간 : 12개월</li>
<li>배송횟수 : 12회</li>
<li>배송주기 : 매달 1회</li>
<li>상품금액 : 99,000${curUnit} <span style="color: red">58%</span></li>
</ul>
</div>
<div class="box">
<button>구독하기</button>
</div>
</div>
<div class="ck-content">
</div>
</form>
</div>
</div>
</main>
<jsp:include page="/WEB-INF/views/comm/Footer.jsp"/>
</body>
</html>

View File

@@ -16,7 +16,7 @@
------- -------- ---------------------------
2024-02-27 추지훈 최초 생성
--%>
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
<script defer>
//상품 타이틀, 수량, 가격 저장하는 배열
// 배열 순서 -> [상품명, 수량, 1개당 가격, 상품 총가격(=수량x개당가격), 추가정보(색상, 사이즈등)]
@@ -95,13 +95,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(); // 총 상품금액 업데이트
@@ -284,7 +285,7 @@
</span>
<span class="product-unit-price__current">
<span class="comma"> <fmt:formatNumber value="${resultMap.goodsDtl.slepric - resultMap.goodsDtl.evtAditDscntAmt}"/></span>
<span class="priceUnit">원</span></span>
<span class="priceUnit">${curUnit}</span></span>
</div>
<div class="product-unit-price__sale">
<span class="percent">
@@ -323,7 +324,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>
@@ -454,7 +455,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>

View File

@@ -1214,7 +1214,7 @@
<col style="width: 40px;">
<col style="width: 10%;">
<col style="width: 10%;">
<col style="width: 10%;">
<col style="width: 12%;">
<col style="width: 10%;">
<col style="width: 10%;">
</colgroup>
@@ -1365,7 +1365,7 @@
<col style="width: 40px;">
<col style="width: 10%;">
<col style="width: 10%;">
<col style="width: 10%;">
<col style="width: 12%;">
<col style="width: 10%;">
<col style="width: 10%;">
</colgroup>