88 lines
4.9 KiB
Plaintext
88 lines
4.9 KiB
Plaintext
|
|
@using NP.Model.ENUM
|
||
|
|
@{
|
||
|
|
Layout = null;
|
||
|
|
var CP_CD = (ViewBag.result ?? "").Split(':')[0];
|
||
|
|
var TX_SEQ_NO = (ViewBag.result ?? "").Split(':')[1];
|
||
|
|
var RSLT_CD = (ViewBag.result ?? "").Split(':')[2];
|
||
|
|
var RSLT_MSG = (ViewBag.result ?? "").Split(':')[3];
|
||
|
|
var RSLT_NAME = (ViewBag.result ?? "").Split(':')[4];
|
||
|
|
var RSLT_BIRTHDAY = (ViewBag.result ?? "").Split(':')[5];
|
||
|
|
var RSLT_SEX_CD = (ViewBag.result ?? "").Split(':')[6];
|
||
|
|
var RSLT_NTV_FRNR_CD = (ViewBag.result ?? "").Split(':')[7];
|
||
|
|
var DI = (ViewBag.result ?? "").Split(':')[8];
|
||
|
|
var CI = (ViewBag.result ?? "").Split(':')[9];
|
||
|
|
var CI_UPDATE = (ViewBag.result ?? "").Split(':')[10];
|
||
|
|
var TEL_COM_CD = (ViewBag.result ?? "").Split(':')[11];
|
||
|
|
var TEL_NO = (ViewBag.result ?? "").Split(':')[12];
|
||
|
|
var RETURN_MSG = (ViewBag.result ?? "").Split(':')[13];
|
||
|
|
}
|
||
|
|
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
|
||
|
|
<script src="~/js/moment.js"></script>
|
||
|
|
<div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
$(document).ready(function () {
|
||
|
|
if ('@(ViewBag.ret)' == '0') {
|
||
|
|
if ('@(RSLT_CD)' == 'B000') {
|
||
|
|
@if (ViewBag.reason == "Join") {
|
||
|
|
<text>
|
||
|
|
$(opener.document).find("#mform").find("#User_username").val("@(RSLT_NAME)");
|
||
|
|
$(opener.document).find("#mform").find("#User_birthday").val("@(RSLT_BIRTHDAY)");
|
||
|
|
$(opener.document).find("#mform").find("#User_mobile").val("@(TEL_NO)");
|
||
|
|
$(opener.document).find("#mform").find("#User_di").val("@(DI)");
|
||
|
|
$(opener.document).find("#mform").find("#User_ci").val("@(CI)");
|
||
|
|
$(opener.document).find("#mform").find("#intval2").val(1);
|
||
|
|
$(opener.document).find("#mform").find("#User_jointype").val(0);
|
||
|
|
$(opener.document).find("#mform").find("#User_authplatform").val("@(AuthPlatform.Mobile.GetHashCode())");
|
||
|
|
$(opener.document).find("#mform").attr("action", "/Account/Join");
|
||
|
|
$(opener.document).find("#mform").submit();
|
||
|
|
self.close();
|
||
|
|
</text>
|
||
|
|
} else if (ViewBag.reason == "MobileNumberChange") {
|
||
|
|
<text>
|
||
|
|
if ("@(RSLT_NAME)" == $(opener.document).find("#mform").find("#username").val()) {
|
||
|
|
$(opener.document).find("#mform").find("#mobile").val("@(TEL_NO)".replaceAll("-", ""));
|
||
|
|
$(opener.document).find("#mform").find("#mobilestr").text("@(TEL_NO)".replaceAll("-", ""));
|
||
|
|
alert("인증완료");
|
||
|
|
} else {
|
||
|
|
$(opener.document).find("#mform").find("#mobile").val("");
|
||
|
|
$(opener.document).find("#mform").find("#mobilestr").text("");
|
||
|
|
alert("입력한 정보와 일치하지 않습니다.\n 재인증해주세요.");
|
||
|
|
}
|
||
|
|
self.close();
|
||
|
|
</text>
|
||
|
|
} else if (ViewBag.reason == "AuthPlatformChange") {
|
||
|
|
<text>
|
||
|
|
if ("@(RSLT_NAME)" == $(opener.document).find("#mform").find("#username").val()) {
|
||
|
|
$(opener.document).find("#mform").find("#authplatform").val("@(AuthPlatform.Mobile.GetHashCode())");
|
||
|
|
$(opener.document).find("#mform").find("#authPlatform_IPIN").hide();
|
||
|
|
$(opener.document).find("#mform").find("#authPlatform_Mobile").show();
|
||
|
|
$(opener.document).find("#mform").find("#authPlatform_Mobile_Name").text("휴대폰 인증");
|
||
|
|
$(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)");
|
||
|
|
$(opener.document).find("#mform").find("#di").val("@(DI)");
|
||
|
|
$(opener.document).find("#mform").find("#ci").val("@(CI)");
|
||
|
|
$(opener.document).find("#mform").find("#mobile").val("@(TEL_NO)".replaceAll("-", ""));
|
||
|
|
$(opener.document).find("#mform").find("#mobile").prop("readonly", true);
|
||
|
|
$(opener.document).find("#mform").find("#mobilestr").text("@(TEL_NO)".replaceAll("-", ""));
|
||
|
|
try {
|
||
|
|
$(opener.document).find("#mform").find("#txtbirthday").text(moment("@(RSLT_BIRTHDAY)").format('YYYY.MM.DD'));
|
||
|
|
} catch (error) {
|
||
|
|
}
|
||
|
|
alert("인증완료");
|
||
|
|
} else {
|
||
|
|
alert("입력한 정보와 일치하지 않습니다.\n 재인증해주세요.");
|
||
|
|
}
|
||
|
|
self.close();
|
||
|
|
</text>
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
alert("인증요청 실패 : " + "@(RSLT_MSG)");
|
||
|
|
self.close();
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
alert("인증결과 요청 실패 :" + "@(ViewBag.ret)");
|
||
|
|
self.close();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
</script>
|