From 03ceb0bcf3d2491a2f61748b062dc9efd6c8a222 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 30 Sep 2023 18:54:26 +0800 Subject: [PATCH] =?UTF-8?q?wallet=EF=BC=9A=E6=8E=A5=E5=85=A5=E9=92=B1?= =?UTF-8?q?=E5=8C=85=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/pay/wallet.js | 10 ++ pages/users/user_payment/index.vue | 256 ++++++++--------------------- 2 files changed, 78 insertions(+), 188 deletions(-) diff --git a/api/pay/wallet.js b/api/pay/wallet.js index 33791bc3..9f57aed4 100644 --- a/api/pay/wallet.js +++ b/api/pay/wallet.js @@ -9,3 +9,13 @@ export function getPayWallet() { export function getWalletTransactionPage(data) { return request.get("app-api/pay/wallet-transaction/page", data); } + +// 获得钱包充值套餐列表 +export function getWalletRechargePackageList() { + return request.get("app-api/pay/wallet-recharge-package/list"); +} + +// 创建钱包充值记录(发起充值) +export function createWalletRecharge(data) { + return request.post("app-api/pay/wallet-recharge/create", data); +} diff --git a/pages/users/user_payment/index.vue b/pages/users/user_payment/index.vue index d2850616..591c737b 100644 --- a/pages/users/user_payment/index.vue +++ b/pages/users/user_payment/index.vue @@ -4,32 +4,38 @@ 我的余额 - ¥{{ userInfo.nowMoney || 0 }} + ¥{{ fen2yuan(wallet.balance || 0) }} {{item}} + - {{ item.price }} 元 + {{ fen2yuan(item.payPrice) }} 元 - 赠送:{{ item.giveMoney }} 元 + 赠送:{{ fen2yuan(item.bonusPrice) }} 元 - - + + 注意事项: - {{ item }} - + {{ item }} + - - + + + + + ¥ @@ -42,60 +48,45 @@ {{ item }} - - + + - - -