핸드폰,이메일인증 수정
This commit is contained in:
parent
b17bd19f6d
commit
136816b433
@ -191,7 +191,7 @@ $(document).ready(function() {
|
||||
//핸드폰 번호가 변하는것 실시간 감지
|
||||
%>
|
||||
$("#mobileNo_1,#mobileNo_2,#mobileNo_3").on("propertychange change keyup paste input", function() {
|
||||
if($("#snsMobileNo").val() == $("#mobileNo_1").val()+ $("#mobileNo_2").val()+ $("#mobileNo_3").val())
|
||||
if($("#snsMobileNo").val() != "" && ($("#snsMobileNo").val() == $("#mobileNo_1").val()+ $("#mobileNo_2").val()+ $("#mobileNo_3").val()))
|
||||
{
|
||||
$("#mobileCertYn").val("Y");
|
||||
$("#mobileCertSendBtn").css("display","none");
|
||||
@ -209,7 +209,7 @@ $(document).ready(function() {
|
||||
//아이디가 변하는것 실시간 감지
|
||||
%>
|
||||
$("#email").on("propertychange change keyup paste input", function() {
|
||||
if($("#snsUserId").val() == $("#email").val())
|
||||
if($("#snsUserId").val() != "" && ($("#snsUserId").val() == $("#email").val()))
|
||||
{
|
||||
$("#emailCertYn").val("Y");
|
||||
$("#emailCertSendBtn").css("display","none");
|
||||
@ -262,13 +262,15 @@ function emailCert(){
|
||||
if(result.emailCertYn=="Y")
|
||||
{
|
||||
$("#emailCertYn").val("N");
|
||||
$("[id^='emailSuc']").css("display","none");
|
||||
$("[id^='emailVrfctNo']").css("display","inline-block");
|
||||
}
|
||||
if(result.emailCertYn=="N")
|
||||
{
|
||||
$("#emailCertYn").val("N");
|
||||
}
|
||||
$("[id^='emailSuc']").css("display","none");
|
||||
$("[id^='emailVrfctNo']").css("display","inline-block");
|
||||
}
|
||||
|
||||
},error : function(){
|
||||
}
|
||||
})
|
||||
|
||||
@ -58,20 +58,18 @@ $(document).ready(function() {
|
||||
//핸드폰 번호가 변하는것 실시간 감지
|
||||
%>
|
||||
$("#mobileNo_1,#mobileNo_2,#mobileNo_3").on("propertychange change keyup paste input", function() {
|
||||
console.log($("#userMobileNo").val());
|
||||
console.log($("#mobileNo_1").val()+ $("#mobileNo_2").val()+ $("#mobileNo_3").val());
|
||||
if($("#userMobileNo").val() == $("#mobileNo_1").val()+ $("#mobileNo_2").val()+ $("#mobileNo_3").val())
|
||||
{
|
||||
$("#mobileCertYn").val("Y");
|
||||
$("#mobileCertSendBtn").css("display","none");
|
||||
$("#mobileReSend").css("display","none");
|
||||
$("#mobileCertForm").css("display","none");
|
||||
$("#mobileSuc").css("display","");
|
||||
$("[id^='mobileSuc']").css("display","inline-block");
|
||||
$("[id^='mobileVrfctNo']").css("display","none");
|
||||
}else{
|
||||
$("#mobileCertYn").val("N");
|
||||
$("#mobileCertSendBtn").css("display","");
|
||||
$("#mobileReSend").css("display","");
|
||||
$("#mobileSuc").css("display","none");
|
||||
$("[id^='mobileSuc']").css("display","none");
|
||||
}
|
||||
});
|
||||
<%
|
||||
@ -81,14 +79,15 @@ $(document).ready(function() {
|
||||
if($("#userEmail").val() == $("#email").val())
|
||||
{
|
||||
$("#emailCertYn").val("Y");
|
||||
$("#emailSuc").css("display","");
|
||||
$("#emailCertSendBtn").css("display","none");
|
||||
$("#emailCertForm").css("display","none");
|
||||
|
||||
$("#emailReSend").css("display","none");
|
||||
$("[id^='emailSuc']").css("display","inline-block");
|
||||
$("[id^='emailVrfctNo']").css("display","none");
|
||||
}else{
|
||||
$("#emailCertYn").val("N");
|
||||
$("#emailSuc").css("display","none");
|
||||
$("#emailCertSendBtn").css("display","");
|
||||
$("#emailReSend").css("display","");
|
||||
$("[id^='emailSuc']").css("display","none");
|
||||
}
|
||||
});
|
||||
|
||||
@ -286,14 +285,13 @@ function emailCert(){
|
||||
if(result.emailCertYn=="Y")
|
||||
{
|
||||
$("#emailCertYn").val("N");
|
||||
$("#emailSuc").css("display","none");
|
||||
$("#emailCertForm").css("display","")
|
||||
$("[id^='emailSuc']").css("display","none");
|
||||
$("[id^='emailVrfctNo']").css("display","inline-block");
|
||||
}
|
||||
if(result.emailCertYn=="N")
|
||||
{
|
||||
$("#emailCertYn").val("N");
|
||||
$("#emailSuc").css("display","none");
|
||||
$("#emailCertForm").css("display","none")
|
||||
$("[id^='emailSuc']").css("display","none");
|
||||
}
|
||||
},error : function(){
|
||||
}
|
||||
@ -319,7 +317,10 @@ function certEmailCheck(){
|
||||
{
|
||||
alert("인증되었습니다.");
|
||||
$("#emailCertYn").val("Y");
|
||||
$("#emailSuc").css("display","");
|
||||
$("#emailCertSendBtn").css("display","none");
|
||||
$("#emailReSend").css("display","none");
|
||||
$("[id^='emailSuc']").css("display","inline-block");
|
||||
$("[id^='emailVrfctNo']").css("display","none");
|
||||
}else
|
||||
{
|
||||
alert("인증번호가 일치하지않습니다.");
|
||||
@ -355,9 +356,8 @@ function mobileCert(){
|
||||
success : function(result){
|
||||
alert("인증번호가 발송됐습니다.");
|
||||
$("#mobileCertYn").val("N");
|
||||
$("#mobileSuc").css("display","none");
|
||||
$("#mobileCertForm").css("display","")
|
||||
|
||||
$("[id^='mobileSuc']").css("display","none");
|
||||
$("[id^='mobileVrfctNo']").css("display","inline-block");
|
||||
},error : function(){
|
||||
}
|
||||
})
|
||||
@ -382,7 +382,10 @@ function certMobileCheck(){
|
||||
{
|
||||
alert("인증되었습니다.");
|
||||
$("#mobileCertYn").val("Y");
|
||||
$("#mobileSuc").css("display","");
|
||||
$("#mobileCertSendBtn").css("display","none");
|
||||
$("#mobileReSend").css("display","none");
|
||||
$("[id^='mobileSuc']").css("display","inline-block");
|
||||
$("[id^='mobileVrfctNo']").css("display","none");
|
||||
}else{
|
||||
alert("인증번호가 일치하지않습니다.");
|
||||
}
|
||||
@ -591,10 +594,11 @@ function snsUnlink(snsId){
|
||||
<button type="button" class="btn-color" id="mobileCertSendBtn" name="mobileCertSendBtn" style="display:none;" onclick="mobileCert();">인증하기</button>
|
||||
<button type="button" class="btn-black" id="mobileReSend" style="display:none;" onclick="mobileCert();">재전송</button>
|
||||
</div>
|
||||
<div class="row" id="mobileCertForm" style="display:none;">
|
||||
<input class="form-control cer" type="text" id='mobileVrfctNo' name='mobileVrfctNo' placeholder=" SMS로 발송된 인증번호를 입력하세요"/>
|
||||
<button type="button" class="btn-gray" onclick='certMobileCheck();'>확인</button>
|
||||
<div class="row" id="mobileCertForm">
|
||||
<input class="form-control cer" type="text" style="display:none;" id='mobileVrfctNo' name='mobileVrfctNo' placeholder=" SMS로 발송된 인증번호를 입력하세요"/>
|
||||
<button type="button" class="btn-gray" style="display:none;" id='mobileVrfctNoBtn' onclick='certMobileCheck();'>확인</button>
|
||||
<span id="mobileSuc" class="suc">인증이 완료되었습니다.</span>
|
||||
<span id="mobileSuc-chk" class="chk-suc"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -607,10 +611,11 @@ function snsUnlink(snsId){
|
||||
<button type="button" class="btn-color" id="emailCertSendBtn" name="emailCertSendBtn" style="display:none;" onclick="emailCert();">인증하기</button>
|
||||
<button type="button" class="btn-black" id="emailReSend" style="display:none;" onclick="emailCert();">재전송</button>
|
||||
</div>
|
||||
<div class="row" id="emailCertForm" style="display:none;">
|
||||
<input class="form-control cer" type="text" id='emailVrfctNo' name='emailVrfctNo' placeholder=" 이메일로 발송된 인증번호를 입력하세요"/>
|
||||
<button type="button" class="btn-gray" onclick='certEmailCheck()'>확인</button>
|
||||
<div class="row" id="emailCertForm">
|
||||
<input class="form-control cer" type="text" id='emailVrfctNo' style="display:none;"name='emailVrfctNo' placeholder=" 이메일로 발송된 인증번호를 입력하세요"/>
|
||||
<button type="button" class="btn-gray" id='emailVrfctNoBtn' style="display:none;" onclick='certEmailCheck()'>확인</button>
|
||||
<span id="emailSuc" class="suc">인증이 완료되었습니다.</span>
|
||||
<span id="emailSuc-chk" class="chk-suc"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user