Merge branch 'develop' into dev
* develop: fixed ฟอร์มแจ้งปัญหาบังคับอีเมล
This commit is contained in:
commit
d2abd686e5
1 changed files with 8 additions and 10 deletions
|
|
@ -316,6 +316,9 @@ function onClose() {
|
||||||
</q-uploader>
|
</q-uploader>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<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="row col-12 q-col-gutter-sm">
|
||||||
<div class="col-xs-12 col-md-6 col-lg-6">
|
<div class="col-xs-12 col-md-6 col-lg-6">
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -326,10 +329,11 @@ function onClose() {
|
||||||
class="inputgreen"
|
class="inputgreen"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[
|
:rules="[
|
||||||
() =>
|
(val: string) => !!val || 'กรุณากรอกที่อยู่อีเมล',
|
||||||
!!formData.email ||
|
(val: string) => {
|
||||||
!!formData.phone ||
|
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||||
'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ',
|
return emailPattern.test(val) || 'กรุณากรอกที่อยู่อีเมลในรูปแบบที่ถูกต้อง';
|
||||||
|
}
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -341,12 +345,6 @@ function onClose() {
|
||||||
v-model="formData.phone"
|
v-model="formData.phone"
|
||||||
class="inputgreen"
|
class="inputgreen"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[
|
|
||||||
() =>
|
|
||||||
!!formData.email ||
|
|
||||||
!!formData.phone ||
|
|
||||||
'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ',
|
|
||||||
]"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue