【已解决】wx.requestPay支付成功后点击成功按钮跳转页面时候会返回支付上一页一再跳转页面?
在wx.requestPayment(OBJECT)成功回调里面执行跳转
wx.requestPayment({
‘timeStamp’: res.data.timeStamp,
‘nonceStr’: res.data.nonceStr,
‘package’: res.data.packageStr,
‘signType’: ‘MD5’,
‘paySign’: res.data.paySign,
success(res) {
var all_prices = that.data.all_Prices;
wx.redirectTo({
url: ‘…/…/pages/pay-success/pay-success?all_prices=’ + all_prices,
})
},
详情看楼下