Browse Source

去掉手机号验证

twt 1 month ago
parent
commit
64d797df89
1 changed files with 9 additions and 2 deletions
  1. 9 2
      pages/wyCar/apply.vue

+ 9 - 2
pages/wyCar/apply.vue

@@ -134,7 +134,7 @@
 				}
 				this.plateNumber=this.plateNumber.toUpperCase()
 				 console.log(this.plateNumber)
-				var reg = /^1[3|4|5|7|8][0-9]\d{8}$/;
+				/* var reg = /^1[3|4|5|7|8|9][0-9]\d{8}$/;
 				if(reg.test(this.mobilePhone) == false ){
 				    console.log("手机号码格式不正确");
 				     uni.showToast({
@@ -143,8 +143,15 @@
 				     	duration: 3000
 				     });
 				     return false;   
+				} */
+				if(this.mobilePhone.length!=11){
+					uni.showToast({
+						title: '请输入正确的手机号',
+						icon: 'none',
+						duration: 3000
+					});
+					return false;  
 				}
-				
 				if(!this.mobilePhone){
 					uni.showToast({
 						title: '请输入手机号',