|
@@ -23,7 +23,7 @@
|
|
|
<section class="content mb_idInquiry_1">
|
|
<section class="content mb_idInquiry_1">
|
|
|
<div class="inner">
|
|
<div class="inner">
|
|
|
<div class="close">
|
|
<div class="close">
|
|
|
- <a href="javascript:history.back(-1);" class="btn_close"><span></span><span></span></a>
|
|
|
|
|
|
|
+ <a class="btn_close"><span></span><span></span></a>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="inner">
|
|
<div class="inner">
|
|
@@ -32,15 +32,15 @@
|
|
|
<div class="inner">
|
|
<div class="inner">
|
|
|
<div class="registration_nav">
|
|
<div class="registration_nav">
|
|
|
<ul class="tab_btn">
|
|
<ul class="tab_btn">
|
|
|
- <li class="active">아이디찾기</li>
|
|
|
|
|
- <li>비밀번호찾기</li>
|
|
|
|
|
|
|
+ <li th:class="${pageGb == 'custId'? 'active' : ''}">아이디찾기</li>
|
|
|
|
|
+ <li th:class="${pageGb == 'custPwd'? 'active' : ''}">비밀번호찾기</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="registration_tap">
|
|
<div class="registration_tap">
|
|
|
<!-- 아이디찾기 -->
|
|
<!-- 아이디찾기 -->
|
|
|
<div class="form_group">
|
|
<div class="form_group">
|
|
|
<!-- 라디오탭 -->
|
|
<!-- 라디오탭 -->
|
|
|
- <div id="searchDiv" class="radio_nav">
|
|
|
|
|
|
|
+ <div id="searchCustIdDiv" class="radio_nav">
|
|
|
<ul class="form_field">
|
|
<ul class="form_field">
|
|
|
<li class="ui_col_4 active">
|
|
<li class="ui_col_4 active">
|
|
|
<input type="radio" name="radio1" id="rdi1-1" value="1" checked><label for="rdi1-1"> <span>회원정보인증</span> </label>
|
|
<input type="radio" name="radio1" id="rdi1-1" value="1" checked><label for="rdi1-1"> <span>회원정보인증</span> </label>
|
|
@@ -60,13 +60,13 @@
|
|
|
<form id="searchCustId" name="searchCustId" class="form_wrap form_full" method="post">
|
|
<form id="searchCustId" name="searchCustId" class="form_wrap form_full" method="post">
|
|
|
<div>
|
|
<div>
|
|
|
<div class="form_field mt0">
|
|
<div class="form_field mt0">
|
|
|
- <input type="text" name="custNm" placeholder="이름" id="custNm" class="form_control" maxlength="30"/>
|
|
|
|
|
|
|
+ <input type="text" name="custNm" placeholder="이름" class="form_control" maxlength="30"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form_field">
|
|
<div class="form_field">
|
|
|
- <input type="text" name="birthYmd" placeholder="생년월일 8자리 (예:19880912)" id="birthYmd" class="form_control"/>
|
|
|
|
|
|
|
+ <input type="text" name="birthYmd" placeholder="생년월일 8자리 (예:19880912)" id="birthYmd" class="form_control" maxlength="8" data-valid-type="numeric"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form_field">
|
|
<div class="form_field">
|
|
|
- <input type="text" name="email" placeholder="이메일" id="email" class="form_control"/>
|
|
|
|
|
|
|
+ <input type="text" name="email" placeholder="이메일" class="form_control"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="btn_group_flex">
|
|
<div class="btn_group_flex">
|
|
|
<div>
|
|
<div>
|
|
@@ -110,12 +110,88 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- 아이디찾기 결과 -->
|
|
|
|
|
+ <div class="form_wrap form_full">
|
|
|
|
|
+ <div id="succeedCustId" class="find_result clear" style="display: none;">
|
|
|
|
|
+ <div class="form_info">
|
|
|
|
|
+ <span class="ico_content_find"></span>
|
|
|
|
|
+ <p>아이디 찾기 결과 안내</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form_print_bar mt40">
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <span class="t_span">아이디</span>
|
|
|
|
|
+ <span id="resultId" name="resultId" class="c_primary bold" data-font="lato"></span>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <span class="t_span">가입일자</span>
|
|
|
|
|
+ <span id="joinDt" name="joinDt" class="bold" data-font="lato"></span>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li id="liJoinPath">
|
|
|
|
|
+ <span class="t_span">가입경로</span>
|
|
|
|
|
+ <span id="joinPath" name="joinPath" class="bold" data-font="lato"></span>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn_group_flex">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_LOGIN);">로그인 하기</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 회원정보로 아이디, 비밀번호 찾기 실패일경우 -->
|
|
|
|
|
+ <div id="failCustInfoId" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
+ <div class="find_result clear">
|
|
|
|
|
+ <div class="form_info">
|
|
|
|
|
+ <span class="ico_content_none"></span>
|
|
|
|
|
+ <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
|
|
+ <p class="t_info mt10">
|
|
|
|
|
+ 정확한 확인을 위해 휴대폰 인증/아이핀 인증을 통한<br>아이디 찾기를 진행해 주세요.
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn_group_flex">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_primary btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_JOIN_TYPE);">
|
|
|
|
|
+ <span>회원가입</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_ID_FIND);">
|
|
|
|
|
+ <span>다시 찾기</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 회원정보로 아이디, 비밀번호 찾기 실패일경우 -->
|
|
|
|
|
+ <!-- 휴대폰,아이핀 본인인증으로 아이디, 비밀번호찾기 실패일경우 -->
|
|
|
|
|
+ <div id="failAuthenticationId" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
+ <div class="find_result clear">
|
|
|
|
|
+ <div class="form_info">
|
|
|
|
|
+ <span class="ico_content_none"></span>
|
|
|
|
|
+ <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
|
|
+ <p class="t_info mt10">
|
|
|
|
|
+ <span class="c_primary">STYLE24의 새로운 가족이 되어 주세요!</span>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn_group_flex">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_primary btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_JOIN_TYPE);">
|
|
|
|
|
+ <span>회원가입</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- //휴대폰,아이핀 본인인증으로 아이디, 비밀번호찾기 실패일경우 -->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- //아이디찾기 결과 -->
|
|
|
</div>
|
|
</div>
|
|
|
<!-- //아이디찾기 -->
|
|
<!-- //아이디찾기 -->
|
|
|
<!-- 비밀번호찾기 -->
|
|
<!-- 비밀번호찾기 -->
|
|
|
- <div class="form_group">
|
|
|
|
|
|
|
+ <div class="form_group" style="display: none;">
|
|
|
<!-- 라디오탭 -->
|
|
<!-- 라디오탭 -->
|
|
|
- <div class="radio_nav">
|
|
|
|
|
|
|
+ <div id="searchPwdDiv" class="radio_nav">
|
|
|
<ul class="form_field">
|
|
<ul class="form_field">
|
|
|
<li class="ui_col_4">
|
|
<li class="ui_col_4">
|
|
|
<input type="radio" name="radios" id="rdi-4" value="4" checked><label for="rdi-4"> <span>회원정보인증</span> </label>
|
|
<input type="radio" name="radios" id="rdi-4" value="4" checked><label for="rdi-4"> <span>회원정보인증</span> </label>
|
|
@@ -186,86 +262,77 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- //라디오탭 -->
|
|
<!-- //라디오탭 -->
|
|
|
- </div>
|
|
|
|
|
- <!-- //비밀번호찾기 -->
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 아이디찾기 결과 -->
|
|
|
|
|
- <div id="succeedCustId" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
- <div class="find_result clear">
|
|
|
|
|
- <div class="form_info">
|
|
|
|
|
- <span class="ico_content_find"></span>
|
|
|
|
|
- <p>아이디 찾기 결과 안내</p>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form_print_bar mt40">
|
|
|
|
|
- <ul>
|
|
|
|
|
- <li>
|
|
|
|
|
- <span class="t_span">아이디</span>
|
|
|
|
|
- <span id="resultId" name="resultId" class="c_primary bold" data-font="lato"></span>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <span class="t_span">가입일자</span>
|
|
|
|
|
- <span id="joinDt" name="joinDt" class="bold" data-font="lato"></span>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li id="liJoinPath">
|
|
|
|
|
- <span class="t_span">가입경로</span>
|
|
|
|
|
- <span id="joinPath" name="joinPath" class="bold" data-font="lato"></span>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="btn_group_flex">
|
|
|
|
|
- <div>
|
|
|
|
|
- <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_LOGIN);">로그인 하기</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- //아이디찾기 결과 -->
|
|
|
|
|
- <!-- 회원정보로 아이디찾기 실패일경우 -->
|
|
|
|
|
- <div id="failCustId" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
- <div class="find_result clear">
|
|
|
|
|
- <div class="form_info">
|
|
|
|
|
- <span class="ico_content_none"></span>
|
|
|
|
|
- <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
|
|
- <p class="t_info mt10">
|
|
|
|
|
- 정확한 확인을 위해 휴대폰 인증/아이핀 인증을 통한<br>아이디 찾기를 진행해 주세요.
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="btn_group_flex">
|
|
|
|
|
- <div>
|
|
|
|
|
- <button type="button" class="btn btn_primary btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_JOIN_TYPE);">
|
|
|
|
|
- <span>회원가입</span>
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <!-- 임시비밀번호 발급 -->
|
|
|
|
|
+ <div class="form_wrap form_full">
|
|
|
|
|
+ <div id="sendEmailDiv" class="find_result clear" style="display: none;">
|
|
|
|
|
+ <div class="form_info">
|
|
|
|
|
+ <span class="ico_content_mail"></span>
|
|
|
|
|
+ <p>아래의 이메일로 임시비밀번호가 발급되었습니다.</p>
|
|
|
|
|
+ <p class="t_info mt10">
|
|
|
|
|
+ 로그인 시 비밀번호를 새로 설정하신 후 이용하실 수 있습니다.
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form_print_bar mt40">
|
|
|
|
|
+ <span id="sendEmail" class="c_primary bold" data-font="lato"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn_group_block btn_group_md ui_row">
|
|
|
|
|
+ <div class="ui_col_12">
|
|
|
|
|
+ <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_LOGIN);">
|
|
|
|
|
+ <span>로그인 하기</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div>
|
|
|
|
|
- <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_ID_FIND);">
|
|
|
|
|
- <span>다시 찾기</span>
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <!-- //임시비밀번호 발급 -->
|
|
|
|
|
+ <!-- 회원정보로 아이디, 비밀번호 찾기 실패일경우 -->
|
|
|
|
|
+ <div id="failCustInfoPwd" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
+ <div class="find_result clear">
|
|
|
|
|
+ <div class="form_info">
|
|
|
|
|
+ <span class="ico_content_none"></span>
|
|
|
|
|
+ <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
|
|
+ <p class="t_info mt10">
|
|
|
|
|
+ 정확한 확인을 위해 휴대폰 인증/아이핀 인증을 통한<br>아이디 찾기를 진행해 주세요.
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn_group_flex">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_primary btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_JOIN_TYPE);">
|
|
|
|
|
+ <span>회원가입</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_PWD_FIND);">
|
|
|
|
|
+ <span>다시 찾기</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- //회원정보로 아이디찾기 실패일경우 -->
|
|
|
|
|
- <!-- 휴대폰,아이핀 본인인증으로 아이디찾기 실패일경우 -->
|
|
|
|
|
- <div id="failAuthentication" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
- <div class="find_result clear">
|
|
|
|
|
- <div class="form_info">
|
|
|
|
|
- <span class="ico_content_none"></span>
|
|
|
|
|
- <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
|
|
- <p class="t_info mt10">
|
|
|
|
|
- <span class="c_primary">STYLE24의 새로운 가족이 되어 주세요!</span>
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="btn_group_flex">
|
|
|
|
|
- <div>
|
|
|
|
|
- <button type="button" class="btn btn_primary btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_JOIN_TYPE);">
|
|
|
|
|
- <span>회원가입</span>
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <!-- 회원정보로 아이디, 비밀번호 찾기 실패일경우 -->
|
|
|
|
|
+ <!-- 휴대폰,아이핀 본인인증으로 아이디, 비밀번호찾기 실패일경우 -->
|
|
|
|
|
+ <div id="failAuthenticationPwd" class="form_wrap form_full" style="display: none;">
|
|
|
|
|
+ <div class="find_result clear">
|
|
|
|
|
+ <div class="form_info">
|
|
|
|
|
+ <span class="ico_content_none"></span>
|
|
|
|
|
+ <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
|
|
+ <p class="t_info mt10">
|
|
|
|
|
+ <span class="c_primary">STYLE24의 새로운 가족이 되어 주세요!</span>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn_group_flex">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <button type="button" class="btn btn_primary btn_block" onclick="cfnGoToPage(_PAGE_CUSTOMER_JOIN_TYPE);">
|
|
|
|
|
+ <span>회원가입</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- //휴대폰,아이핀 본인인증으로 아이디, 비밀번호찾기 실패일경우 -->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- //비밀번호찾기 -->
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- //휴대폰,아이핀 본인인증으로 아이디찾기 실패일경우 -->
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|
|
|
<!-- ★ 컨텐츠 종료 -->
|
|
<!-- ★ 컨텐츠 종료 -->
|
|
@@ -276,6 +343,7 @@
|
|
|
const sEncData = [[${sEncData}]]; //인증 후 해당 페이지로 리다이렉트함
|
|
const sEncData = [[${sEncData}]]; //인증 후 해당 페이지로 리다이렉트함
|
|
|
const authMethod = [[${authMethod}]]; //인증 후 해당 페이지로 리다이렉트함
|
|
const authMethod = [[${authMethod}]]; //인증 후 해당 페이지로 리다이렉트함
|
|
|
const custParams = [[${custParams}]];
|
|
const custParams = [[${custParams}]];
|
|
|
|
|
+ const pageGb = [[${pageGb}]];
|
|
|
|
|
|
|
|
// 회원정보로 아이디 찾기
|
|
// 회원정보로 아이디 찾기
|
|
|
$('#btnCustIdConfirm').on('click', function() {
|
|
$('#btnCustIdConfirm').on('click', function() {
|
|
@@ -302,41 +370,11 @@
|
|
|
gagajf.ajaxJsonSubmit('/customer/id/find', jsonData, fnCustIdConfirmCallBack);
|
|
gagajf.ajaxJsonSubmit('/customer/id/find', jsonData, fnCustIdConfirmCallBack);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- $('#btnCustPwdConfirm').on('click',function() {
|
|
|
|
|
- let custInfo = $('#searchCustPwd').serializeObject();
|
|
|
|
|
-
|
|
|
|
|
- if(gagajf.isNull(custInfo.custId)) {
|
|
|
|
|
- mcxDialog.alert("아이디를 입력해주세요.");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (gagajf.isNull(custInfo.custNm)) {
|
|
|
|
|
- mcxDialog.alert('이름을 형식에 맞게 입력해주세요.');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (gagajf.isNull(custInfo.email)) {
|
|
|
|
|
- mcxDialog.alert('이메일을 입력하여 주세요.');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (!fnCheckValidationEmail(custInfo.email)) {
|
|
|
|
|
- mcxDialog.alert('이메일 형식에 맞게 입력해주세요.');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- custInfo.authMethod = 'custInfo';
|
|
|
|
|
- let jsonData = JSON.stringify(custInfo);
|
|
|
|
|
- //console.log('jsonData', jsonData);
|
|
|
|
|
- gagajf.ajaxJsonSubmit('/customer/password/find/custinfo', jsonData, fnCustPwdConfirmCallBack);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
// 아이디 찾기결과
|
|
// 아이디 찾기결과
|
|
|
var fnCustIdConfirmCallBack = function (result) {
|
|
var fnCustIdConfirmCallBack = function (result) {
|
|
|
$('#btnCustIdConfirm').hide();
|
|
$('#btnCustIdConfirm').hide();
|
|
|
- $('#searchDiv').hide();
|
|
|
|
|
- $('.regist_box').hide();
|
|
|
|
|
- $('.form_field').hide();
|
|
|
|
|
|
|
+ $('#searchCustIdDiv').hide();
|
|
|
|
|
+ $('#searchCustId').hide();
|
|
|
if (result.isFind) {
|
|
if (result.isFind) {
|
|
|
fnGetDisplayCustIdSucc(result.authMethod, result);
|
|
fnGetDisplayCustIdSucc(result.authMethod, result);
|
|
|
} else {
|
|
} else {
|
|
@@ -344,7 +382,7 @@
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- // 찾기성공
|
|
|
|
|
|
|
+ // 아이디 찾기성공
|
|
|
var fnGetDisplayCustIdSucc = function (authMethod, custInfo) {
|
|
var fnGetDisplayCustIdSucc = function (authMethod, custInfo) {
|
|
|
$('#resultId').text(custInfo.maskingCustId);
|
|
$('#resultId').text(custInfo.maskingCustId);
|
|
|
$('#joinDt').text(fnToDateFormat(custInfo.joinDt));
|
|
$('#joinDt').text(fnToDateFormat(custInfo.joinDt));
|
|
@@ -356,25 +394,51 @@
|
|
|
$('#succeedCustId').show();
|
|
$('#succeedCustId').show();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- // 찾기실패
|
|
|
|
|
|
|
+ // 아이디 찾기실패
|
|
|
var fnGetDisplayCustIdFail = function (authMethod) {
|
|
var fnGetDisplayCustIdFail = function (authMethod) {
|
|
|
- $('.registration_nav').hide();
|
|
|
|
|
if (authMethod === 'custInfo') {
|
|
if (authMethod === 'custInfo') {
|
|
|
- $('#failCustId').show();
|
|
|
|
|
|
|
+ $('#failCustInfoId').show();
|
|
|
}
|
|
}
|
|
|
if (authMethod === 'mobile' || authMethod === 'ipin') {
|
|
if (authMethod === 'mobile' || authMethod === 'ipin') {
|
|
|
- $('#failAuthentication').show();
|
|
|
|
|
|
|
+ $('#failAuthenticationId').show();
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ // 비밀번호 찾기
|
|
|
|
|
+ $('#btnCustPwdConfirm').on('click',function() {
|
|
|
|
|
+ let custInfo = $('#searchCustPwd').serializeObject();
|
|
|
|
|
+
|
|
|
|
|
+ if(gagajf.isNull(custInfo.custId)) {
|
|
|
|
|
+ mcxDialog.alert("아이디를 입력해주세요.");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (gagajf.isNull(custInfo.custNm)) {
|
|
|
|
|
+ mcxDialog.alert('이름을 형식에 맞게 입력해주세요.');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (gagajf.isNull(custInfo.email)) {
|
|
|
|
|
+ mcxDialog.alert('이메일을 입력하여 주세요.');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (!fnCheckValidationEmail(custInfo.email)) {
|
|
|
|
|
+ mcxDialog.alert('이메일 형식에 맞게 입력해주세요.');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ custInfo.authMethod = 'custInfo';
|
|
|
|
|
+ let jsonData = JSON.stringify(custInfo);
|
|
|
|
|
+ //console.log('jsonData', jsonData);
|
|
|
|
|
+ gagajf.ajaxJsonSubmit('/customer/password/find/custinfo', jsonData, fnCustPwdConfirmCallBack);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
// 찾기결과
|
|
// 찾기결과
|
|
|
var fnCustPwdConfirmCallBack = function (result) {
|
|
var fnCustPwdConfirmCallBack = function (result) {
|
|
|
- $('#btnInfoConfirm').hide();
|
|
|
|
|
- $('.form_field').hide();
|
|
|
|
|
- $('.registration_cont').hide();
|
|
|
|
|
- $('.registration_nav').hide();
|
|
|
|
|
- $('#searchDiv').hide();
|
|
|
|
|
|
|
+ $('#btnCustPwdConfirm').hide();
|
|
|
|
|
+ $('#searchPwdDiv').hide();
|
|
|
|
|
+ $('#searchCustPwd').hide();
|
|
|
if (result.isFind) {
|
|
if (result.isFind) {
|
|
|
fnGetDisplayCustPwdSucc(result.authMethod, result);
|
|
fnGetDisplayCustPwdSucc(result.authMethod, result);
|
|
|
} else {
|
|
} else {
|
|
@@ -395,13 +459,11 @@
|
|
|
|
|
|
|
|
// 찾기실패
|
|
// 찾기실패
|
|
|
var fnGetDisplayCustPwdFail = function (authMethod) {
|
|
var fnGetDisplayCustPwdFail = function (authMethod) {
|
|
|
- $('.form_head').hide();
|
|
|
|
|
- $('.registration_nav').hide();
|
|
|
|
|
if (authMethod === 'custInfo') {
|
|
if (authMethod === 'custInfo') {
|
|
|
- $('#failCustId').show();
|
|
|
|
|
|
|
+ $('#failCustInfoPwd').show();
|
|
|
}
|
|
}
|
|
|
if (authMethod === 'mobile' || authMethod === 'ipin') {
|
|
if (authMethod === 'mobile' || authMethod === 'ipin') {
|
|
|
- $('#failAuthentication').show();
|
|
|
|
|
|
|
+ $('#failAuthenticationPwd').show();
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -463,10 +525,16 @@
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- $(document).ready(function () {
|
|
|
|
|
- const $searchCustId = $('#searchCustId');
|
|
|
|
|
- const $searchCustPwd = $('#searchCustPwd');
|
|
|
|
|
|
|
+ $('.btn_close').on('click', function () {
|
|
|
|
|
+ let referrer = document.referrer;
|
|
|
|
|
+ if (referrer.indexOf('/customer/nice/certify/callback') > -1 ) {
|
|
|
|
|
+ cfnGoToPage(_PAGE_LOGIN);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ history.back(-1);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
|
|
+ $(document).ready(function () {
|
|
|
if (!gagajf.isNull(sEncData) && 'custId' === custParams) {
|
|
if (!gagajf.isNull(sEncData) && 'custId' === custParams) {
|
|
|
fnCustIdNiceCallBack(sEncData, authMethod);
|
|
fnCustIdNiceCallBack(sEncData, authMethod);
|
|
|
}
|
|
}
|
|
@@ -474,38 +542,24 @@
|
|
|
if (!gagajf.isNull(sEncData) && 'custPwd' === custParams) {
|
|
if (!gagajf.isNull(sEncData) && 'custPwd' === custParams) {
|
|
|
fnCustPwdNiceCallBack(sEncData, authMethod);
|
|
fnCustPwdNiceCallBack(sEncData, authMethod);
|
|
|
}
|
|
}
|
|
|
- let index = custParams !== 'custId' ? 1 : 0;
|
|
|
|
|
- // $searchCustId.hide();
|
|
|
|
|
- // $searchCustPwd.hide();
|
|
|
|
|
- //
|
|
|
|
|
- // if (index === 0 ) {
|
|
|
|
|
- // $searchCustId.show();
|
|
|
|
|
- // } else {
|
|
|
|
|
- // $searchCustPwd.show();
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ let index = pageGb !== 'custId' ? 1 : 0;
|
|
|
$('.registration_tap > .form_group').hide();
|
|
$('.registration_tap > .form_group').hide();
|
|
|
$('.registration_tap > .form_group').eq(index).show();
|
|
$('.registration_tap > .form_group').eq(index).show();
|
|
|
$(document).on('click','.registration_nav > ul > li',function(e){
|
|
$(document).on('click','.registration_nav > ul > li',function(e){
|
|
|
- // $searchCustId.hide();
|
|
|
|
|
- // $searchCustPwd.hide();
|
|
|
|
|
|
|
+ $('#searchCustId')[0].reset();
|
|
|
|
|
+ $('#searchCustPwd')[0].reset();
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
$('.registration_tap > .form_group').hide();
|
|
$('.registration_tap > .form_group').hide();
|
|
|
$('.registration_tap > .form_group').eq($(this).index()).show();
|
|
$('.registration_tap > .form_group').eq($(this).index()).show();
|
|
|
- // if ($(this).index() === 0) {
|
|
|
|
|
- // $searchCustId.show();
|
|
|
|
|
- // } else {
|
|
|
|
|
- // $searchCustPwd.show();
|
|
|
|
|
- // }
|
|
|
|
|
return false;
|
|
return false;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
/* 회원정보인증/휴대폰인증/아이핀인증_taps */
|
|
/* 회원정보인증/휴대폰인증/아이핀인증_taps */
|
|
|
$('.radio_tap > .form_group').hide();
|
|
$('.radio_tap > .form_group').hide();
|
|
|
- $('.radio_tap > .form_group').eq(index).show();
|
|
|
|
|
|
|
+ $('.radio_tap > .form_group').eq(0).show();
|
|
|
$('.radio_tap').each(function(){
|
|
$('.radio_tap').each(function(){
|
|
|
$(this).find('.form_group').hide();
|
|
$(this).find('.form_group').hide();
|
|
|
- $(this).find('.form_group').eq(index).show();
|
|
|
|
|
|
|
+ $(this).find('.form_group').eq(0).show();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
$(document).on('click','.radio_nav > ul > li',function(e){
|
|
$(document).on('click','.radio_nav > ul > li',function(e){
|