John-Hong %!s(int64=2) %!d(string=hai) anos
pai
achega
f036c5db59
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/pages/parkingFee/parkingFeeDiscounts.vue

+ 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