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; },