```feat(user): 查询并显示当前用户余额
在用户页面展示当前用户的余额信息,通过调用用户余额接口获取数据。优化界面布局,确保余额信息 清晰呈现给用户。同时,修复了潜在的token解析问题,保证用户数据准确无误。 修复了用户余额展示的bug,优化了用户界面体验。 ```master
parent
63fb611f96
commit
4254f92820
|
@ -14,7 +14,7 @@ export function listUser(query) {
|
||||||
// 用户余额
|
// 用户余额
|
||||||
export function userRecharge(data) {
|
export function userRecharge(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/user/alipay/recharge',
|
url: '/money/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: '/user/balance/' + userId,
|
url: '/money/balance/' + userId,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
label="用户余额"
|
label="用户余额"
|
||||||
width="180">
|
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.userBalance }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
Loading…
Reference in New Issue