Эх сурвалжийг харах

Merge pull request #396 from tron/lock/release-3.1.0/KIP-13638-2

feat(KIP-13638): 流程逻辑修复
Tron 1 жил өмнө
parent
commit
0886942cfd

+ 10 - 1
src/pages/parkingFeeV2/mixins/parkingFindCarFirst.js

@@ -347,7 +347,8 @@ export default {
       uni.setStorageSync('carList', [
         ...new Set([vehicleNumber, ...this.carList]),
       ].slice(0, 6));
-      const res = await getCarInformation(vehicleNumber)
+      try {
+        const res = await getCarInformation(vehicleNumber)
         console.log('resresres', res)
         if (res.data) {
             this.$nextTick(() => {
@@ -367,6 +368,14 @@ export default {
                 
               })
         }
+      } catch(err) {
+        if (/NOT_FOUND|PARKING_RECORD_NOT_FOUND/.test(err.code)) {
+            // 当前车辆没有入场
+            uni.showToast({ title: err.langMessage, duration: 2000, icon: 'fail' });
+            return
+          }
+      }
+      
       
     },
     // 历史车牌快速查询

+ 1 - 1
src/pages/parkingFeeV2/parkingFindCar.vue

@@ -111,7 +111,7 @@ export default {
       bottom:0;
       width:100%;
       height:218px;
-      background: yellow;
+      background: #F9f9ff;
   }
   .pay-success-title {
     height: 48px;