소스 검색

feat(KIP-11259): 修复绿叶点击后无法切到新能源车牌tab

lock.qiu@kerryprops.com 1 년 전
부모
커밋
5db6c0153d
2개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 1
      src/pages/parkingFee/mixins/parkingFee.js
  2. 2 2
      src/pages/parkingFee/parkingFee.vue

+ 6 - 1
src/pages/parkingFee/mixins/parkingFee.js

@@ -284,6 +284,7 @@ export default {
           this.numArr[6],
         ];
       }
+      this.vehicleNumber = this.numArr.join('');
     },
     // 获取停车场信息
     getParkInfo: async function () {
@@ -319,7 +320,11 @@ export default {
       //   this.carType = 1
       //   console.log()
       // }
-      if ( this.carType !== 1 && index === 7) return // KIP-11259
+      if ( index === 7) {
+        this.carType = 1
+        this.$refs['k-tab'].changeTab(this.carType)
+      }
+      // if ( this.carType !== 1 && index === 7) return // KIP-11259
       this.ind = index;
       this.active = index;
       if (index === 0) {

+ 2 - 2
src/pages/parkingFee/parkingFee.vue

@@ -46,7 +46,7 @@
                 <div class="search_tip_1" :style="{paddingTop: supportUnlicensed? '0': '32px'}">
                   <div class="title">车辆类型</div>
                   <!-- 删除-KIP-11259 -->
-                  <k-tab ref="k-tab" type="fill" @change="toggleType" :tabs="['普通车牌', '新能源', '特殊车牌']" />
+                  <k-tab ref="k-tab" type="fill" @change="toggleType" :tabs="['燃油车牌', '新能源', '特殊车牌']" />
                   <!-- KIP-11258 <k-tab :defaultCurrent="currentTabType" type="fill" @change="toggleType" :tabs="['燃油车牌', '新能源', '特殊车牌']" /> -->
                 </div>
                 <!-- <div class="search_tip">
@@ -84,7 +84,7 @@
                     {{ numArr[6] }}
                   </div>
                   <div class="li dashed green-active" @click="clickShowKeyboard(7)" :class="[active === 7 ? 'active' : '']" >
-                    <span v-if="numArr[7] && carType === 1">{{ numArr[7] }}</span>
+                    <span v-if="carType === 1">{{ numArr[7] }}</span>
                     <img v-else :src="require('./static/images/unlicensed/leaf.svg')">
                   </div>
                 </div>