```feat(user): 查询并显示当前用户余额
在用户页面展示当前用户的余额信息,通过调用用户余额接口获取数据。优化界面布局,确保余额信息 清晰呈现给用户。同时,修复了潜在的token解析问题,保证用户数据准确无误。 修复了用户余额展示的bug,优化了用户界面体验。 ```wangxinyuan
parent
de133b71f2
commit
edbf8a371b
|
@ -14,7 +14,7 @@ export function listUser(query) {
|
|||
// 用户余额
|
||||
export function userRecharge(data) {
|
||||
return request({
|
||||
url: '/system/user/alipay/recharge',
|
||||
url: '/money/user/alipay/recharge',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
|
@ -23,7 +23,7 @@ export function userRecharge(data) {
|
|||
// 查询用户余额
|
||||
export function userBalance(userId) {
|
||||
return request({
|
||||
url: '/system/user/balance/' + userId,
|
||||
url: '/money/user/balance/' + userId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-table :data="listDate" style="width: 100%">
|
||||
<el-table-column label="用户额度" width="180">
|
||||
<el-table-column label="用户余额" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.paymentAmount }}</span>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue