Commit 2688c783 authored by XieZhiXiong's avatar XieZhiXiong

feat: 替换查询下级余额接口

parent 9b010982
...@@ -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(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment