添加删除我的车辆功能
This commit is contained in:
parent
59c72ced9b
commit
d8eb80efd9
@ -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', // 删除车辆
|
||||
}
|
||||
@ -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();
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user