Explorar el Código

把首页根据中文判断的逻辑,改成英文变量

john hace 1 año
padre
commit
72509fb3cb

+ 4 - 4
src/pages/parkingFee/mixins/parkingFee.js

@@ -57,7 +57,7 @@ export default {
       openId: null,
       options: null,
       preUrl: '',
-      tabbarActive: '手动缴费',
+      tabbarActive: 'manualPayment',
       supportUnlicensed: false, // 控制当前site,是否使用无牌车
       qrCodeHistory: '',
       currentTabType: this.carType,
@@ -249,8 +249,8 @@ export default {
       // debugger
       // const unlicensed = vehicles.filter(elm => elm.vehicleNo.indexOf('临') > -1)
       if (vehicles.length && vehicles[0].vehicleNo.indexOf('临') > -1) {
-        this.tabbarActiveEvent('无牌缴费');
-        // this.tabbarActive = '无牌缴费'
+        this.tabbarActiveEvent('paymentForUnregisteredVehicle');
+        // this.tabbarActive = 'paymentForUnregisteredVehicle'
       }
     },
     setLicensePlateList(arr) {
@@ -766,7 +766,7 @@ export default {
     },
     tabbarActiveEvent(name) {
       this.tabbarActive = name
-      if (name === '无牌缴费') {
+      if (name === 'paymentForUnregisteredVehicle') {
         this.$store.dispatch('order/unlicensedRule', (code) => {
 
           // CAR_NOT_FOUND 车场扫描道闸入口,发现无车

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

@@ -35,15 +35,15 @@
           <!-- 中控 -->
           <div class="parkingFee-bottom">
              <div style="height: 40px; background-color: #FBFCFF;" v-if="source === 'KIP'"></div>
-            <div :class="['parkingFee-tab', tabbarActive === '无牌缴费' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP'">
+            <div :class="['parkingFee-tab', tabbarActive === 'paymentForUnregisteredVehicle' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP'">
             <!-- <div style="height: 40px; background-color: #FBFCFF;" v-if="source === 'KIP' && !isAlipayClient"></div>
             <div :class="['parkingFee-tab', tabbarActive === '无牌缴费' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP' && !isAlipayClient"> -->
-              <div :class="['bar', tabbarActive === '手动缴费' && 'active']" @click="tabbarActiveEvent('手动缴费')">手动缴费</div>
-              <div :class="['bar', tabbarActive === '无牌缴费' && 'active']" @click="tabbarActiveEvent('无牌缴费')">无牌缴费</div>
+              <div :class="['bar', tabbarActive === 'manualPayment' && 'active']" @click="tabbarActiveEvent('manualPayment')">手动缴费</div>
+              <div :class="['bar', tabbarActive === 'paymentForUnregisteredVehicle' && 'active']" @click="tabbarActiveEvent('paymentForUnregisteredVehicle')">无牌缴费</div>
             </div>
 
             <!-- 手动缴费 -->
-            <div class="manual-box" v-if="tabbarActive === '手动缴费'">
+            <div class="manual-box" v-if="tabbarActive === 'manualPayment'">
               <div class="parkingFee-search">
                 <div class="search_tip_1" :style="{paddingTop: supportUnlicensed? '0': '32px'}">
                   <div class="title">车辆类型</div>

+ 4 - 4
src/pages/parkingFeeV2/mixins/parkingFee.js

@@ -51,7 +51,7 @@ export default {
       openId: null,
       options: null,
       preUrl: '',
-      tabbarActive: '手动缴费',
+      tabbarActive: 'manualPayment',
       supportUnlicensed: false, // 控制当前site,是否使用无牌车
       qrCodeHistory: '',
       isAlipayClient: isAlipayClient,
@@ -709,7 +709,7 @@ export default {
     },
     tabbarActiveEvent(name) {
       this.tabbarActive = name
-      if (name === '无牌缴费') {
+      if (name === 'paymentForUnregisteredVehicle') {
         this.$store.dispatch('order/unlicensedRule', (code) => {
 
           // CAR_NOT_FOUND 车场扫描道闸入口,发现无车
@@ -977,8 +977,8 @@ export default {
       // debugger
       // const unlicensed = vehicles.filter(elm => elm.vehicleNo.indexOf('临') > -1)
       if (vehicles.length && vehicles[0].vehicleNo.indexOf('临') > -1) {
-        this.tabbarActiveEvent('无牌缴费');
-        // this.tabbarActive = '无牌缴费'
+        this.tabbarActiveEvent('paymentForUnregisteredVehicle');
+        // this.tabbarActive = 'paymentForUnregisteredVehicle'
       }
     },
     setLicensePlateList(arr) {

+ 5 - 5
src/pages/parkingFeeV2/parkingFee.vue

@@ -34,16 +34,16 @@
           <!-- 中控 -->
           <div class="parkingFee-bottom">
             <div style="height: 40px; background-color: #FBFCFF;" v-if="source === 'KIP'"></div>
-            <div :class="['parkingFee-tab', tabbarActive === '无牌缴费' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP'">
+            <div :class="['parkingFee-tab', tabbarActive === 'paymentForUnregisteredVehicle' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP'">
             <!-- <div style="height: 40px; background-color: #FBFCFF;" v-if="source === 'KIP' && !isAlipayClient"></div> -->
-            <!-- <div :class="['parkingFee-tab', tabbarActive === '无牌缴费' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP' && !isAlipayClient">
+            <!-- <div :class="['parkingFee-tab', tabbarActive === 'paymentForUnregisteredVehicle' && 'unlicensed-box-bottom']" v-if="supportUnlicensed && source !== 'KIP' && !isAlipayClient">
                -->
-              <div :class="['bar', tabbarActive === '手动缴费' && 'active']" @click="tabbarActiveEvent('手动缴费')">手动缴费</div>
-              <div :class="['bar', tabbarActive === '无牌缴费' && 'active']" @click="tabbarActiveEvent('无牌缴费')">无牌缴费</div>
+              <div :class="['bar', tabbarActive === 'manualPayment' && 'active']" @click="tabbarActiveEvent('manualPayment')">手动缴费</div>
+              <div :class="['bar', tabbarActive === 'paymentForUnregisteredVehicle' && 'active']" @click="tabbarActiveEvent('paymentForUnregisteredVehicle')">无牌缴费</div>
             </div>
 
             <!-- 手动缴费 -->
-            <div class="manual-box" v-if="tabbarActive === '手动缴费'">
+            <div class="manual-box" v-if="tabbarActive === 'manualPayment'">
               <div class="parkingFee-search">
                 <div class="search_tip_1" :style="{paddingTop: supportUnlicensed? '0': '32px'}">
                   <div class="title">车辆类型</div>