From 182cb8efdb0e62c97d4f621d312c0e23b20f5fb2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 28 Aug 2023 22:36:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E9=92=B1=E5=8C=85=EF=BC=9A?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E9=92=B1=E5=8C=85=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/pay/wallet.js | 6 ++ pages/users/user_money/index.vue | 168 ++++++++++--------------------- 2 files changed, 58 insertions(+), 116 deletions(-) create mode 100644 api/pay/wallet.js diff --git a/api/pay/wallet.js b/api/pay/wallet.js new file mode 100644 index 00000000..e9622790 --- /dev/null +++ b/api/pay/wallet.js @@ -0,0 +1,6 @@ +import request from "@/utils/request.js"; + +// 获取钱包 +export function getPayWallet() { + return request.get("app-api/pay/wallet/get"); +} diff --git a/pages/users/user_money/index.vue b/pages/users/user_money/index.vue index 3a7115da..8027c683 100644 --- a/pages/users/user_money/index.vue +++ b/pages/users/user_money/index.vue @@ -7,7 +7,7 @@ 总资产(元) - {{statistics.nowMoney || 0}} + {{ fen2yuan(wallet.balance || 0) }} 充值 @@ -20,18 +20,18 @@ 累计充值(元) - {{statistics.recharge || 0}} + {{ fen2yuan(wallet.totalRecharge || 0) }} 累计充值(元) - {{statistics.recharge || 0}} + {{ fen2yuan(wallet.totalRecharge || 0) }} 累计消费(元) - {{statistics.orderStatusSum || 0}} + {{ fen2yuan(wallet.totalExpense || 0) }} @@ -82,131 +82,65 @@ - - - - -