John-Hong 2 年之前
父節點
當前提交
f036c5db59
共有 1 個文件被更改,包括 2 次插入2 次删除
  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