|
@@ -42,11 +42,10 @@ function reload(searchParams = {}) {
|
|
|
request({
|
|
request({
|
|
|
url: "/user/userAccountInfo/getTotal",
|
|
url: "/user/userAccountInfo/getTotal",
|
|
|
method: "GET",
|
|
method: "GET",
|
|
|
- params: searchParams,
|
|
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- if (res.code === 200 && res.data) {
|
|
|
|
|
- updateStateList(res.data);
|
|
|
|
|
|
|
+ if (res.data.code === 200) {
|
|
|
|
|
+ updateStateList(res.data.data);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
@@ -55,21 +54,22 @@ function reload(searchParams = {}) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function updateStateList(data) {
|
|
function updateStateList(data) {
|
|
|
|
|
+ console.log(data, "xxxx");
|
|
|
stateList.value = [
|
|
stateList.value = [
|
|
|
{
|
|
{
|
|
|
title: "账户总览",
|
|
title: "账户总览",
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
name: "累计账户余额",
|
|
name: "累计账户余额",
|
|
|
- number: data.totalRestMoney || 0,
|
|
|
|
|
|
|
+ number: data.totalMoney || 0,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: "待结算金额",
|
|
|
|
|
|
|
+ name: "待付款(待结算)",
|
|
|
number: data.unSettlementMoney || 0,
|
|
number: data.unSettlementMoney || 0,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: "已结算金额",
|
|
|
|
|
- number: data.settlementMoney || 0,
|
|
|
|
|
|
|
+ name: "待提现金额",
|
|
|
|
|
+ number: data.unWithdrawMoney || 0,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: "提现中金额",
|
|
name: "提现中金额",
|