John-Hong 2 жил өмнө
parent
commit
f036c5db59

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

@@ -106,8 +106,8 @@ export default {
       this.parkDiscountTotal.feeCopy -= this.discountTotal.fee;
     }
 
-    this.parkFee = JSON.parse(uni.getStorageSync('parkFee'));
-    console.log(616161, this.parkFee);
+    const parkFee = uni.getStorageSync('parkFee')
+    this.parkFee = parkFee ? JSON.parse(uni.getStorageSync('parkFee')) : {};
     this.parkInfoEntity = this.parkFee.parkInfoEntity;
     this.parkInfoEntity.useReduceTime = this.parkInfoEntity.useReduceTime
       ? this.parkInfoEntity.useReduceTime