Commit eb9fe7c4 authored by yyh's avatar yyh

微信支付回调debug

parent 46392279
......@@ -138,8 +138,10 @@ export default class Recharge extends Vue {
this.orderId = id;
}
private async payHandler() {
const { protocol, host } = location;
const { pay_url } = await this.$api.order.pay(this.orderId, this.method);
location.href = pay_url;
location.href = this.method === 0 ? pay_url : `${pay_url}&${protocol}//${host}/#/rechargeSuccess`;
// &redirect_url=https%3A%2F%2Fwww.wechatpay.com.cn
}
}
</script>
......
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