Explorar o código

车牌增删改查

John-Hong %!s(int64=2) %!d(string=hai) anos
pai
achega
afcf050dcd
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  1. 3 7
      src/pages/parkingFee/mixins/vehicleAddOrEdit.js

+ 3 - 7
src/pages/parkingFee/mixins/vehicleAddOrEdit.js

@@ -158,7 +158,7 @@ export default {
         vehicleNo: this.vehicleNumber,
       };
       let confirmType;
-      console.log(288, this.carInfo.id);
+      this.$md(params);
       if (this.carInfo.id) {
         params.id = this.carInfo.id;
         kipModifyMemberVehicles(
@@ -167,11 +167,6 @@ export default {
         )
           .then((result) => {
             uni.hideLoading();
-            console.log(292, result);
-
-            // result && result.code == '000000'
-            // return
-            // const result = resp.data;
             if (result && result.code == '000000') {
               if (result.data) {
                 Toast({
@@ -195,9 +190,10 @@ export default {
             });
           });
       } else {
+        console.log(198, uni.getStorageSync('handleUser'));
         kipAddMemberVehicles(
           params,
-          JSON.parse(uni.getStorageSync('handleUser'))
+          JSON.parse(uni.getStorageSync('handleUser') || '{}')
         )
           .then((result) => {
             uni.hideLoading();