Commit a79e0359 authored by yyh's avatar yyh

代码规范

parent ba9f3c73
......@@ -143,7 +143,7 @@ export default class Recharge extends Vue {
const { pay_url } = await this.$api.order.pay(this.orderId, this.method);
const redirectUrl = encodeURIComponent(`${protocol}//${host}/#/rechargeSuccess`);
this.redirectUrl = this.method === 0 ? pay_url : `${pay_url}&redirect_url=${redirectUrl}`;
location.href = this.redirectUrl
location.href = this.redirectUrl;
// (window as any).appslc.toPay(this.redirectUrl);
}
}
......
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