[BO] 마이페이지 내정보 수정
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="input-field">
|
<div class="input-field">
|
||||||
<input type="password" id="password" placeholder="비밀번호 4자리를 입력해 주세요" name="password"
|
<input type="password" id="password" placeholder="비밀번호 4자리를 입력해 주세요" name="password"
|
||||||
maxlength="4">
|
inputmode="numeric" pattern="[0-9]*" maxlength="4">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="component-btns">
|
<div class="component-btns">
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<div class="component-input">
|
<div class="component-input">
|
||||||
<div class="input-field">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -333,13 +333,13 @@
|
|||||||
// selectboxInstance1.setValue($('input[name=regionMainCode]').val());
|
// selectboxInstance1.setValue($('input[name=regionMainCode]').val());
|
||||||
},
|
},
|
||||||
confirmPopup() {
|
confirmPopup() {
|
||||||
const currentName = document.querySelector('input[name="ownerName"]').value;
|
const currentName = document.querySelector('input[name="ownerName"]').value.trim();
|
||||||
|
|
||||||
// 사용자가 이름을 변경했을 경우에만 개인정보 변경 동의서 모달 띄우기
|
if (currentName === '') { // 이름 비어있을 경우 유효성검사 실시
|
||||||
if (currentName !== ENV.initialOwnerName) {
|
formControl.updateUserInfo();
|
||||||
|
} else if (currentName !== ENV.initialOwnerName) { // 이름이 변경됐을 경우 개인정보동의 모달창 띄우기
|
||||||
ENV.module.confirmPopup.open();
|
ENV.module.confirmPopup.open();
|
||||||
} else {
|
} else {
|
||||||
// 이름 그대로면 바로 저장
|
|
||||||
formControl.updateUserInfo();
|
formControl.updateUserInfo();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user