John-Hong 2 년 전
부모
커밋
6edc9ab64a
3개의 변경된 파일38개의 추가작업 그리고 5개의 파일을 삭제
  1. 8 2
      src/pages/parkingFee/vehicleAddOrEdit.vue
  2. 26 3
      src/pages/parkingFee/vehicleManagement.vue
  3. 4 0
      src/styles/common.less

+ 8 - 2
src/pages/parkingFee/vehicleAddOrEdit.vue

@@ -276,6 +276,7 @@ export default {
     // 	}
     // },
     handleAddLicensePlateByKipMember() {
+      console.log('handleAddLicensePlateByKipMember执行');
       uni.showLoading({
         title: '加载中',
       });
@@ -284,12 +285,17 @@ export default {
         vehicleNo: this.vehicleNumber,
       };
       let confirmType;
+      console.log(288, this.carInfo.id);
       if (this.carInfo.id) {
         params.id = this.carInfo.id;
         kipModifyMemberVehicles(params, JSON.parse(uni.getStorageSync('handleUser')))
           .then((result) => {
             uni.hideLoading();
-            // console.log(resp);
+            console.log(292, result);
+
+
+            
+            // result && result.code == '000000'
             // return
             // const result = resp.data;
             if (result && result.code == '000000') {
@@ -329,7 +335,7 @@ export default {
         kipAddMemberVehicles(params, JSON.parse(uni.getStorageSync('handleUser')))
           .then((result) => {
             uni.hideLoading();
-            console.log(resp);
+            console.log(332, resp);
             // const result = resp.data;
             if (result && result.code == '000000') {
               this.sensorsClick('$ClickVehicleAddOrEdit', {

+ 26 - 3
src/pages/parkingFee/vehicleManagement.vue

@@ -120,6 +120,7 @@
 
 <script>
 import uniPop from '@/components/uni-popup/uni-popup.vue';
+import { Dialog } from 'vant';
 // const app = getApp()
 const app = {};
 import {
@@ -317,7 +318,21 @@ export default {
     toDelete(item) {
       this.activeId = item.id;
       this.activeCarno = item.vehicleNo;
-      this.deleteDialogSwitch = true;
+
+      Dialog.confirm({
+        title: '删除已绑定车牌',
+        message: '是否确认删除已经绑定车牌' + '\n' + this.activeCarno,
+        confirmButtonColor: '#333',
+      })
+        .then(() => {
+          // on confirm
+          this.doDelete();
+        })
+        .catch(() => {
+          // on cancel
+          this.cancelDelete();
+        });
+      // this.deleteDialogSwitch = true;
     },
     doDelete() {
       uni.showLoading({
@@ -335,8 +350,16 @@ export default {
               redirect_url: '',
             });
             if (result.data) {
-              this.deleteDialogSwitch = false;
-              this.deleteSuccessDialogSwitch = true;
+              // this.deleteDialogSwitch = false;
+              // this.deleteSuccessDialogSwitch = true;
+
+              Dialog.alert({
+                message: '删除成功',
+                confirmButtonColor: '#333',
+              }).then(() => {
+                // on confirm
+                // this.doDelete();
+              });
               // _this.$refs.deleteSuccessDialog.open()
               return;
             }

+ 4 - 0
src/styles/common.less

@@ -55,3 +55,7 @@ button{
   border: 1px solid transparent;  //自定义边框
   outline: none;    //消除默认点击蓝色边框效果
 }
+
+.dialog-content-text {
+    font-size: 30px;
+}