@@ -121,8 +121,7 @@ function submit() {
}else if(!emailPattern.test(email)){
alert('請填寫正確的email格式');
return;
-
- }
+ };
if (phone == "") {
alert('請填寫連絡電話');
@@ -186,9 +186,12 @@ function submit() {
- if (email == "") {
+ if (email == null) {
alert('請填寫email');
+ }else if(!emailPattern.test(email)){
+ alert('請填寫正確的email格式');
+ return;
};
if (name == "") {