Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
feat(wallet): #456 跳转到第三方支付支付地址
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 27, 2018
1 parent 58f217d commit b984e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function postTransform(data) {
*/
export function postWalletRecharge(data) {
const url = "/walletRecharge/orders";
data = Object.assing(data, { from: 2 });
data = Object.assign(data, { from: 2 });
return api.post(url, data, { validateStatus: s => s === 201 });
}

Expand Down
4 changes: 2 additions & 2 deletions src/page/wallet/WalletRecharge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ export default {
if (this.loading) return;
const { amount, type } = this.form;
this.loading = true;
// 获取第三方支付地址,跳转过去
const url = await this.$store.dispatch("wallet/requestRecharge", {
amount,
type
});
console.log(url);
// location.href = url
location.href = url;
}
}
};
Expand Down

0 comments on commit b984e4c

Please sign in to comment.