| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <!DOCTYPE html>
- <html lang="ko"
- xmlns:th="http://www.thymeleaf.org">
- <!--
- *******************************************************************************
- * @source : CustomerSecedePopupForm.html
- * @desc : 회원탈퇴처리 화면 Page
- *============================================================================
- * STYLE24
- * Copyright(C) 2021 TSIT, All rights reserved.
- *============================================================================
- * VER DATE AUTHOR DESCRIPTION
- * === =========== ========== =============================================
- * 1.0 2021.01.26 jsshin 최초 작성
- *******************************************************************************
- -->
- <div class="modalPopup" data-width="800">
- <div class="panelStyle">
- <!-- TITLE -->
- <div class="panelTitle">
- <strong>회원탈퇴처리</strong>
- <button type="button" class="close" onclick="uifnPopupClose('popupCustSecedeForm')"><em class="fa fa-times"></em></button>
- </div>
- <!-- //TITLE -->
- <!-- CONTENT -->
- <div class="panelContent">
- <div class="panelStyle">
- <form id="custSecedeForm" name="custSecedeForm">
- <input type="hidden" name="custNo"/>
- <table class="frmStyle">
- <colgroup>
- <col style="width:10%;"/>
- <col style="width:20%;"/>
- <col style="width:10%;"/>
- <col style="width:15%;"/>
- <col style="width:10%;"/>
- <col style="width:20%;"/>
- <col/>
- </colgroup>
- <tbody>
- <tr>
- <th class="dashR">탈퇴사유</th>
- <td class="dashR" colspan="5">
- <select name="secedeRsn" > <!-- 탈퇴사유 (공통코드G102) -->
- <option value="">전체</option>
- <option th:if="${secedeRsnList}" th:each="oneData, status : ${secedeRsnList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
- </select>
- </td>
- </tr>
- <tr>
- <th class="dashR">탈퇴 상세 사유</th>
- <td class="dashR" colspan="5">
- <input type="text" class="w600" id="secedeDtlRsn" name="secedeDtlRsn" />
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- <ul class="panelBar">
- <li class="right">
- <button type="button" id="btnSaveSecede" class="btn btn-success btn-lg">탈퇴처리</button>
- </li>
- </ul>
- </div>
- <!-- //CONTENT -->
- </div>
- </div>
- <script th:inline="javascript">
- /*<![CDATA[*/
- const elementCustNo = [[${elementCustNo}]];
- // 회원탈퇴
- $("#btnSaveSecede").on("click",function() {
- let custSecedeForm = $('#custSecedeForm').serializeObject();
- if(gagajf.isNull(custSecedeForm.secedeRsn)){
- mcxDialog.alert("탈퇴 사유를 선택해주세요.");
- return;
- }
- mcxDialog.confirm('회원 탈퇴를 진행하시겠습니까?', {
- cancelBtnText: "취소",
- sureBtnText: "확인",
- sureBtnClick: function(){
- gagajf.ajaxFormSubmit('/customer/secede/save', '#custSecedeForm', fnSaveCall);
- }
- });
- });
- var fnSaveCall = function (data) {
- console.log('typeof', typeof data.isSuccess);
- if (data.isSuccess) {
- mcxDialog.alertC(data.resultMessage, {
- sureBtnText: "확인",
- sureBtnClick: function() {
- uifnPopupClose('popupCustSecedeForm');
- uifnPopupClose('popupCustomerDetail');
- }
- });
- } else {
- mcxDialog.alert(data.resultMessage);
- return;
- }
- }
- var fnInitDataSet = function () {
- let custNo = $(elementCustNo).val();
- if(!gagajf.isNull(custNo)) {
- $('#custSecedeForm input[name=custNo]').val(custNo);
- }
- }
- $(document).ready(function() {
- fnInitDataSet();
- });
- /*]]>*/
- </script>
- </html>
|