From 7b1f4d9813040c3c7a391e08ffca929d0807c63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=A3=BC?= Date: Fri, 18 Jul 2025 17:34:13 +0900 Subject: [PATCH] =?UTF-8?q?[FO]=20=EA=B0=80=EA=B5=AC=20=EC=97=B0=EB=9D=BD?= =?UTF-8?q?=EC=B2=98=20div=20d-flex=20=EB=95=8C=EB=AC=B8=EC=97=90=20?= =?UTF-8?q?=ED=8F=AC=EC=BB=A4=EC=8A=A4=EB=A5=BC=20tel2=20=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=20=EC=B2=98=EB=A6=AC=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/info/user/user.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/front/src/main/resources/templates/info/user/user.html b/front/src/main/resources/templates/info/user/user.html index 4fbc30a2..25205552 100644 --- a/front/src/main/resources/templates/info/user/user.html +++ b/front/src/main/resources/templates/info/user/user.html @@ -49,7 +49,7 @@
- + @@ -345,7 +345,7 @@ ENV.module.confirmPopup = document.querySelector(".confirmPopup").ui; const $selectTel = document.querySelector('#tel1Id'); - ENV.select.selectTel = new etUI.components.SelectBox(); + ENV.select.selectTel = $selectTel.ui; ENV.select.selectTel.core.init($selectTel, { selectItemCallback({selectValue, dataValue}){ document.querySelector('#tel1').value = dataValue; @@ -375,10 +375,14 @@ const errors = []; if (!form.ownerName.value) errors.push({field: 'ownerName', message: '이름을 입력해 주세요.'}); if (!form.ownerAge.value) errors.push({field: 'ownerAge', message: '연령을 입력해 주세요.'}); - if (form.ownerAge.value < 0 || form.ownerAge.value > 120) errors.push({field: 'ownerAge', message: '연령은 0세이상 120세 이하이어야 합니다.'}); + if (form.ownerAge.value < 0 || form.ownerAge.value > 120) errors.push({field: 'ownerAge', message: '연령은 0세이상 120세 이하이어야 합니다.'}); if (form.tel1.value || form.tel2.value || form.tel3.value) { if (!form.tel1.value || !form.tel2.value || !form.tel3.value) { - errors.push({ field: 'tel1', message: '가구 연락처를 모두 입력해 주세요.' }); + if (!form.tel1.value || !form.tel2.value) { + errors.push({ field: 'tel2', message: '가구 연락처를 모두 입력해 주세요.' }); + } else { + errors.push({ field: 'tel3', message: '가구 연락처를 모두 입력해 주세요.' }); + } } else { const telRegex = /^(0[2-7][0-9]?)$/; // 지역번호 (예: 02, 031, 032 등) if (!telRegex.test(form.tel1.value)) errors.push({ field: 'tel1', message: '가구 연락처를 입력해주세요' }); // 유효한 지역번호를 선택해 주세요.