我也遇到了,支付成功后,跳转了一个商家活动推广页面,退出这个页面直接关闭公众号。求解!!!
wx.chooseWXPay微信支付问题wx.chooseWXPay调起微信支付成功付款后,没有执行success函数,请问有人遇到过吗? [代码]wx.chooseWXPay({[代码][代码] [代码][代码]timestamp: payJson.timeStamp,[代码][代码] [代码][代码]nonceStr: payJson.nonceStr,[代码][代码] [代码][代码]package: payJson.package,[代码][代码] [代码][代码]signType: payJson.signType,[代码][代码] [代码][代码]paySign: payJson.paySign,[代码][代码] [代码][代码]success: function (r) {[代码][代码] [代码][代码]alert('微信api:success')[代码][代码] [代码][代码]alert(r)[代码][代码] [代码][代码]this.$router.push({ name: 'Home'});[代码][代码] [代码][代码]// 支付成功后的回调函数[代码][代码] [代码][代码]if (r.errMsg == "chooseWXPay:ok") {[代码][代码] [代码][代码]alert('支付成功')[代码][代码] [代码][代码]this.$router.push({ name: 'Home'});[代码][代码] [代码][代码]//支付成功[代码][代码] [代码][代码]// _this.checkDetail(res.ordersNo);[代码][代码] [代码] [代码] [代码][代码]} else {[代码][代码] [代码][代码]alert('success支付失败')[代码][代码] [代码][代码]this.$router.push({ name: 'Home'});[代码][代码] [代码][代码]// _this.checkDetail(res.ordersNo);[代码][代码] [代码][代码]alert(r.errMsg,null);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]cancel: function(r) {[代码][代码] [代码][代码]alert('取消支付')[代码][代码] [代码][代码]this.$router.push({ name: 'Home'});[代码][代码] [代码][代码]//支付取消[代码][代码] [代码][代码]this.$route.push[代码][代码] [代码][代码]_this.checkDetail(res.ordersNo);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail:function(r){[代码][代码] [代码][代码]alert('fail支付失败了')[代码][代码] [代码][代码]this.$router.push({ name: 'All_order_list'});[代码][代码] [代码][代码]//支付失败[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码]
2020-05-27