Commit 6d5d0990 by 程默

用户支付取消 才调取消支付接口

parent 5b90fdbc
...@@ -107,9 +107,11 @@ export default { ...@@ -107,9 +107,11 @@ export default {
payData.fail = res => { payData.fail = res => {
console.log("支付失败", res, this.options.orderSn); console.log("支付失败", res, this.options.orderSn);
this.message = "支付失败"; this.message = "支付失败";
wxPay.cancelPayment(this.options.orderSn).then(() => { if (res.errMsg='requestPayment:fail cancel') {
console.log("取消成功"); wxPay.cancelPayment(this.options.orderSn).then(() => {
}); console.log("取消成功");
});
}
this.toPage(); this.toPage();
}; };
payData.complete = res => { payData.complete = res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment