From 8599708af3602e29a2476c8882085e0e83a7f0ac Mon Sep 17 00:00:00 2001 From: misworga831 Date: Wed, 8 Mar 2023 21:58:29 +0800 Subject: [PATCH] Increase payment support and update parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Improved payment system with WeChat and AliPay support - Increased minimum recharge amount to `1` - Added maximum of `9` characters for the recharge amount - Added minimum withdraw amount setting - Added real name field for AliPay - Added third-party login field for AliPay - Added maxlength of `9` characters for the withdraw amount - Added a span tag to append '元' to the recharge amount - Added a new function `with [buyer/src/pages/home/userCenter/MoneyManagement.vue] - Raise the minimum recharge amount to `1` - Allow for a maximum of `9` characters for the recharge amount - Added support for WeChat and AliPay - Added a minimum withdraw amount setting - Added a real name field for AliPay - Added a third-party login field for AliPay - Added maxlength of `9` characters for the withdraw amount - Added a span tag to append '元' to the recharge amount - Fixed typo [buyer/src/api/pay.js] - Add a new function `withdrawalSettingVO` for payment result inquiry - Change the parameters for `payCallback` function --- buyer/src/api/pay.js | 14 ++ .../pages/home/userCenter/MoneyManagement.vue | 167 +++++++++++------- 2 files changed, 119 insertions(+), 62 deletions(-) diff --git a/buyer/src/api/pay.js b/buyer/src/api/pay.js index c18d9db1..0b0d2e02 100644 --- a/buyer/src/api/pay.js +++ b/buyer/src/api/pay.js @@ -46,3 +46,17 @@ export function payCallback (params) { params }); } + +/** + * 支付结果查询 + * @param orderType 交易类型,可用值:TRADE,ORDER,RECHARGE + * @param sn 订单编号 + */ +export function withdrawalSettingVO (params) { + return request({ + url: `/buyer/wallet/wallet/withdrawalSettingVO`, + needToken: true, + method: Method.GET, + params + }); +} diff --git a/buyer/src/pages/home/userCenter/MoneyManagement.vue b/buyer/src/pages/home/userCenter/MoneyManagement.vue index 5075fbb6..cf709af4 100644 --- a/buyer/src/pages/home/userCenter/MoneyManagement.vue +++ b/buyer/src/pages/home/userCenter/MoneyManagement.vue @@ -1,13 +1,13 @@ -