jeter20131220 3 سال پیش
والد
کامیت
d018131a2d
3فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 1 1
      desktop11/goto.js
  2. 5 5
      mobile/index.html
  3. 1 1
      mobile/script/goto.js

+ 1 - 1
desktop11/goto.js

@@ -129,7 +129,7 @@ $(document).ready(function () {
 
   function IsPhone(phone) {
 
-    var regex = /^[09]{2}[0-9]{8}$/;;
+    var regex = /^[09]{2}[0-9]{8}$/;
 
     if (!regex.test(phone)) {
 

+ 5 - 5
mobile/index.html

@@ -330,7 +330,7 @@
         <form class="contact-form1">
             <div id="contact-form">
                 <select name="loc" id="location" required>
-                    <option value="地區" disabled selected="selected">地區</option>
+                    <option value="" disabled selected="selected">地區</option>
                     <option class="option" value="type">基隆市</option>
                     <option class="option" value="type">台北市</option>
                     <option class="option" value="type">新北市</option>
@@ -354,7 +354,7 @@
 
                 </select>
                 <select name="h_class" id="type" required>
-                    <option value="房屋類型" disabled selected="selected">房屋類型</option>
+                    <option value="" disabled selected="selected">房屋類型</option>
                     <option class="option" value="type">預售屋</option>
                     <option class="option" value="type">中古屋</option>
                     <option class="option" value="type">新成屋</option>
@@ -362,7 +362,7 @@
                     <option class="option" value="type">自地自建</option>
                 </select>
                 <select name="type" id="modal" required>
-                    <option value="modal" disabled selected="selected">房屋型態</option>
+                    <option value="" disabled selected="selected">房屋型態</option>
                     <option class="option" value="type">透天</option>
                     <option class="option" value="type">電梯華廈</option>
                     <option class="option" value="type">公寓</option>
@@ -372,7 +372,7 @@
                     <option class="option" value="type">其他</option>
                 </select>
                 <select name="budget" id="budget" required>
-                    <option value="裝修預算" disabled selected="selected">裝修預算</option>
+                    <option value="" disabled selected="selected">裝修預算</option>
                     <option class="option" value="type">50~100萬</option>
                     <option class="option" value="type">100~200萬</option>
                     <option class="option" value="type">200~300萬</option>
@@ -406,7 +406,7 @@
                     <option class="option" value="8">8衛</option>
                 </select>
                 <select name="style" id="style" required>
-                    <option value="風格類型" disabled selected="selected">風格類型</option>
+                    <option value="" disabled selected="selected">風格類型</option>
                     <option class="option" value="type">現代風</option>
                     <option class="option" value="type">鄉村風</option>
                     <option class="option" value="type">古典風</option>

+ 1 - 1
mobile/script/goto.js

@@ -109,7 +109,7 @@ $(document).ready(function () {
 
   function IsPhone(phone) {
 
-    var regex = /^[0-9]+$/;
+    var regex = /^[09]{2}[0-9]{8}$/;
 
     if (!regex.test(phone)) {