From b6b8568fc7b91d2738edc77b72ff85222e485170 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Wed, 13 May 2020 17:41:21 +0800 Subject: [PATCH] 返回错误的时候,没事显示错误 --- utils/pay.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/pay.js b/utils/pay.js index 0eb75a6..eca068a 100644 --- a/utils/pay.js +++ b/utils/pay.js @@ -34,10 +34,12 @@ module.exports = { if(t.data.code==0){ i.weixinPay(t.data.data, e, a); }else{ - t.showSuccess(t.data.msg); - wx.redirectTo({ - url: "/pages/user/order_list/order_list", - }); + getApp().showWarning(t.data.msg); + setTimeout(function(){ + wx.redirectTo({ + url: "/pages/user/order_list/order_list", + }); + },1000) } return false; }, -- libgit2 0.21.4