124 lines
5.5 KiB
Plaintext
124 lines
5.5 KiB
Plaintext
|
|
@model NP.Model.VMUser
|
||
|
|
@{
|
||
|
|
var _method = ViewData["bindmethod"].ToString();
|
||
|
|
}
|
||
|
|
|
||
|
|
<div id="mobilechk" class="mobilechk" style="position: fixed; z-index: 5; background-color: #282828; opacity: 5; left: 0; top: 0; right: 0; bottom: 0; display: none;">
|
||
|
|
<div class="mobilechk" style="position: fixed; z-index: 6; background-color: #ddd; left: 50%; width: 50%; text-align: left; margin-left: -25%; top: 30%; padding: 30px 30px; border-radius: 5px; font-size: 18px; display: none;">
|
||
|
|
<div>
|
||
|
|
<div>
|
||
|
|
<div class="">
|
||
|
|
<h4><i class="fa fa-bars"></i> 본인 인증</h4>
|
||
|
|
<div class="">
|
||
|
|
<div id="boxassignnewdata">
|
||
|
|
<p class="clspNon" style="padding-bottom:10px;">사용자 IP : <span id="ipaddress"></span></p>
|
||
|
|
<p class="clspNon" style="padding-bottom:10px;">인증요청한 휴대폰번호 : <span id="boxmobile"></span></p>
|
||
|
|
<p class="clspNon" style="padding-top:10px;">휴대폰으로 전송된 인증번호 6자리를 입력하신 후 확인버튼을 눌러주세요.</p>
|
||
|
|
<div class="clspInput" style="padding-bottom:10px;">
|
||
|
|
<input type="text" class="int nocomma" style="width:auto;" maxlength="6" id="mobile_lakey" name="lakey" placeholder="인증번호 입력" />
|
||
|
|
<input type="button" value="재전송" onclick="resendlakey()" />
|
||
|
|
</div>
|
||
|
|
<div class="">
|
||
|
|
<span id="lblrtime">(남은 시간 0분 00초)</span>
|
||
|
|
<input type="button" value="시간연장" onclick="pluslearnauthtime()" />
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<br />
|
||
|
|
<div class="" style="text-align:center">
|
||
|
|
<input type="button" value="확인" onclick="chklakey()" class="btn btn-find btn-info btn-sm" />
|
||
|
|
<input type="button" value="닫기" onclick="mobilechkclose()" class="btn btn-find btn-info btn-sm" />
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script>
|
||
|
|
$(document).ready(function () {
|
||
|
|
$("#mobile_lakey").keydown(function (key) {
|
||
|
|
if (key.keyCode == 13) {
|
||
|
|
setTimeout(function () {
|
||
|
|
chklakey();
|
||
|
|
}, 500);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|
||
|
|
var _vd_tm1;
|
||
|
|
var _vd_tmsec;
|
||
|
|
function mobilechkclose() {
|
||
|
|
clearInterval(_vd_tm1);
|
||
|
|
$(".mobilechk").slideUp("fast");
|
||
|
|
}
|
||
|
|
var mobile;
|
||
|
|
function mobilechkview() {
|
||
|
|
if ($("#boxmobile").html() != "") {
|
||
|
|
mobile = $("#boxmobile").html();
|
||
|
|
}
|
||
|
|
//if ($("#addstringval").val() != "") {
|
||
|
|
// mobile = $("#addstringval").val();
|
||
|
|
//}
|
||
|
|
$("#boxmobile").html(mobile);
|
||
|
|
$(".mobilechk").slideDown("fast");
|
||
|
|
clearInterval(_vd_tm1);
|
||
|
|
_vd_tmsec = 180;
|
||
|
|
_vd_tm1 = setInterval(sendlatimer, 1000);
|
||
|
|
}
|
||
|
|
function resendlakey() {
|
||
|
|
$("#lblrtime").text("(남은 시간 3분 00초)");
|
||
|
|
clearInterval(_vd_tm1);
|
||
|
|
_vd_tmsec = 180;
|
||
|
|
_vd_tm1 = setInterval(sendlatimer, 1000);
|
||
|
|
$('#xxx').html("인증번호를 재전송하였습니다.");
|
||
|
|
$(".xxx").show();
|
||
|
|
capp("/aocommon/sendlakey", { mobile: mobile }, "sendkey");
|
||
|
|
}
|
||
|
|
function sendlatimer() {
|
||
|
|
_vd_tmsec--;
|
||
|
|
if (_vd_tmsec < 1) {
|
||
|
|
clearInterval(_vd_tm1);
|
||
|
|
$('#xxx').html("유효시간이 만료되었습니다.<br/>창을 닫고 다시 진행해주세요.");
|
||
|
|
$(".xxx").show();
|
||
|
|
mobilechkclose();
|
||
|
|
}
|
||
|
|
if (_vd_tmsec > 59) {
|
||
|
|
$("#lblrtime").text("(남은 시간 " + (parseInt(_vd_tmsec / 60)) + "분 " + (_vd_tmsec % 60) + "초)");
|
||
|
|
} else {
|
||
|
|
$("#lblrtime").text("(남은 시간 " + (_vd_tmsec) + "초)");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var authno = 0;
|
||
|
|
function pluslearnauthtime() {
|
||
|
|
clearInterval(_vd_tm1);
|
||
|
|
_vd_tmsec = 180;
|
||
|
|
_vd_tm1 = setInterval(sendlatimer, 1000);
|
||
|
|
capp("/aocommon/extendlakey", { authno: authno }, "extlakey");
|
||
|
|
}
|
||
|
|
function extlakey() {
|
||
|
|
$('#xxx').html("인증시간 연장");
|
||
|
|
$(".xxx").show();
|
||
|
|
}
|
||
|
|
function sendkey() {
|
||
|
|
if (capResult.obj > 0) {
|
||
|
|
//msg("인증코드 발송");
|
||
|
|
authno = capResult.obj;
|
||
|
|
mobilechkview();
|
||
|
|
} else if (capResult.code == -1) {
|
||
|
|
$('#xxx').html("휴대폰번호를 번호로 등록한 회원이 두명이상입니다.<br/>운영자에게 문의해주시기 바랍니다.");
|
||
|
|
$(".xxx").show();
|
||
|
|
} else if (capResult.code == -2) {
|
||
|
|
$('#xxx').html("해당 번호로 등록한 회원이 없습니다.");
|
||
|
|
$(".xxx").show();
|
||
|
|
}else {
|
||
|
|
$('#xxx').html("발송실패, 인증코드를 재전송해주세요.");
|
||
|
|
$(".xxx").show();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function chklakey() {
|
||
|
|
if ($("#mobile_lakey").val() == "") {
|
||
|
|
focus("mobile_lakey");
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
capp("/aocommon/chklakey", { lakey: $("#mobile_lakey").val(), authno: authno }, "@(_method)");
|
||
|
|
}
|
||
|
|
</script>
|