|
|
@@ -36,7 +36,7 @@
|
|
|
<label class="input_label sr-only">아이디</label>
|
|
|
<div class="input_wrap form_full">
|
|
|
<input type="text" id="custId" name="custId" placeholder="아이디(4~12자)" class="form_control" required="required" data-valid-type="alphaNumeric" data-valid-name="아이디" minlength="4" maxlength="12"/>
|
|
|
- <span class="usable" style="display:block;"></span><!-- display:block / display:none 으로 control -->
|
|
|
+ <span class="usable" style="display:block;"></span>
|
|
|
</div>
|
|
|
<div id="dupCustIdDiv" class="help_block hide">
|
|
|
<p class="t_err">이미 가입된 아이디입니다.다른 아이디를 입력하여 주세요.</p>
|
|
|
@@ -125,32 +125,36 @@
|
|
|
</div>
|
|
|
<div class="form_field">
|
|
|
<label class="input_label sr-only">휴대폰번호</label>
|
|
|
- <div class="input_wrap form_full">
|
|
|
- <input type="text" id="cellPhnno" name="cellPhnno" placeholder="휴대폰 인증 해주세요." class="form_control" minlength="10" maxlength="11" required="required" data-valid-type="numeric" data-valid-name="휴대폰" readonly="readonly"/>
|
|
|
- <!-- case (휴대폰번호 형식이 맞지 않을경우,이미 가입되어있는 핸드폰번호일경우) -->
|
|
|
- <div class="help_block">
|
|
|
- <!-- 휴대폰번호 형식이 맞지 않을경우 -->
|
|
|
- <p id="failPhnno" class="t_err hide">휴대폰번호를 형식에 맞게 정확히 입력해주세요</p>
|
|
|
- <!-- //휴대폰번호 형식이 맞지 않을경우 -->
|
|
|
- <!-- 이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
- <p id="dupPhnno" class="t_err hide">I***D로 가입한 이력이 있습니다.</p>
|
|
|
- <div id="dupPhnnoDiv" class="mt20 hide">
|
|
|
- <button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_LOGIN);">
|
|
|
- <span>로그인</span>
|
|
|
- </button>
|
|
|
- <button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_CUSTOMER_ID_FIND);">
|
|
|
- <span>아이디 찾기</span>
|
|
|
- </button>
|
|
|
+ <div class="ui_row">
|
|
|
+ <div class="ui_col_9">
|
|
|
+ <div class="input_wrap">
|
|
|
+ <input type="text" id="cellPhnno" name="cellPhnno" placeholder="휴대폰 인증 해주세요." class="form_control" minlength="10" maxlength="11" required="required" data-valid-type="numeric" data-valid-name="휴대폰" readonly="readonly"/>
|
|
|
</div>
|
|
|
- <div class="mt20">
|
|
|
- <button type="button" id="btnCellPhoneCertify" class="btn btn_default btn_sm">
|
|
|
- <span>휴대폰 인증</span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <!-- //이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
</div>
|
|
|
- <!-- //case (휴대폰번호 형식이 맞지 않을경우,이미 가입되어있는 핸드폰번호일경우) -->
|
|
|
+ <div class="ui_col_3">
|
|
|
+ <button type="button" id="btnCellPhoneCertify" class="btn btn_dark btn_block">
|
|
|
+ <span>본인인증</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <!-- case (휴대폰번호 형식이 맞지 않을경우,이미 가입되어있는 핸드폰번호일경우) -->
|
|
|
+ <div class="help_block">
|
|
|
+ <!-- 휴대폰번호 형식이 맞지 않을경우 -->
|
|
|
+ <p id="failPhnno" class="t_err hide">휴대폰번호를 형식에 맞게 정확히 입력해주세요</p>
|
|
|
+ <!-- //휴대폰번호 형식이 맞지 않을경우 -->
|
|
|
+ <!-- 이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
+ <p id="dupPhnno" class="t_err hide">I***D로 가입한 이력이 있습니다.</p>
|
|
|
+ <div id="dupPhnnoDiv" class="mt20 hide">
|
|
|
+ <button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_LOGIN);">
|
|
|
+ <span>로그인</span>
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_CUSTOMER_ID_FIND);">
|
|
|
+ <span>아이디 찾기</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <!-- //이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
+ </div>
|
|
|
+ <!-- //case (휴대폰번호 형식이 맞지 않을경우,이미 가입되어있는 핸드폰번호일경우) -->
|
|
|
</div>
|
|
|
<div class="mt40">
|
|
|
<button type="button" id="btnJoin" class="btn btn_primary btn_block" disabled="disabled">
|
|
|
@@ -195,7 +199,7 @@
|
|
|
var fnIdConfirmCallBack = function (result) {
|
|
|
const $dupCustIdDiv = $('#dupCustIdDiv');
|
|
|
const $custId = $('#custId');
|
|
|
- const $usable = $('.usable');
|
|
|
+ const $usable = $('span > .usable');
|
|
|
|
|
|
if (result.isFind) { // 중복된 아이디가 존재
|
|
|
$custId.addClass('err');
|
|
|
@@ -348,30 +352,6 @@
|
|
|
fnPossibleJoin();
|
|
|
};
|
|
|
|
|
|
- // 휴대폰 확인
|
|
|
- $('#cellPhnno').on('blur', function () {
|
|
|
- const $failPhnno = $('#failPhnno');
|
|
|
- let cellPhnno = $(this).val();
|
|
|
- let validation;
|
|
|
-
|
|
|
- if (!gagajf.isNull(cellPhnno)) {
|
|
|
- if (cellPhnno.length > 9) {
|
|
|
- $failPhnno.hide();
|
|
|
- validation = true;
|
|
|
- } else {
|
|
|
- $failPhnno.show();
|
|
|
- validation = false;
|
|
|
- }
|
|
|
- if (validation) {
|
|
|
- let custInfo = {};
|
|
|
- custInfo.cellPhnno = cellPhnno;
|
|
|
- let jsonData = JSON.stringify(custInfo);
|
|
|
- gagajf.ajaxJsonSubmit('/customer/cellphnno/check', jsonData, fnPhoneConfirmCallBack);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
//휴대폰 인증
|
|
|
$('#btnCellPhoneCertify').on('click', function () {
|
|
|
cfnOpenCellphoneCertify();
|
|
|
@@ -396,27 +376,23 @@
|
|
|
$cellPhnno.val(result.cellPhnno);
|
|
|
|
|
|
if (result.isFind) { // 가입된 고객 정보가 있으면
|
|
|
- let msg = result.maskingCustId+"로 가입된 이력이 있습니다.";
|
|
|
+ let msg = '';
|
|
|
if (result.custStat === 'G104_30') {
|
|
|
- msg += "<br/> 탈퇴한 회원입니다. 탈퇴 후 60일 동안 재가입이 불가능합니다.";
|
|
|
- }
|
|
|
- if (result.custStat === 'G104_20') {
|
|
|
- msg += "<br/> 휴면회원입니다. 해당 아이디로 휴면해제하시면 되겠습니다.";
|
|
|
+ msg = "탈퇴한 회원입니다. 탈퇴 후 60일 동안 재가입이 불가능합니다.";
|
|
|
+ } else {
|
|
|
+ msg = result.maskingCustId+"로 가입된 이력이 있습니다.";
|
|
|
}
|
|
|
$dupPhnno.html(msg);
|
|
|
$dupPhnno.show();
|
|
|
$dupPhnnoDiv.show();
|
|
|
- $btnCellPhoneCertify.hide();
|
|
|
- $btnCellPhoneCertify.text('휴대폰 인증');
|
|
|
- $btnCellPhoneCertify.attr('disabled', false);
|
|
|
authCheck = false;
|
|
|
} else {
|
|
|
$dupPhnno.hide();
|
|
|
$dupPhnnoDiv.hide();
|
|
|
- $btnCellPhoneCertify.text('인증완료');
|
|
|
- $btnCellPhoneCertify.attr('disabled', true);
|
|
|
authCheck = true;
|
|
|
}
|
|
|
+ $btnCellPhoneCertify.find('span').text('인증완료');
|
|
|
+ $btnCellPhoneCertify.attr('disabled', true);
|
|
|
fnPossibleJoin();
|
|
|
};
|
|
|
|