fix : 쇼핑몰 주문완료 화면 - 구독서비스 주문완료 분기 추가

This commit is contained in:
이대환
2026-03-27 11:49:32 +09:00
parent 3007f0780d
commit 5aa87c2526
8 changed files with 238 additions and 71 deletions

View File

@@ -39,7 +39,10 @@
/* 주문/배송 목록 화면 이동 버튼 선택 이벤트 */
$('#btnOrdrList').on('click', function() {
location.href = '<c:url value="/sopmal/mpage/ordr/selectMbrOrdrListInqire"/>';
const subsvcAt = '${data.order.subsvcAt}';
location.href = subsvcAt === 'Y'
? '<c:url value="/sopmal/mpage/ordr/selectMbrSubsvcOrdrListInqireRForm"/>'
: '<c:url value="/sopmal/mpage/ordr/selectMbrOrdrListInqire"/>';
});
/* 주문번호 복사 버튼 선택 이벤트 */
@@ -152,7 +155,7 @@
</div>
</div>
<c:choose>
<c:when test="${'04' != order.ordrTyCd && '05' != order.ordrTyCd}">
<c:when test="${order.subsvcAt eq 'Y' || '04' != order.ordrTyCd && '05' != order.ordrTyCd}">
<div class="sub-box">
<div class="orderDetailProduct">
<div class="orderDetailProduct__top" role="button" tabindex="0">
@@ -164,38 +167,40 @@
<c:choose>
<c:when test="${not empty data.shippingList}">
<c:forEach var="shipping" items="${data.shippingList}" varStatus="status">
<div class="table-wrapper orderDetail__table">
<table class="table">
<colgroup>
<col style="width: 40%">
<col style="width: 60%">
</colgroup>
<tbody>
<tr>
<th>받는분</th>
<td><c:out value="${shipping.recpntNm}"/></td>
</tr>
<tr>
<th>주소</th>
<td>
<span class="orderDetail__table__address">
<c:out value="${not empty shipping.dlvylcZip ? '(' += shipping.dlvylcZip += ')' : ''}"/>
<c:out value="${shipping.adres}"/>
<c:out value="${shipping.dlvylcAdresDtl}"/>
</span>
</td>
</tr>
<tr>
<th>휴대폰번호</th>
<td><c:out value="${shipping.recpntMbtlnb}"/></td>
</tr>
<tr>
<th>배송 시 요청사항</th>
<td><c:out value="${shipping.dlvyMssageCn}"/></td>
</tr>
</tbody>
</table>
</div>
<c:if test="${order.subsvcAt ne 'Y' || status.first}">
<div class="table-wrapper orderDetail__table">
<table class="table">
<colgroup>
<col style="width: 40%">
<col style="width: 60%">
</colgroup>
<tbody>
<tr>
<th>받는분</th>
<td><c:out value="${shipping.recpntNm}"/></td>
</tr>
<tr>
<th>주소</th>
<td>
<span class="orderDetail__table__address">
<c:out value="${not empty shipping.dlvylcZip ? '(' += shipping.dlvylcZip += ')' : ''}"/>
<c:out value="${shipping.adres}"/>
<c:out value="${shipping.dlvylcAdresDtl}"/>
</span>
</td>
</tr>
<tr>
<th>휴대폰번호</th>
<td><c:out value="${shipping.recpntMbtlnb}"/></td>
</tr>
<tr>
<th>배송 시 요청사항</th>
<td><c:out value="${shipping.dlvyMssageCn}"/></td>
</tr>
</tbody>
</table>
</div>
</c:if>
</c:forEach>
</c:when>
</c:choose>