diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index b23c8ff..1b0fc73 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -97,8 +97,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); @@ -204,8 +204,8 @@ Page({ } }).catch(err => { wx.showToast({ - title: err.message, - image: "../../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); @@ -230,8 +230,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); @@ -349,8 +349,8 @@ Page({ }); } else { wx.showToast({ - title: err.message, - image: "./../../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); @@ -429,7 +429,15 @@ Page({ //var payOrderId = "" + res.data.out_trade_no; //that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功 ///// end virtual pay - }); + }) + .catch(err => { + wx.showToast({ + title: err.errMsg, + icon: 'none', + duration: 2000, + mask: false + }); + }) } else { /** * @Meo diff --git a/pages/getphoneInfo/index.js b/pages/getphoneInfo/index.js index fdace69..bf54da3 100755 --- a/pages/getphoneInfo/index.js +++ b/pages/getphoneInfo/index.js @@ -42,8 +42,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); diff --git a/pages/getuserinfo/index.js b/pages/getuserinfo/index.js index cfc115a..e55fd9e 100755 --- a/pages/getuserinfo/index.js +++ b/pages/getuserinfo/index.js @@ -27,8 +27,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); diff --git a/pages/index/coupons/index.js b/pages/index/coupons/index.js index 7c32c4d..93eeab8 100644 --- a/pages/index/coupons/index.js +++ b/pages/index/coupons/index.js @@ -137,8 +137,8 @@ Component({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); diff --git a/pages/index/index.js b/pages/index/index.js index 6e1eabc..8e845bc 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -63,8 +63,8 @@ Page({ }); } else { wx.showToast({ - title: err.message, - image: "../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); diff --git a/pages/managelicenseplate/managelicenseplate.js b/pages/managelicenseplate/managelicenseplate.js index a38d6c7..bd347ee 100644 --- a/pages/managelicenseplate/managelicenseplate.js +++ b/pages/managelicenseplate/managelicenseplate.js @@ -21,8 +21,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); @@ -94,15 +94,14 @@ Page({ success: function() {} }); }) - .catch(error => { - console.log(error); - wx.showModal({ - title: "提示", - showCancel: false, - content: error.data.message, - success: function() {} + .catch(err => { + wx.showToast({ + title: err.errMsg, + icon: 'none', + duration: 2000, + mask: false }); - }); + }) }, jumpToAdd: function() { wx.navigateTo({ diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index 567cc0f..f3e744f 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -86,8 +86,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); @@ -117,6 +117,14 @@ Page({ staticGamedata: res.data }) }) + .catch(err => { + wx.showToast({ + title: err.errMsg, + icon: 'none', + duration: 2000, + mask: false + }); + }) }, /** * 发起支付 diff --git a/pages/orderquanma/index.js b/pages/orderquanma/index.js index 6c9720f..7a55fda 100644 --- a/pages/orderquanma/index.js +++ b/pages/orderquanma/index.js @@ -57,8 +57,8 @@ Page({ }) .catch(err => { wx.showToast({ - title: err.message, - image: "../../assets/img/fail.png", + title: err.errMsg, + icon: 'none', duration: 2000, mask: false }); diff --git a/pages/passCar/passCar.js b/pages/passCar/passCar.js index b869571..b0cd0fe 100644 --- a/pages/passCar/passCar.js +++ b/pages/passCar/passCar.js @@ -299,13 +299,13 @@ Page({ .then(res => { that.initUsrCarList(); }) - .catch(error => { - wx.showModal({ - content: error.message, - showCancel: false, - confirmText: "确定", - }) - console.log(error); + .catch(err => { + wx.showToast({ + title: err.errMsg, + icon: 'none', + duration: 2000, + mask: false + }); }) }, /**