|
@@ -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: '请输入有效的车牌号!',
|