@@ -163,9 +163,26 @@ Page({
// },
method: 'POST',
success: function (res) {
- console.log("删除车辆成功");
- console.info(res)
- that.onShow()
+ console.info(res)
+ if(res.data.code==200){
+ console.log("删除车辆成功");
+ that.onShow()
+ }else{
+ wx.showModal({
+ title: '提示',
+ content: res.data.msg,
+ showCancel: false,
+ complete: (res) => {
+ if (res.cancel) {
+
+ }
+ if (res.confirm) {
+ })
// that.setData({
// userCarList: res.data
// })