@@ -97,8 +97,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -204,8 +204,8 @@ Page({ | |||||
} | } | ||||
}).catch(err => { | }).catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -230,8 +230,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -349,8 +349,8 @@ Page({ | |||||
}); | }); | ||||
} else { | } else { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "./../../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -429,7 +429,15 @@ Page({ | |||||
//var payOrderId = "" + res.data.out_trade_no; | //var payOrderId = "" + res.data.out_trade_no; | ||||
//that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功 | //that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功 | ||||
///// end virtual pay | ///// end virtual pay | ||||
}); | |||||
}) | |||||
.catch(err => { | |||||
wx.showToast({ | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
}) | |||||
} else { | } else { | ||||
/** | /** | ||||
* @Meo | * @Meo | ||||
@@ -42,8 +42,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -27,8 +27,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -137,8 +137,8 @@ Component({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -63,8 +63,8 @@ Page({ | |||||
}); | }); | ||||
} else { | } else { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -21,8 +21,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -94,15 +94,14 @@ Page({ | |||||
success: function() {} | 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() { | jumpToAdd: function() { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
@@ -86,8 +86,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -117,6 +117,14 @@ Page({ | |||||
staticGamedata: res.data | staticGamedata: res.data | ||||
}) | }) | ||||
}) | }) | ||||
.catch(err => { | |||||
wx.showToast({ | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
}) | |||||
}, | }, | ||||
/** | /** | ||||
* 发起支付 | * 发起支付 | ||||
@@ -57,8 +57,8 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: err.message, | |||||
image: "../../assets/img/fail.png", | |||||
title: err.errMsg, | |||||
icon: 'none', | |||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
}); | }); | ||||
@@ -299,13 +299,13 @@ Page({ | |||||
.then(res => { | .then(res => { | ||||
that.initUsrCarList(); | 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 | |||||
}); | |||||
}) | }) | ||||
}, | }, | ||||
/** | /** | ||||