Qukatie 1 неделя назад
Родитель
Сommit
5d9d60441d
2 измененных файлов с 0 добавлено и 16 удалено
  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) {
 					if (plate.length === 8) {
-						const energyType = plate.charAt(2)
 						const serial = plate.substring(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))) {
 						if (!(GREEN_PLATE_PATTERN.test(serial) && !/[IO]/.test(serial))) {
 							uni.showToast({
 							uni.showToast({
 								title: '请输入有效的车牌号!',
 								title: '请输入有效的车牌号!',

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

@@ -277,15 +277,7 @@
 
 
 					// 绿牌检查
 					// 绿牌检查
 					if (plate.length === 8) {
 					if (plate.length === 8) {
-						const energyType = plate.charAt(2)
 						const serial = plate.substring(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))) {
 						if (!(GREEN_PLATE_PATTERN.test(serial) && !/[IO]/.test(serial))) {
 							uni.showToast({
 							uni.showToast({
 								title: '请输入有效的车牌号!',
 								title: '请输入有效的车牌号!',