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 @@ - - - - -