Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m17s

* develop:
  fixed ฟอร์มแจ้งปัญหาบังคับอีเมล
This commit is contained in:
Warunee Tamkoo 2026-04-20 10:08:12 +07:00
commit 4f7a8c86bc

View file

@ -316,6 +316,9 @@ function onClose() {
</q-uploader>
</div>
<div class="col-12">
<div class="text-caption text-grey-7 q-mb-sm">
แลระบบจะตดตอกลบผานทางอเมลทานระบ กรณาตรวจสอบอเมลของทานเปนระยะ
</div>
<div class="row col-12 q-col-gutter-sm">
<div class="col-xs-12 col-md-6 col-lg-6">
<q-input
@ -326,10 +329,11 @@ function onClose() {
class="inputgreen"
hide-bottom-space
:rules="[
() =>
!!formData.email ||
!!formData.phone ||
'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ',
(val: string) => !!val || 'กรุณากรอกที่อยู่อีเมล',
(val: string) => {
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailPattern.test(val) || 'กรุณากรอกที่อยู่อีเมลในรูปแบบที่ถูกต้อง';
}
]"
/>
</div>
@ -341,12 +345,6 @@ function onClose() {
v-model="formData.phone"
class="inputgreen"
hide-bottom-space
:rules="[
() =>
!!formData.email ||
!!formData.phone ||
'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ',
]"
/>
</div>
</div>