[FO] front 개인정보변경 수정, 검색엔진 색인 방지를 위한 meta 태그 추가

This commit is contained in:
kangsunlee
2025-06-30 09:35:39 +09:00
parent 675b71789b
commit dcc42dacea
2 changed files with 15 additions and 17 deletions

View File

@@ -25,6 +25,7 @@
<meta property="og:image" th:content="${currentURI.ogImage}"/> <meta property="og:image" th:content="${currentURI.ogImage}"/>
<meta name="_csrf" th:content="${_csrf.token}"/> <meta name="_csrf" th:content="${_csrf.token}"/>
<meta name="_csrf_header" th:content="${_csrf.headerName}"/> <meta name="_csrf_header" th:content="${_csrf.headerName}"/>
<meta name="robots" content="noindex, nofollow">
<!--/* TODO : theme-color */--> <!--/* TODO : theme-color */-->

View File

@@ -333,24 +333,22 @@
// selectboxInstance1.setValue($('input[name=regionMainCode]').val()); // selectboxInstance1.setValue($('input[name=regionMainCode]').val());
}, },
confirmPopup() { confirmPopup() {
// 이름 변경 여부 처리
const currentName = document.querySelector('input[name="ownerName"]').value.trim(); const currentName = document.querySelector('input[name="ownerName"]').value.trim();
const isNameChanged = currentName !== ENV.initialOwnerName;
if (currentName === '') { // 이름 비어있을 경우 유효성검사 실시 formControl.updateUserInfo(isNameChanged);
formControl.updateUserInfo();
} else if (currentName !== ENV.initialOwnerName) { // 이름이 변경됐을 경우 개인정보동의 모달창 띄우기
ENV.module.confirmPopup.open();
} else {
formControl.updateUserInfo();
}
}, },
confirmPopupOk() { confirmPopupOk() {
ENV.module.confirmPopup.close(); ENV.module.confirmPopup.close();
setTimeout(function () { setTimeout(() => {
formControl.updateUserInfo(); ajaxUtil._alert('개인정보 변경이 완료되었습니다.', null, () => {
location.href = '/info';
});
}, 500); }, 500);
}, },
updateUserInfo() { updateUserInfo(showPopupIfValidNameChanged = false) {
const f = document.reqForm; const f = document.reqForm;
// // TODO 어쩔수 없이 이렇게 하는데..... 콤포넌트값 핸들링 방법 UX에서 지정하면 수정해야함. // // TODO 어쩔수 없이 이렇게 하는데..... 콤포넌트값 핸들링 방법 UX에서 지정하면 수정해야함.
@@ -386,14 +384,13 @@
obj, obj,
function (rstData, status) { function (rstData, status) {
if (rstData.code === 'SUCCESS') { if (rstData.code === 'SUCCESS') {
ajaxUtil._alert('개인정보 변경이 완료되었습니다.', null, function () { // 유효성 검사를 모두 통과한 후
/** if (showPopupIfValidNameChanged) {
* TODO // 이름이 바뀐 경우만 팝업
* 내정보에서만 들어온다는 가정하에서 back을 하게함 SB에는 내정보로 이동하게 되어 있음. ENV.module.confirmPopup.open();
*/ } else {
// history.back();
location.href = '/info'; location.href = '/info';
}); }
} else if (rstData.code === 'ERROR') { } else if (rstData.code === 'ERROR') {
ajaxUtil._alert('잠시 뒤에 다시 시도해 주세요.', null); ajaxUtil._alert('잠시 뒤에 다시 시도해 주세요.', null);
} }