Преглед изворни кода

[微信小程序showToast][修改]:微信小程序showToast添加

tags/富茂链客2.2.8
meo пре 6 година
родитељ
комит
89cf2bb052
1 измењених фајлова са 12 додато и 18 уклоњено
  1. +12
    -18
      pages/passCar/passCar.js

+ 12
- 18
pages/passCar/passCar.js Прегледај датотеку

@@ -383,12 +383,12 @@ Page({
url: "/pages/phoneinput/phoneinput" url: "/pages/phoneinput/phoneinput"
}); });
}else{ }else{
// wx.showToast({
// title: err.errMsg,
// icon: 'none',
// duration: 2000,
// mask: false
// });
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
} }
}) })
} }
@@ -450,12 +450,12 @@ Page({
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
// wx.showToast({
// title: err.errMsg,
// icon: 'none',
// duration: 2000,
// mask: false
// });
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
}) })
}, },
@@ -470,12 +470,6 @@ Page({
.then(res => { .then(res => {
}) })
.catch(err => { .catch(err => {
// wx.showToast({
// title: err.message,
// icon: 'none',
// duration: 2000,
// mask: false
// });
}) })
}, },


Loading…
Откажи
Сачувај