Browse Source

修改车牌校验

Qukatie 1 week ago
parent
commit
5d9d60441d
2 changed files with 0 additions and 16 deletions
  1. 0 8
      pages/home/claim/details.vue
  2. 0 8
      pages/home/insurancePolicy/details.vue

+ 0 - 8
pages/home/claim/details.vue

@@ -356,15 +356,7 @@
 
 					// 绿牌检查
 					if (plate.length === 8) {
-						const energyType = plate.charAt(2)
 						const serial = plate.substring(2)
-						if (!((energyType === 'D' || energyType === 'F'))) {
-							uni.showToast({
-								title: '请输入有效的车牌号!',
-								icon: 'none'
-							});
-							return false
-						}
 						if (!(GREEN_PLATE_PATTERN.test(serial) && !/[IO]/.test(serial))) {
 							uni.showToast({
 								title: '请输入有效的车牌号!',

+ 0 - 8
pages/home/insurancePolicy/details.vue

@@ -277,15 +277,7 @@
 
 					// 绿牌检查
 					if (plate.length === 8) {
-						const energyType = plate.charAt(2)
 						const serial = plate.substring(2)
-						if (!((energyType === 'D' || energyType === 'F'))) {
-							uni.showToast({
-								title: '请输入有效的车牌号!',
-								icon: 'none'
-							});
-							return false
-						}
 						if (!(GREEN_PLATE_PATTERN.test(serial) && !/[IO]/.test(serial))) {
 							uni.showToast({
 								title: '请输入有效的车牌号!',