From d8eb80efd9b94f0d8bf140a12b453a66b2493463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Sat, 6 Sep 2025 16:24:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4=E6=88=91?= =?UTF-8?q?=E7=9A=84=E8=BD=A6=E8=BE=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/park.js | 2 ++ packages/park/index/index.vue | 17 +++++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/api/park.js b/api/park.js index 3906fe5d..2415d07d 100644 --- a/api/park.js +++ b/api/park.js @@ -17,4 +17,6 @@ export const apiArr = { tempParkingOrderQuery: '/api/v2/wechat/smart-parking/temp-parking/trade_query', // 临时车缴费订单交易查询 parkList: '/api/v2/wechat/smart-parking/parking/list', // 停车场列表 + + deleteCar: '/api/v2/wechat/smart-parking/car/del', // 删除车辆 } \ No newline at end of file diff --git a/packages/park/index/index.vue b/packages/park/index/index.vue index d251c112..c4445c90 100644 --- a/packages/park/index/index.vue +++ b/packages/park/index/index.vue @@ -73,18 +73,15 @@ export default { success: (res) => { if (res.confirm) { const params = { - user_id: uni.getStorageSync('userId'), - car_id: item.car_id + car_id: item.id } request(apiArr.deleteCar, "POST", params).then((res) => { - if (res.code == 200) { - uni.showToast({ - title: '删除成功', - icon: 'success', - duration: 2000 - }); - this.getCarList(); - } + uni.showToast({ + title: '删除成功', + icon: 'success', + duration: 2000 + }); + this.getCarList(); }) } }