|
|
|
@ -10,9 +10,10 @@
|
|
|
|
|
|
|
|
|
|
if(s_time <= 0){
|
|
|
|
|
stop_timer();
|
|
|
|
|
|
|
|
|
|
// Swal.fire({ text: "다시 인증해주시기 바랍니다.", icon: 'warning', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
Swal.fire({text: '인증 시간이 만료 되었습니다. 다시 인증해 주시기 바랍니다.'}).then((result)=>{ history.back(); })
|
|
|
|
|
$("#divConfirm").hide();
|
|
|
|
|
$("#divReSend").show();
|
|
|
|
|
Swal.fire({ text: "인증 시간이 만료 되었습니다. 다시 인증해주시기 바랍니다.", icon: 'warning', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
// Swal.fire({text: '인증 시간이 만료 되었습니다. 다시 인증해 주시기 바랍니다.'}).then((result)=>{ history.back(); })
|
|
|
|
|
}else{
|
|
|
|
|
--s_time;
|
|
|
|
|
|
|
|
|
@ -23,6 +24,7 @@
|
|
|
|
|
|
|
|
|
|
// console.log('min:' + min + ' sec:' + sec + ' remain_time:' + remain_time);
|
|
|
|
|
$('#id_limit_time').text(remain_time);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -88,6 +90,58 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//회원가입을 위한 인증코드 발송
|
|
|
|
|
function ajax_send_join_sms() {
|
|
|
|
|
if (is_loading == false) {
|
|
|
|
|
is_loading = true;
|
|
|
|
|
|
|
|
|
|
var phone_num = $('#phone').val();
|
|
|
|
|
|
|
|
|
|
if(phone_num == ''){
|
|
|
|
|
Swal.fire({ text: "휴대폰 번호를 입력해주세요.", icon: 'warning', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
|
|
|
|
|
stop_timer();
|
|
|
|
|
}else{
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:'${URL_ROOT}/api/sms/send_sms.do?1=1',
|
|
|
|
|
type:'post',
|
|
|
|
|
data: {
|
|
|
|
|
"pt": 0
|
|
|
|
|
,"is_test":"N"
|
|
|
|
|
,"phone_num": phone_num
|
|
|
|
|
,"sms_use_cd_no": "SMS_USE_CODE_JOIN"
|
|
|
|
|
},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
error:function(request,status,error){
|
|
|
|
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
|
|
|
|
|
|
|
|
|
// stop_timer();
|
|
|
|
|
},
|
|
|
|
|
success:function(result){
|
|
|
|
|
var s_no = result.s_no;
|
|
|
|
|
|
|
|
|
|
if(result.RESULT_CODE == "401"){
|
|
|
|
|
alert(result.sms_msg);
|
|
|
|
|
// stop_timer();
|
|
|
|
|
}else{
|
|
|
|
|
if(s_no != ''){
|
|
|
|
|
// $('#s_no').val(s_no);
|
|
|
|
|
// start_timer();
|
|
|
|
|
// Swal.fire({ text: "발송되었습니다.", icon: 'success', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
location.href='${URL_ROOT}/m/login/view_join_member_01_confirm.do?s_no=' + s_no + "&name=" + $("#name").val() + "&phone=" + phone_num;
|
|
|
|
|
}else{
|
|
|
|
|
alert("code:s_no is null");
|
|
|
|
|
// stop_timer();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
is_loading = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//전화번호 변경을 위한 인증코드 발송
|
|
|
|
|
function ajax_send_change_phone(flag) {
|
|
|
|
|
|
|
|
|
@ -186,6 +240,55 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//회원가입을 위한 인증번호 확인
|
|
|
|
|
function ajax_confirm_join_sms() {
|
|
|
|
|
if (is_loading == false) {
|
|
|
|
|
is_loading = true;
|
|
|
|
|
|
|
|
|
|
var s_no = $('#s_no').val();
|
|
|
|
|
var phone_num = $('#phone').val();
|
|
|
|
|
var check_num = $('#check_num').val();
|
|
|
|
|
|
|
|
|
|
if(check_num == ''){
|
|
|
|
|
Swal.fire({ text: "인증번호를 입력해주세요.", icon: 'warning', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
is_loading = false;
|
|
|
|
|
}else{
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:'${URL_ROOT}/api/sms/confirm_sms.do?1=1',
|
|
|
|
|
type:'post',
|
|
|
|
|
data: {
|
|
|
|
|
"pt": 0
|
|
|
|
|
,"is_test":"N"
|
|
|
|
|
,"s_no": s_no
|
|
|
|
|
,"phone_num": phone_num
|
|
|
|
|
,"check_num": check_num
|
|
|
|
|
},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
error:function(request,status,error){
|
|
|
|
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
|
|
|
|
// stop_timer();
|
|
|
|
|
},
|
|
|
|
|
success:function(result){
|
|
|
|
|
console.log(result);
|
|
|
|
|
// var RESULT = result.RESULT;
|
|
|
|
|
// var RESULT_MSG = result.RESULT_MSG;
|
|
|
|
|
|
|
|
|
|
if(result.check_status == 'Y'){
|
|
|
|
|
// stop_timer();
|
|
|
|
|
// Swal.fire({ text: "인증되었습니다.", icon: 'success', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
location.href='${URL_ROOT}/m/login/view_join_member_02.do';
|
|
|
|
|
}else{
|
|
|
|
|
Swal.fire({ text: "인증에 실패했습니다.", icon: 'warning', showConfirmButton: false, timer: 1500 }); // success
|
|
|
|
|
is_loading = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $('#check_status').val(result.check_status);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//전화번호 변경을 위한 인증번호 확인
|
|
|
|
|
function ajax_confirm_change_phone_sms() {
|
|
|
|
|
if (is_loading == false) {
|
|
|
|
@ -317,7 +420,6 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//EMAIL 인증번호 발송
|
|
|
|
|
function ajax_find_pwd() {
|
|
|
|
|
var email = $('#email').val();
|
|
|
|
@ -411,7 +513,6 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function fncShowLoading() {
|
|
|
|
|
var width = 0;
|
|
|
|
|
var height = 0;
|
|
|
|
@ -441,6 +542,8 @@
|
|
|
|
|
$("#div_ajax_load_image").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function NotReload(){ if( (event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || (event.keyCode == 116) ) { event.keyCode = 0; event.cancelBubble = true; event.returnValue = false; } }
|
|
|
|
|
|
|
|
|
|
function wrapWindowByMask(){
|
|
|
|
|
//화면의 높이와 너비를 구한다.
|
|
|
|
|
var maskHeight = $(document).height();
|
|
|
|
|