Browse Source

fix(SCRM-4781): [DE][C端]临时停车,用户未绑定在场内的车牌,点击查询缴费,不应该带出车牌

john 1 year ago
parent
commit
47bdffae0a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/pages/parkingFeeV2/mixins/parkingFee.js

+ 6 - 2
src/pages/parkingFeeV2/mixins/parkingFee.js

@@ -811,6 +811,9 @@ export default {
       /*杭州*/
       /*杭州*/
       if (!isHZ(this.mallId)) return
       if (!isHZ(this.mallId)) return
       try {
       try {
+        if(this.$route.query.isLogin === 'loginDenied') {
+          throw new Error('设置默认参数')
+        }
         let vehicles = []
         let vehicles = []
         // 获取用户车场在停车辆数据集
         // 获取用户车场在停车辆数据集
         vehicles = await parkingRecord({
         vehicles = await parkingRecord({
@@ -820,7 +823,8 @@ export default {
         // 获取用户的所有车牌
         // 获取用户的所有车牌
         const userVehicles = await getVehicles(this.kipUserId)
         const userVehicles = await getVehicles(this.kipUserId)
         if (!vehicles.length) {
         if (!vehicles.length) {
-          vehicles = userVehicles.content
+          throw new Error('设置默认参数')
+          // vehicles = userVehicles.content
         }
         }
         if (vehicles.length) {
         if (vehicles.length) {
           // 判断是否存在无牌车
           // 判断是否存在无牌车
@@ -831,7 +835,7 @@ export default {
           this.numArr = vehicles[0].vehicleNo.split('');
           this.numArr = vehicles[0].vehicleNo.split('');
           this.vehicleNumber = vehicles[0].vehicleNo;
           this.vehicleNumber = vehicles[0].vehicleNo;
         } else {
         } else {
-          throw new Error('202')
+          throw new Error('设置默认参数')
         }
         }
       } catch (e) {
       } catch (e) {
         // 设置默认参数
         // 设置默认参数