在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,
})
},
详情看楼下
贴代码吧
'timeStamp': res.data.timeStamp,
'nonceStr': res.data.nonceStr,
'package': res.data.packageStr,
'signType': 'MD5',
'paySign': res.data.paySign,
success(res) {
console.log('检测1',res)
var all_prices = that.data.all_Prices;
wx.redirectTo({
url: '../../pages/pay-success/pay-success?all_prices=' + all_prices,
})
},
你好,支付、卡券相关的问题请移步至微信支付专区https://developers.weixin.qq.com/community/pay提问,我们会有对应同学来处理。