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

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

修复了用户余额展示的bug,优化了用户界面体验。
```
master
wxy 2024-08-23 21:48:07 +08:00
parent 63fb611f96
commit 4254f92820
2 changed files with 3 additions and 3 deletions

View File

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

View File

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