zhongtianhaoyuan 2 سال پیش
والد
کامیت
90aebd4a3a
1فایلهای تغییر یافته به همراه12 افزوده شده و 5 حذف شده
  1. 12 5
      pages/release/release.vue

+ 12 - 5
pages/release/release.vue

@@ -627,12 +627,19 @@
 					})
 					return true
 				}
-				if(this.dataObj.receiverIdcard&&!uni.$u.test.rangeLength(this.dataObj.receiverIdcard, [18, 18])){
+				// if(this.dataObj.receiverIdcard&&!uni.$u.test.rangeLength(this.dataObj.receiverIdcard, [18, 18])){
+				// 	this.$refs.uToast.show({
+				// 		type: 'error',
+				// 		message: "身份证号输入错误!",
+				// 	})
+				// 	return true
+				// }
+				if(this.dataObj.receiverIdcard&&this.dataObj.receiverIdcard.length !=18){
 					this.$refs.uToast.show({
-						type: 'error',
-						message: "身份证号输入错误!",
-					})
-					return true
+							type: 'error',
+							message: "身份证号输入错误!",
+						})
+						return true
 				}
 				if(this.dataObj.receiverCreditCode&&!uni.$u.test.rangeLength(this.dataObj.receiverCreditCode, [18, 18])){
 					this.$refs.uToast.show({