```feat(user): 查询并显示当前用户余额

在用户页面展示当前用户的余额信息,通过调用用户余额接口获取数据。优化界面布局,确保余额信息
清晰呈现给用户。同时,修复了潜在的token解析问题,保证用户数据准确无误。

修复了用户余额展示的bug,优化了用户界面体验。
```
wangxinyuan
wxy 2024-08-23 20:28:05 +08:00
parent de133b71f2
commit edbf8a371b
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ export function listUser(query) {
// 用户余额 // 用户余额
export function userRecharge(data) { export function userRecharge(data) {
return request({ return request({
url: '/system/user/alipay/recharge', url: '/money/user/alipay/recharge',
method: 'post', method: 'post',
params: data params: data
}) })
@ -23,7 +23,7 @@ export function userRecharge(data) {
// 查询用户余额 // 查询用户余额
export function userBalance(userId) { export function userBalance(userId) {
return request({ return request({
url: '/system/user/balance/' + userId, url: '/money/user/balance/' + userId,
method: 'get', method: 'get',
}) })
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<el-table :data="listDate" style="width: 100%"> <el-table :data="listDate" style="width: 100%">
<el-table-column label="用户" width="180"> <el-table-column label="用户额" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.paymentAmount }}</span> <span style="margin-left: 10px">{{ scope.row.paymentAmount }}</span>
</template> </template>