jeter20131220 3 years ago
parent
commit
9399d5fd35
2 changed files with 5 additions and 3 deletions
  1. 1 2
      desktop11/goto.js
  2. 4 1
      mobile/script/goto.js

+ 1 - 2
desktop11/goto.js

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

+ 4 - 1
mobile/script/goto.js

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