|
|
@@ -25,7 +25,7 @@
|
|
|
<div class="tbl_wrap">
|
|
|
<div class="tbl_tit">
|
|
|
<h3>회원 정보</h3>
|
|
|
- <button type="button" id="btnNameCerify" class="btn_popup">
|
|
|
+ <button type="button" id="btnNameCertify" class="btn_popup">
|
|
|
<span>개명 본인인증</span>
|
|
|
</button>
|
|
|
</div>
|
|
|
@@ -212,6 +212,9 @@
|
|
|
</main>
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
+ const sEncData = [[${sEncData}]]; //인증 후 해당 페이지로 리다이렉트함
|
|
|
+ const authMethod = [[${authMethod}]]; //인증 후 해당 페이지로 리다이렉트함
|
|
|
+
|
|
|
let orgCustInfo;
|
|
|
let orgAccountInfo;
|
|
|
let accountCheck = false;
|
|
|
@@ -224,8 +227,8 @@
|
|
|
// 고객정보 데이터
|
|
|
var fnGetCustInfoCallback = function (custInfo) {
|
|
|
orgCustInfo = custInfo; // 원본 데이터저장 수정시 비교 작업
|
|
|
- $('#custModiFyForm td[name=custNm]').text(custInfo.custNm);
|
|
|
- $('#custModiFyForm td[name=birthYmd]').text(custInfo.birthYmd);
|
|
|
+ $('#custModiFyForm input[name=custNm]').val(custInfo.custNm);
|
|
|
+ $('#custModiFyForm input[name=birthYmd]').val(custInfo.birthYmd);
|
|
|
let custId = custInfo.custId;
|
|
|
if (custInfo.snsType === 'NV') {
|
|
|
custId = '네이버 간편가입회원'
|
|
|
@@ -465,10 +468,40 @@
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
+ };
|
|
|
+
|
|
|
+ // 나이스 본인인증 후 콜백
|
|
|
+ var fnNiceCallBack = function(encData) {
|
|
|
+ if (!gagajf.isNull(encData)) {
|
|
|
+ let custInfo = {};
|
|
|
+ custInfo.encData = encData;
|
|
|
+ let jsonData = JSON.stringify(custInfo);
|
|
|
+ gagajf.ajaxJsonSubmit('/mypage/customer/auth/update', jsonData, fnUpdateAuthInfoCallback);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ var fnUpdateAuthInfoCallback = function (result) {
|
|
|
+ if (result.isSuccess) {
|
|
|
+ fnGetCustInfo();
|
|
|
+ mcxDialog.alert("본인인증을 통해 정보가 변경 되었습니다.");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ mcxDialog.alert("실패하였습니다.<br/>고객센터에 문의하시 바랍니다.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ //개명 본인인증
|
|
|
+ $('#btnNameCertify').on('click', function () {
|
|
|
+ cfnOpenCellphoneCertify(_PAGE_MYPAGE_CUSTOMER_MODIFY+'?confirmYn=Y');
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
+ if (!gagajf.isNull(sEncData)) {
|
|
|
+ fnNiceCallBack(sEncData, authMethod);
|
|
|
+ }
|
|
|
+
|
|
|
$('#htopTitle').text('내 정보 관리');
|
|
|
|
|
|
// 회원(고객) 조회
|