초기소스
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||
<!DOCTYPE html>
|
||||
<%--
|
||||
Class Name : DlvylcManagePopupR.jsp
|
||||
Description : 배송지 관리 팝업.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-04-15 김혜인 최초 생성
|
||||
--%>
|
||||
<html>
|
||||
<div id="dlvylcManage" class="modal" style="max-width: 520px;">
|
||||
<div class="modal-header">
|
||||
<div class="modal-header__title">배송지 관리</div>
|
||||
</div>
|
||||
<div class="modal-content">
|
||||
<div class="modal-content__btn-controller">
|
||||
<button type = "button" class="shipping-register-btn"
|
||||
onclick="fn_move_dlvylc_regpage_pop('Y',<c:if test = "${empty resultMap.resultList}">'Y'</c:if>); return false;">
|
||||
신규 배송지 등록
|
||||
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="15" height="15" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M 11 3 L 11 11 L 3 11 L 3 13 L 11 13 L 11 21 L 13 21 L 13 13 L 21 13 L 21 11 L 13 11 L 13 3 L 11 3 z">
|
||||
</path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<form id="mbrDlvylcList" name="mbrDlvylcList">
|
||||
<c:choose>
|
||||
<c:when test="${not empty resultMap.resultList}">
|
||||
<c:forEach var="resultMap" items="${resultMap.resultList}" varStatus="status">
|
||||
<div class="shipping-list">
|
||||
<div class="shipping-list__item">
|
||||
<div class="shipping-list__item-top">
|
||||
<div class="custom-radio-container">
|
||||
<div class="custom-radio" onclick = "fn_select_mngrOrdr_postcode(${callbackNm},${status.index}, '${formId}')">
|
||||
<label for="${status.index}">
|
||||
<span><c:out value="${resultMap.dlvylcDcCn }" /></span>
|
||||
</label>
|
||||
</div>
|
||||
<c:if test="${resultMap.dftDlvylcAt eq 'Y'}">
|
||||
<span class="default-address">기본배송지</span>
|
||||
</c:if>
|
||||
</div>
|
||||
<button type = "button" class="shipping-modify-btn" id="upt<c:out value="${resultMap.adbkInnb}" />"
|
||||
onclick="fn_move_dlvylc_uptpage_pop('<c:out value='${pageIndex}'/>',
|
||||
'<c:out value='${resultMap.adbkInnb}'/>',
|
||||
'Y');">
|
||||
<spring:message code="button.update" />
|
||||
</button>
|
||||
<c:if test="${resultMap.dftDlvylcAt eq 'N'}">
|
||||
<button type = "button" class="shipping-remove-btn" id="del<c:out value="${resultMap.adbkInnb}" />"
|
||||
onclick="fn_delete_dlvylc('<spring:message code="success.common.delete"/>'
|
||||
,'<c:out value="${resultMap.adbkInnb}" />'
|
||||
,'Y',false); return false;">
|
||||
<spring:message code="button.delete" />
|
||||
</button>
|
||||
</c:if>
|
||||
</div>
|
||||
<label for="${status.index}" onclick = "fn_select_mngrOrdr_postcode(${callbackNm},${status.index}, '${formId}')">
|
||||
<div class="shipping-list__item-inner">
|
||||
<p class="name"><c:out value="${resultMap.recpntNm }" /></p>
|
||||
<p>(<c:out value="${resultMap.zip }" />)
|
||||
<c:choose>
|
||||
<c:when test="${resultMap.adresDv eq '01'}">
|
||||
<c:out value="${resultMap.rnmAdres }" />
|
||||
</c:when>
|
||||
<c:when test="${resultMap.adresDv eq '02'}">
|
||||
<c:out value="${resultMap.lnbAdres}"/>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
<c:out value="${resultMap.dtlAdres }" />
|
||||
</p>
|
||||
<p class="number mbtlnbPop"><c:out value="${resultMap.mbtlnb}" /></p>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="zip" class = "zip" value="<c:out value='${resultMap.zip}'/>" />
|
||||
<input type="hidden" name="adresDv" class = "adresDv" value="<c:out value='${resultMap.adresDv}'/>" />
|
||||
<input type="hidden" name="rnmAdres" class = "rnmAdres" value="<c:out value='${resultMap.rnmAdres}'/>" />
|
||||
<input type="hidden" name="lnbAdres" class = "lnbAdres"value="<c:out value='${resultMap.lnbAdres}'/>" />
|
||||
<input type="hidden" name="recpntNm" class = "recpntNmR" value="<c:out value='${resultMap.recpntNm}'/>" />
|
||||
<input type="hidden" name="dtlAdres" class = "dtlAdres" value="<c:out value='${resultMap.dtlAdres}'/>" />
|
||||
<input type="hidden" name="mbtlnb" class = "mbtlnb" value="<c:out value='${resultMap.mbtlnb}' />" />
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<div class="table__no-result">
|
||||
<img src="/pc/images/icon__no-result.png" alt="배송지 없음">
|
||||
<p class="table__no-result-text">
|
||||
조회된 배송지가 없습니다.
|
||||
</p>
|
||||
</div>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<br>
|
||||
<c:if test = "${not empty resultMap.resultList}">
|
||||
<input type="hidden" id="pageIndex" name="pageIndex" value="${pageIndex}" />
|
||||
<input type="hidden" id="isPop" name="isPop" value="Y" />
|
||||
<div class="pagination__container mt-30">
|
||||
<ui:pagination paginationInfo="${resultMap.paginationInfo}" type="image" jsFunction="fn_move_dlvylc_manage_pop" />
|
||||
</div>
|
||||
</c:if>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</html>
|
||||
108
src/main/webapp/WEB-INF/views/sopmal/mpage/mbr/DlvylcManageR.jsp
Normal file
108
src/main/webapp/WEB-INF/views/sopmal/mpage/mbr/DlvylcManageR.jsp
Normal file
@@ -0,0 +1,108 @@
|
||||
<%@ 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" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
<%--
|
||||
Class Name : DlvylcManageR.jsp
|
||||
Description : 배송지 관리.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-04-15 김혜인 최초 생성
|
||||
--%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<div class="addressManage__header">
|
||||
<h5 class="addressManage__title">배송지 목록</h5>
|
||||
<div class="addressManage__btnContainer">
|
||||
<button type = "button" class="btn outline" id="insertDlvylcBtn" onclick="fn_move_dlvylc_regpage_pop('N',<c:if test="${empty resultMap.resultList}">'Y'</c:if>); return false;">배송지 추가
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<form id="dlvylcList">
|
||||
<div class="addressManage__list">
|
||||
<c:choose>
|
||||
<c:when test = "${not empty resultMap.resultList}">
|
||||
<c:forEach var="dlvylc" items="${resultMap.resultList}">
|
||||
<div class="addressManage__item">
|
||||
<div class="addressManage__itemRadio">
|
||||
<div class="custom-radio no-text is-medium">
|
||||
<input type="radio" value="<c:out value = "${dlvylc.adbkInnb}"/>" id="<c:out value = "${dlvylc.adbkInnb}"/>" name="abdkInnb" <c:if test = "${dlvylc.dftDlvylcAt eq 'Y'}">checked</c:if>
|
||||
onclick="fn_save_dftDlvylcAt('<spring:message code="success.common.update"/>','<c:out value="${dlvylc.adbkInnb}" />')">
|
||||
<label for="<c:out value = "${dlvylc.adbkInnb}"/>"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="addressManage__itemBody">
|
||||
<div class="addressManage__itemName">
|
||||
<div class="addressManage__itemPerson <c:if test = "${dlvylc.dftDlvylcAt eq 'Y'}">current</c:if>"><c:out value = "${dlvylc.dlvylcDcCn}"/>
|
||||
<c:if test = "${dlvylc.dftDlvylcAt eq 'Y'}">
|
||||
<div class="addressManage__itemCheck">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"
|
||||
viewBox="0 0 14 14" fill="none">
|
||||
<g clip-path="url(#clip0_121_29551)">
|
||||
<path d="M5.36085 12.2297C5.22721 12.3641 5.04489 12.4391 4.85549 12.4391C4.66609 12.4391 4.48376 12.3641 4.35012 12.2297L0.314136 8.19308C-0.104712 7.77424 -0.104712 7.09505 0.314136 6.67699L0.819501 6.17149C1.23848 5.75264 1.91688 5.75264 2.33573 6.17149L4.85549 8.69138L11.6642 1.88249C12.0832 1.46365 12.7623 1.46365 13.1805 1.88249L13.6858 2.38799C14.1047 2.80684 14.1047 3.48589 13.6858 3.90409L5.36085 12.2297Z" fill="black" />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_121_29551">
|
||||
<rect width="14" height="14" fill="white" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
<c:if test = "${dlvylc.dftDlvylcAt eq 'Y'}"><span class="addressManage__itemBadge">기본배송지</span></c:if>
|
||||
</div>
|
||||
<span class="addressManage__itemPhone"><c:out value = "${dlvylc.recpntNm}"/></span>
|
||||
<span class="addressManage__itemPhone mbtlnb"><c:out value = "${dlvylc.mbtlnb}"/></span>
|
||||
<p class="addressManage__itemAddress">(<c:out value = "${dlvylc.zip}"/>)
|
||||
<c:if test = "${dlvylc.adresDv eq '01'}">
|
||||
<c:out value = "${dlvylc.rnmAdres}"/>
|
||||
</c:if>
|
||||
<c:if test = "${dlvylc.adresDv eq '02'}">
|
||||
<c:out value = "${dlvylc.lnbAdres}"/>
|
||||
</c:if>
|
||||
<c:out value = "${dlvylc.dtlAdres}"/></p>
|
||||
</div>
|
||||
<div class="addressManage__itemControls">
|
||||
<c:if test = "${dlvylc.dftDlvylcAt eq 'N'}">
|
||||
<button type="button" class="btn outline sm" id="deleteDlvylcDel"
|
||||
onclick="fn_delete_dlvylc('<spring:message code="success.common.delete"/>',
|
||||
'<c:out value=" ${dlvylc.adbkInnb}"/>','N')">
|
||||
<spring:message code="button.delete" />
|
||||
</button>
|
||||
</c:if>
|
||||
<button type="button" class="btn outline theme sm" id="selectDlvylcUpdtPopupForm"
|
||||
onclick="fn_move_dlvylc_uptpage_pop('<c:out value="${pageIndex}"/>',
|
||||
'<c:out value="${dlvylc.adbkInnb}"/>',
|
||||
'N')">
|
||||
<spring:message code="button.update" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</div>
|
||||
<br>
|
||||
<input type="hidden" id="pageIndex" name="pageIndex" value="${pageIndex}" />
|
||||
<div class="pagination__container mt-30">
|
||||
<ui:pagination paginationInfo="${resultMap.paginationInfo}" type="image" jsFunction="fn_select_dlvylcList" />
|
||||
</div>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<div class="addressManage__list">
|
||||
<div class="addressManage__no-result">
|
||||
<img src="/pc/images/icon__no-result.png" alt="배송지 없음">
|
||||
<p class="addressManage__no-result-text">
|
||||
등록된 배송지가 없습니다.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</form>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||
<%--
|
||||
Class Name : DlvylcManageRForm.jsp
|
||||
Description : 배송지 관리.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-04-15 김혜인 최초 생성
|
||||
--%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<%-- 공통 include --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
||||
<%-- 배송지 관리js --%>
|
||||
<script src="<c:url value='/js/dlvylc/dlvylc.js'/>"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
fn_select_dlvylcList(1);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<%-- 공통 Header --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Header.jsp"/>
|
||||
<!-- 메인 컨텐츠 영역 -->
|
||||
<main>
|
||||
<div class="sub-wrapper">
|
||||
<div class="sub-content" id = "top">
|
||||
<div class="sub-rl">
|
||||
<%-- 마이페이지 Left 영역 --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/mpage/MypageLeft.jsp"/>
|
||||
<div class="sub-right-content">
|
||||
<div class="sub-right-content__section">
|
||||
<h3 class="sub-right-content__title">배송지 관리</h3>
|
||||
<div class="addressManage">
|
||||
<div id = "content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<%-- 공통 Footer --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Footer.jsp"/>
|
||||
<div id="modalDiv">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,79 @@
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||
<!DOCTYPE html>
|
||||
<%--
|
||||
Class Name : DlvylcRegistPopupC.jsp
|
||||
Description : 배송지 등록 팝업.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-04-15 김혜인 최초 생성
|
||||
--%>
|
||||
<html>
|
||||
<!-- 배송지 등록-->
|
||||
<div id="dlvylcRegist" class="modal default" style="max-width: 600px;">
|
||||
<div class="modal-header">
|
||||
<div class="modal-header__title">배송지 등록</div>
|
||||
</div>
|
||||
<form id = "dlvylcRegistForm">
|
||||
<div class="modal-content">
|
||||
<table class="table-address">
|
||||
<caption>해당 테이블에 대한 내용</caption>
|
||||
<colgroup>
|
||||
<col style="width:116px;">
|
||||
<col style="width:auto;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>배송지명<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input type="text" class="m-input" name="dlvylcDcCn" title="배송지명" maxlength="67">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>받으시는 분<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input type="text" class="m-input" title="받으시는 분" name="recpntNm" title="받으시는 분" maxlength="13">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>배송지 주소<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input type="text" class="m-input short" id="zip" name="zip" title="우편번호" maxlength="5" readonly>
|
||||
<button class="find-address-btn" onclick="fn_select_postcode(fn_select_dlvylc_postcode); return false;">우편번호 찾기</button>
|
||||
<input type="text" class="m-input long my" id="adres" name="adres" maxlength="66" readonly title="주소">
|
||||
<input type="text" class="m-input long" id="dtlAdres" name="dtlAdres" title="상세주소" maxlength="66" placeholder="나머지 주소를 입력해 주세요">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대전화번호<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input name="mbtlnb" type="text" class="m-input telno" title="휴대전화번호" maxlength="13" placeholder="휴대폰번호'-'없이 입력하세요">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="shipping-register-bottom">
|
||||
<label class="b-checkbox checkbox is-medium">
|
||||
<input type="checkbox" id="dftDlvylcAt" name="dftDlvylcAt" value="Y">
|
||||
<span class="check"></span>
|
||||
<span class="control-label">기본 배송지</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="shipping-btn-container">
|
||||
<a href="#" rel="modal:close" class="btn large outline">취소</a>
|
||||
<button type="button" id="DlvylcRegistBtn" class="btn theme large"
|
||||
onclick="fn_insert_dlvylc('<spring:message code='success.common.insert'/>'); return false;">등록하기</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="adresDv" name="adresDv">
|
||||
<input type="hidden" id="isPop">
|
||||
</form>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,99 @@
|
||||
<%@ 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" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
<!DOCTYPE html>
|
||||
<%--
|
||||
Class Name : DlvylcUpdtPopupU.jsp
|
||||
Description : 배송지 수정.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-04-15 김혜인 최초 생성
|
||||
--%>
|
||||
<html>
|
||||
<script>
|
||||
$(document).ready(function (){
|
||||
$(".telno").val(fn_format_mbtlnb($(".telno").val()));
|
||||
});
|
||||
</script>
|
||||
<div id="dlvylcUpdate" class="modal default" style="max-width: 600px;">
|
||||
<form id="dlvylcUpdtForm" name="dlvylcUpdtForm" action="<c:url value="/crm/dlvylc/updateDlvylcUpdt"/>" method="post">
|
||||
<div class="modal-header">
|
||||
<div class="modal-header__title">배송지 수정</div>
|
||||
</div>
|
||||
<div class="modal-content">
|
||||
<table class="table-address">
|
||||
<caption>해당 테이블에 대한 내용</caption>
|
||||
<colgroup>
|
||||
<col style="width:116px;">
|
||||
<col style="width:auto;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>배송지명<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input type="text" class="m-input" name="dlvylcDcCn" title="배송지명" value="<c:out value = "${dtlDlvylc.resultVO.dlvylcDcCn}" />" maxlength="67">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>받으시는 분<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input type="text" class="m-input" title="받으시는 분" name="recpntNm" title="받으시는 분" value="<c:out value="${dtlDlvylc.resultVO.recpntNm}" />" maxlength="13">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>배송지 주소<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input type="text" class="m-input short" id="zip" name="zip" title="우편번호" value="<c:out value = "${dtlDlvylc.resultVO.zip}"/>" maxlength="5" readonly>
|
||||
<button class="find-address-btn" onclick="fn_select_postcode(fn_select_dlvylc_postcode); return false;">우편번호 찾기</button>
|
||||
<input type="text" class="m-input long my" id="adres" name="adres" title="주소" maxlength="66"
|
||||
value=<c:choose>
|
||||
<c:when test = "${dtlDlvylc.resultVO.adresDv eq '01'}">'<c:out value = "${dtlDlvylc.resultVO.rnmAdres}"/>'</c:when>
|
||||
<c:when test = "${dtlDlvylc.resultVO.adresDv eq '02'}">'<c:out value = "${dtlDlvylc.resultVO.lnbAdres}"/>'</c:when>
|
||||
</c:choose> readonly >
|
||||
<input type="text" class="m-input long" id="dtlAdres" name="dtlAdres" title="상세주소" value="<c:out value = '${dtlDlvylc.resultVO.dtlAdres}'/>"
|
||||
maxlength="66" placeholder="나머지 주소를 입력해 주세요">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대전화번호<span class="required-asterisk">*</span></th>
|
||||
<td>
|
||||
<input name="mbtlnb" type="text" class="m-input telno" title="휴대전화번호" value="<c:out value = "${dtlDlvylc.resultVO.mbtlnb}"/>"
|
||||
maxlength="13" placeholder="휴대폰번호'-'없이 입력하세요">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="shipping-register-bottom">
|
||||
<label class="b-checkbox checkbox is-medium" id = "dftDlvylcAtLabel">
|
||||
<c:choose>
|
||||
<c:when test="${dtlDlvylc.resultVO.dftDlvylcAt eq 'Y'}">
|
||||
<input type="checkbox" id="dftDlvylcAt" name="dftDlvylcAt" value="Y" checked>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="checkbox" id="dftDlvylcAt" name="dftDlvylcAt" value="Y">
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<span class="check"></span>
|
||||
<span class="control-label">기본 배송지</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="shipping-btn-container">
|
||||
<a href="#" rel="modal:close" class="btn large outline">취소</a>
|
||||
<button id="DlvylcUpdateBtn" class="btn theme large outline"
|
||||
onclick="fn_update_dlvylc('1','<spring:message code="success.common.update"/>','');return false;">
|
||||
<spring:message code="button.update"/>하기
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="adbkInnb" name="adbkInnb" value="<c:out value = "${dtlDlvylc.resultVO.adbkInnb}" />">
|
||||
<input type="hidden" id="adresDv" name="adresDv" value="<c:out value = "${dtlDlvylc.resultVO.adresDv}"/>">
|
||||
<input type="hidden" id="isPop">
|
||||
</form>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,110 @@
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||
|
||||
|
||||
<%--
|
||||
Class Name : MbrInfoUpdtPasswordCnfirmR.jsp
|
||||
Description : 회원 정보 수정 비밀번호 확인 .jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-02-27 추지훈 최초 생성
|
||||
--%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<%-- 공통 include --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
||||
</head>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#mbrPassword").on("keydown",function(e){
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/******************************************************
|
||||
* 회원 비밀번호 확인
|
||||
*******************************************************/
|
||||
const fn_select_password = function() {
|
||||
const data = $('#listForm').serialize();
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url : '<c:url value="/sopmal/mpage/mbr/selectMbrInfoUpdtPasswordCnfirm"/>',
|
||||
data : data,
|
||||
success:function(data) {
|
||||
const resBody = data.resBody;
|
||||
const parsedResult = JSON.parse(resBody.result);
|
||||
let result = parsedResult.result;
|
||||
if (result === 1) {
|
||||
fn_move_target(); // 클릭한 메뉴로 이동
|
||||
} else {
|
||||
alert("비밀번호가 일치하지 않습니다.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/******************************************************
|
||||
* CRM 회원 검색 조회
|
||||
*******************************************************/
|
||||
const fn_move_target = function(goUrl) {
|
||||
$('#listForm').attr('action', '<c:url value="/sopmal/mpage/mbr/selectMbrInfoUpdtForm"/>');
|
||||
$('#listForm').attr('method', 'post');
|
||||
$('#listForm').submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<%-- 공통 Header --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Header.jsp"/>
|
||||
|
||||
<!-- 메인 컨텐츠 영역 -->
|
||||
<main>
|
||||
<div class="sub-wrapper">
|
||||
<div class="sub-content">
|
||||
<div class="sub-rl">
|
||||
<%-- 마이페이지 Left 영역 --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/mpage/MypageLeft.jsp"/>
|
||||
<div class="sub-right-content">
|
||||
<div class="sub-right-content__section">
|
||||
<h3 class="sub-right-content__title">회원정보수정</h3>
|
||||
<form id="listForm" name="listForm" action="">
|
||||
<div class="passwordCheck">
|
||||
<h5 class="passwordCheck__title">비밀번호 확인</h5>
|
||||
<p class="passwordCheck__text">고객님의 소중한 개인 정보 보호를 위해
|
||||
<br>
|
||||
비밀번호를 다시 한번 입력해 주시기 바랍니다.
|
||||
</p>
|
||||
<input class="input-text" type="password" title="해당 인풋에 대한 설명" name="mbrPassword" id="mbrPassword" value=""
|
||||
placeholder="비밀번호 입력">
|
||||
<button class="btn xl theme passwordCheck__btn" type="button" onclick="fn_select_password(); return false;">확인</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<%-- 공통 Footer --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Footer.jsp"/>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1085
src/main/webapp/WEB-INF/views/sopmal/mpage/mbr/MbrInfoUpdtU.jsp
Normal file
1085
src/main/webapp/WEB-INF/views/sopmal/mpage/mbr/MbrInfoUpdtU.jsp
Normal file
File diff suppressed because it is too large
Load Diff
183
src/main/webapp/WEB-INF/views/sopmal/mpage/mbr/MbrSecsnU.jsp
Normal file
183
src/main/webapp/WEB-INF/views/sopmal/mpage/mbr/MbrSecsnU.jsp
Normal file
@@ -0,0 +1,183 @@
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||
|
||||
|
||||
<%--
|
||||
Class Name : MbrSecsnU.jsp
|
||||
Description : 회원 탈퇴.jsp
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-02-27 추지훈 최초 생성
|
||||
--%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<%-- 공통 include --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
||||
</head>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
fn_display_ctrl();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* ********************************************************
|
||||
* 회원 탈퇴 함수
|
||||
******************************************************** */
|
||||
const fn_display_ctrl = function() {
|
||||
|
||||
$('.termCheck').on('change', function() {
|
||||
const isChecked = $('.termCheck').is(':checked');
|
||||
});
|
||||
|
||||
$("select[name='secsnResn']").niceSelect();
|
||||
};
|
||||
/* ********************************************************
|
||||
* 회원 탈퇴 함수
|
||||
******************************************************** */
|
||||
const fn_regist_mbr_secsn = function () {
|
||||
let secsnResn = $("select[name='secsnResn']").val();
|
||||
const isChecked = $('.termCheck').is(':checked');
|
||||
if (isChecked) {
|
||||
if (confirm('회원 탈퇴하시겠습니까?')) {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: '<c:url value="/sopmal/mpage/mbr/updateMbrSecsn"/>',
|
||||
data: {secsnResn: secsnResn},
|
||||
success: function (data) {
|
||||
alert('정상적으로 탈퇴 되었습니다.');
|
||||
location.href ="/logout";
|
||||
}
|
||||
});
|
||||
}
|
||||
}else{
|
||||
alert("정보 삭제 동의에 체크해야합니다.");
|
||||
$('.termCheck').focus();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<%-- 공통 Header --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Header.jsp"/>
|
||||
|
||||
<!-- 메인 컨텐츠 영역 -->
|
||||
<main>
|
||||
<div class="sub-wrapper">
|
||||
<div class="sub-content">
|
||||
<div class="sub-rl">
|
||||
<%-- 마이페이지 Left 영역 --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/mpage/MypageLeft.jsp"/>
|
||||
<div class="sub-right-content">
|
||||
<form id="registForm">
|
||||
<div class="sub-right-content__section">
|
||||
<h3 class="sub-right-content__title">회원탈퇴</h3>
|
||||
<h3 class="sub-right-content__title" style="text-align: center;">탈퇴하시면 혜택이 모두 사라져요</h3>
|
||||
<div class="deleteAccount__image signUp-promotion__col-3 ck-content">
|
||||
<c:out value='${resultMap.sopmalInfo.joinBnef}' escapeXml='false'/>
|
||||
</div>
|
||||
<p class="deleteAccount__title">탈퇴 신청</p>
|
||||
<div class="deleteAccount">
|
||||
<div class="deleteAccount__item">
|
||||
<div class="deleteAccount__itemTitle">탈퇴 사유</div>
|
||||
<div class="select-box">
|
||||
<select class="lg" title="해당 셀렉트에 대한 설명" name="secsnResn">
|
||||
<option value="" disabled selected>탈퇴 사유를 선택해 주세요.</option>
|
||||
<option value="배송 주문 불만족">배송 주문 불만족</option>
|
||||
<option value="사이트 이용 불편">사이트 이용 불편</option>
|
||||
<option value="상품품질 불만족">상품품질 불만족</option>
|
||||
<option value="서비스 불만족">서비스 불만족</option>
|
||||
<option value="기타">기타</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="deleteAccount__item">
|
||||
<div class="deleteAccount__itemTitle">내용</div>
|
||||
<textarea class="textarea" rows="9" title="해당 텍스트 에어리어에 대한 설명" placeholder="" id="memo" name="memo"></textarea>
|
||||
</div>
|
||||
<div class="infoBox">
|
||||
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>회원탈퇴 시 회원님의 개인정보, 주문내역,
|
||||
마일리지, 쿠폰 등 모든 정보가 바로 삭제됩니다. 회원님의 모든 SNS계정 정보가 쇼핑몰에서 삭제 됩니다.
|
||||
</p>
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox is-medium checkbox">
|
||||
<input class="termCheck" type="checkbox" value="">
|
||||
<span class="check"></span>
|
||||
<span class="control-label">예, 정보 삭제에 동의합니다.</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-bottom-btn-container">
|
||||
<button class="btn xl outline">취소</button>
|
||||
<button type="button" class="btn xl theme" onclick="fn_regist_mbr_secsn();">탈퇴하기</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<%-- 공통 Footer --%>
|
||||
<jsp:include page="/WEB-INF/views/comm/Footer.jsp"/>
|
||||
|
||||
<script>
|
||||
//변경 버튼 클릭시, 변경할 내용 노출
|
||||
var editBtn = $('.editAccount__editBtn');
|
||||
var editContent = $('.editAccount__editContent');
|
||||
|
||||
editContent.hide();
|
||||
|
||||
editBtn.on('click', function () {
|
||||
var $this = $(this);
|
||||
var $thisContent = $this.closest('td').find('.editAccount__editContent');
|
||||
|
||||
if ($thisContent.is(':visible')) {
|
||||
$thisContent.hide();
|
||||
} else {
|
||||
editContent.hide();
|
||||
$thisContent.show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//휴대폰 인증 버튼 클릭시, 휴대폰 인증 박스 노출
|
||||
var phoneAuthBtn = $('#phoneAuthBtn');
|
||||
var phoneAuthContent = $('#phoneAuthContent');
|
||||
|
||||
phoneAuthContent.hide();
|
||||
|
||||
phoneAuthBtn.click(function () {
|
||||
phoneAuthContent.show();
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<!-- 모달 -->
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user