|
@@ -133,7 +133,15 @@
|
|
|
<p id="failPhnno" class="t_err hide">휴대폰번호를 형식에 맞게 정확히 입력해주세요</p>
|
|
<p id="failPhnno" class="t_err hide">휴대폰번호를 형식에 맞게 정확히 입력해주세요</p>
|
|
|
<!-- //휴대폰번호 형식이 맞지 않을경우 -->
|
|
<!-- //휴대폰번호 형식이 맞지 않을경우 -->
|
|
|
<!-- 이미 가입되어있는 핸드폰번호일경우 -->
|
|
<!-- 이미 가입되어있는 핸드폰번호일경우 -->
|
|
|
- <p id="dupPhnno" class="t_err hide">I***D로 가입된 핸드폰 번호 입니다.</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 class="mt20">
|
|
<div class="mt20">
|
|
|
<button type="button" id="btnCellPhoneCertify" class="btn btn_default btn_sm">
|
|
<button type="button" id="btnCellPhoneCertify" class="btn btn_default btn_sm">
|
|
|
<span>휴대폰 인증</span>
|
|
<span>휴대폰 인증</span>
|
|
@@ -168,7 +176,6 @@
|
|
|
let custIdCheck = false;
|
|
let custIdCheck = false;
|
|
|
let passwdCheck = false;
|
|
let passwdCheck = false;
|
|
|
let emailCheck = false;
|
|
let emailCheck = false;
|
|
|
- let phoneCheck = false;
|
|
|
|
|
let authCheck = false;
|
|
let authCheck = false;
|
|
|
|
|
|
|
|
// 아이디 확인
|
|
// 아이디 확인
|
|
@@ -364,23 +371,6 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // 휴대폰 번호 입력에대한 결과
|
|
|
|
|
- var fnPhoneConfirmCallBack = function (result) {
|
|
|
|
|
- // const $cellPhnno = $('#cellPhnno');
|
|
|
|
|
- const $dupPhnno = $('#dupPhnno');
|
|
|
|
|
- if (result.isFind) { // 가입된 고객 정보가 있으면
|
|
|
|
|
- $dupPhnno.text(result.maskingCustId+'로 가입된 핸드폰 번호 입니다.');
|
|
|
|
|
- $dupPhnno.show();
|
|
|
|
|
- // $cellPhnno.text(result.cellPhnno);
|
|
|
|
|
- // $cellPhnno.show();
|
|
|
|
|
- phoneCheck = false;
|
|
|
|
|
- } else {
|
|
|
|
|
- $dupPhnno.hide();
|
|
|
|
|
- phoneCheck = true;
|
|
|
|
|
- }
|
|
|
|
|
- fnPossibleJoin();
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
//휴대폰 인증
|
|
//휴대폰 인증
|
|
|
$('#btnCellPhoneCertify').on('click', function () {
|
|
$('#btnCellPhoneCertify').on('click', function () {
|
|
@@ -399,16 +389,24 @@
|
|
|
|
|
|
|
|
// 본인인증 후 결과
|
|
// 본인인증 후 결과
|
|
|
var fnInfoConfirmCallBack = function (result) {
|
|
var fnInfoConfirmCallBack = function (result) {
|
|
|
- // const $cellPhnno = $('#cellPhnno');
|
|
|
|
|
|
|
+ const $cellPhnno = $('#cellPhnno');
|
|
|
const $dupPhnno = $('#dupPhnno');
|
|
const $dupPhnno = $('#dupPhnno');
|
|
|
|
|
+ const $dupPhnnoDiv = $('#dupPhnnoDiv');
|
|
|
|
|
+ const $btnCellPhoneCertify = $('#btnCellPhoneCertify');
|
|
|
|
|
+ $cellPhnno.val(result.cellPhnno);
|
|
|
|
|
+
|
|
|
if (result.isFind) { // 가입된 고객 정보가 있으면
|
|
if (result.isFind) { // 가입된 고객 정보가 있으면
|
|
|
$dupPhnno.text(result.maskingCustId+'로 가입된 이력이 있습니다.');
|
|
$dupPhnno.text(result.maskingCustId+'로 가입된 이력이 있습니다.');
|
|
|
$dupPhnno.show();
|
|
$dupPhnno.show();
|
|
|
- // $cellPhnno.text(result.cellPhnno);
|
|
|
|
|
- // $cellPhnno.show();
|
|
|
|
|
|
|
+ $dupPhnnoDiv.show();
|
|
|
|
|
+ $btnCellPhoneCertify.text('휴대폰 인증');
|
|
|
|
|
+ $btnCellPhoneCertify.attr('disabled', false);
|
|
|
authCheck = false;
|
|
authCheck = false;
|
|
|
} else {
|
|
} else {
|
|
|
$dupPhnno.hide();
|
|
$dupPhnno.hide();
|
|
|
|
|
+ $dupPhnnoDiv.hide();
|
|
|
|
|
+ $btnCellPhoneCertify.text('인증완료');
|
|
|
|
|
+ $btnCellPhoneCertify.attr('disabled', true);
|
|
|
authCheck = true;
|
|
authCheck = true;
|
|
|
}
|
|
}
|
|
|
fnPossibleJoin();
|
|
fnPossibleJoin();
|
|
@@ -435,7 +433,7 @@
|
|
|
// 가입 가능한지 확인
|
|
// 가입 가능한지 확인
|
|
|
var fnPossibleJoin = function () {
|
|
var fnPossibleJoin = function () {
|
|
|
const $btnJoin = $('#btnJoin');
|
|
const $btnJoin = $('#btnJoin');
|
|
|
- if (custIdCheck && passwdCheck && emailCheck && phoneCheck && authCheck ) {
|
|
|
|
|
|
|
+ if (custIdCheck && passwdCheck && emailCheck && authCheck ) {
|
|
|
$btnJoin.attr('disabled', false);
|
|
$btnJoin.attr('disabled', false);
|
|
|
} else {
|
|
} else {
|
|
|
$btnJoin.attr('disabled', true);
|
|
$btnJoin.attr('disabled', true);
|