YNICTE/FO/Views/Account/CertOk3MOBI.cshtml

48 lines
2.2 KiB
Plaintext
Raw Normal View History

@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>
<div>
</div>
<script type="text/javascript">
$(document).ready(function () {
if ('@(ViewBag.ret)' == '0') {
if ('@(RSLT_CD)' == 'B000') {
$(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();
} else {
alert("인증요청 실패 : " + "@(RSLT_MSG)");
self.close();
}
} else {
alert("인증결과 요청 실패 :" + "@(ViewBag.ret)");
self.close();
}
});
</script>