Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
2688c783
Commit
2688c783
authored
Dec 28, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 替换查询下级余额接口
parent
9b010982
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
index.tsx
...ges/afterService/components/RefundModal/Balance/index.tsx
+13
-13
No files found.
src/pages/afterService/components/RefundModal/Balance/index.tsx
View file @
2688c783
...
@@ -34,24 +34,24 @@ const Balance: React.FC<BalanceProps> = ({
...
@@ -34,24 +34,24 @@ const Balance: React.FC<BalanceProps> = ({
handleConfirm
,
handleConfirm
,
value
,
value
,
submitLoading
,
submitLoading
,
purchaserId
,
purchaserRoleId
,
})
=>
{
})
=>
{
const
[
balance
,
setBalance
]
=
useState
(
0
);
const
[
balance
,
setBalance
]
=
useState
(
0
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
getPayAssetAccountGetUserBalance
=
()
=>
{
const
getPayAssetAccountGetUserBalance
=
()
=>
{
// setLoading(false);
setLoading
(
false
);
// // todo 这个接口可能要改
PublicApi
.
getPayAssetAccountGetChildUserBalance
({
// PublicApi.getPayAssetAccountGetUserBalance({
childMemberId
:
`
${
purchaserId
}
`
,
// payType: `${1}`,
childMemberRoleId
:
`
${
purchaserRoleId
}
`
,
// parentMemberId: `${0}`,
}).
then
(
res
=>
{
// parentMemberRoleId: `${0}`,
if
(
res
.
code
===
1000
)
{
// }).then(res => {
setBalance
(
res
.
data
);
// if (res.code === 1000) {
}
// setBalance(res.data);
}).
finally
(()
=>
{
// }
setLoading
(
false
);
// }).finally(() => {
});
// setLoading(false);
// });
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment