wkyy 3 jaren geleden
bovenliggende
commit
380c307804
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      pages/user/car/carAdd.vue

+ 6 - 6
pages/user/car/carAdd.vue

@@ -72,9 +72,9 @@
 					if(this.form.carNum.length == 1) {
 						this.$refs.uKeyboard.changeCarInputMode();
 					}
-					if(this.form.carNum.length == 8 && this.form.carNum.slice(1,3) == 'DD') {
+					if(this.form.carNum.length == 8) {
 						this.carName = '新能源车';
-					} else if (this.form.carNum.length == 7 && this.form.carNum.slice(1,3) != 'DD') {
+					} else if (this.form.carNum.length == 7) {
 						this.carName = '燃油车';
 					} else {
 						this.carName = '';
@@ -91,9 +91,9 @@
 				if(this.form.carNum.length == 0 && aaa) {
 					this.$refs.uKeyboard.changeCarInputMode();
 				}
-				if(this.form.carNum.length == 8 && this.form.carNum.slice(1,3) == 'DD') {
+				if(this.form.carNum.length == 8) {
 					this.carName = '新能源车';
-				} else if (this.form.carNum.length == 7 && this.form.carNum.slice(1,3) != 'DD') {
+				} else if (this.form.carNum.length == 7) {
 					this.carName = '燃油车';
 				} else {
 					this.carName = '';
@@ -113,9 +113,9 @@
 						if(this.form.id == carId) {			
 							this.form.carNum = this.carList[i].carNum;
 							this.form.defaultFlag = this.carList[i].defaultFlag;
-							if(this.form.carNum.length == 8 && this.form.carNum.slice(1,3) == 'DD') {
+							if(this.form.carNum.length == 8) {
 								this.carName = '新能源车';
-							} else if (this.form.carNum.length == 7 && this.form.carNum.slice(1,3) != 'DD') {
+							} else if (this.form.carNum.length == 7) {
 								this.carName = '燃油车';
 							} else {
 								this.carName = '';