[BO] 마이페이지 내정보 수정

This commit is contained in:
kangsunlee
2025-06-25 14:41:40 +09:00
parent b2357e91f4
commit a57a3e1f3e
2 changed files with 6 additions and 6 deletions

View File

@@ -23,7 +23,7 @@
</div>
<div class="input-field">
<input type="password" id="password" placeholder="비밀번호 4자리를 입력해 주세요" name="password"
maxlength="4">
inputmode="numeric" pattern="[0-9]*" maxlength="4">
</div>
</div>
<div class="component-btns">

View File

@@ -107,7 +107,7 @@
<div class="d-flex">
<div class="component-input">
<div class="input-field">
<input type="number" id="phone1Id" th:value="${userInfo.phone1}" readonly>
<input type="number" id="phone1Id" name="phone1" th:value="${userInfo.phone1}" readonly>
</div>
</div>
@@ -333,13 +333,13 @@
// selectboxInstance1.setValue($('input[name=regionMainCode]').val());
},
confirmPopup() {
const currentName = document.querySelector('input[name="ownerName"]').value;
const currentName = document.querySelector('input[name="ownerName"]').value.trim();
// 사용자가 이름을 변경했을 경우에만 개인정보 변경 동의서 모달 띄우기
if (currentName !== ENV.initialOwnerName) {
if (currentName === '') { // 이름 비어있을 경우 유효성검사 실시
formControl.updateUserInfo();
} else if (currentName !== ENV.initialOwnerName) { // 이름이 변경됐을 경우 개인정보동의 모달창 띄우기
ENV.module.confirmPopup.open();
} else {
// 이름 그대로면 바로 저장
formControl.updateUserInfo();
}
},