支付成功调用fail
if (res.data.Success == "true") { wx.requestPayment({ timeStamp: res.data.ResultData[4].Timestamp, nonceStr: res.data.ResultData[3].nonceStr, package: res.data.ResultData[6].WX_OrderNo, signType: "MD5", paySign: res.data.ResultData[5].Sign, success: function(rew) { // console.log('支付接口调用成功') // console.log(rew) if (rew.errMsg) {} wx.switchTab({url: '../Order/Order',}) }, fail: function(res) { // console.log('支付接口调用失败') // console.log(res) that.UpdateOrderNo(); wx.switchTab({ url: '../Order/Order', }) }, complete: function(res) {}, }) } 客户支付成功后调用了fail方法