diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 303d84e..f32d75f 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -196,8 +196,11 @@ Page({ if (res.errMsg == "requestPayment:ok") { wx.showToast({ title: "购买成功", - duration: 2500, + image: "./../../../assets/img/success.png", + duration: 2000, + mask: false }); + /** * 用户支付成功以后跳转到券包列表 */ @@ -217,7 +220,7 @@ Page({ wx.showToast({ title: "支付失败", image: "./../../../assets/img/fail.png", - duration: 1500, + duration: 2000, mask: false }); } diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index be0637b..33a3fe5 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -103,7 +103,9 @@ Page({ if (res.errMsg == "requestPayment:ok") { wx.showToast({ title: "购买成功", - duration: 2500 + duration: 2000, + image: "./../../../assets/img/success.png", + mask:false }); } }, @@ -119,7 +121,7 @@ Page({ wx.showToast({ title: "支付失败", image: "./../../../assets/img/fail.png", - duration: 1500, + duration: 2000, mask: false }); } @@ -134,7 +136,8 @@ Page({ .then(res => { wx.showToast({ title: "支付成功", - duration: 3000 + duration: 2000, + image: "./../../../assets/img/success.png", }); }); }