添加删除我的车辆功能
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', // 临时车缴费订单交易查询
|
tempParkingOrderQuery: '/api/v2/wechat/smart-parking/temp-parking/trade_query', // 临时车缴费订单交易查询
|
||||||
|
|
||||||
parkList: '/api/v2/wechat/smart-parking/parking/list', // 停车场列表
|
parkList: '/api/v2/wechat/smart-parking/parking/list', // 停车场列表
|
||||||
|
|
||||||
|
deleteCar: '/api/v2/wechat/smart-parking/car/del', // 删除车辆
|
||||||
}
|
}
|
||||||
@ -73,18 +73,15 @@ export default {
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
const params = {
|
const params = {
|
||||||
user_id: uni.getStorageSync('userId'),
|
car_id: item.id
|
||||||
car_id: item.car_id
|
|
||||||
}
|
}
|
||||||
request(apiArr.deleteCar, "POST", params).then((res) => {
|
request(apiArr.deleteCar, "POST", params).then((res) => {
|
||||||
if (res.code == 200) {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '删除成功',
|
title: '删除成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.getCarList();
|
this.getCarList();
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user