From b1207889b465dd304cac523913774a7486e96a5f Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Tue, 11 Jun 2024 12:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/car/carApi.js | 4 ---- components/car/add-member-car.vue | 2 +- components/car/modify-car-num.vue | 2 +- pages/car/applyparking.vue | 12 ++++-------- pages/car/carDetail.vue | 4 ++-- 5 files changed, 8 insertions(+), 16 deletions(-) diff --git a/api/car/carApi.js b/api/car/carApi.js index d7afa23..e5f7fcd 100644 --- a/api/car/carApi.js +++ b/api/car/carApi.js @@ -55,10 +55,6 @@ export function queryAppOwnerCars(_objData) { if (res.statusCode == 200) { //将业主信息和房屋信息一起返回 let _cars = res.data.data; - if (_cars.length == 0) { - reject("业主没有车辆信息"); - return; - } resolve(_cars); } else { reject("查询车辆失败"); diff --git a/components/car/add-member-car.vue b/components/car/add-member-car.vue index 35dd2e2..6e3f8e9 100644 --- a/components/car/add-member-car.vue +++ b/components/car/add-member-car.vue @@ -63,7 +63,7 @@ } _that.showModel = false; - uni.$emit("loadData") + this.$emit("loadData",{}) }) }, cancel:function(){ diff --git a/components/car/modify-car-num.vue b/components/car/modify-car-num.vue index e982c11..2e7a9a3 100644 --- a/components/car/modify-car-num.vue +++ b/components/car/modify-car-num.vue @@ -57,7 +57,7 @@ } _that.showModel = false; - uni.$emit("loadData") + this.$emit("loadData",{}) }) }, cancel:function(){ diff --git a/pages/car/applyparking.vue b/pages/car/applyparking.vue index 5eb7cd2..dfd210d 100644 --- a/pages/car/applyparking.vue +++ b/pages/car/applyparking.vue @@ -2,15 +2,15 @@ 车牌号 - + 品牌 - + 颜色 - + 车辆类型 @@ -154,11 +154,7 @@ if (obj.carNum == "") { msg = "请填写车牌号"; - } else if (obj.carBrand == "") { - msg = "请填写车辆品牌"; - } else if (obj.carColor == "") { - msg = "请填写车辆颜色"; - }else if(obj.carType == ""){ + } else if(obj.carType == ""){ msg = "请选择车辆类型"; } if(msg != ""){ diff --git a/pages/car/carDetail.vue b/pages/car/carDetail.vue index cc14976..f32f317 100644 --- a/pages/car/carDetail.vue +++ b/pages/car/carDetail.vue @@ -52,8 +52,8 @@ - - + +