Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4bbb013d
authored
Mar 23, 2026
by
suolong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listTotal参数新增
parent
b946c1cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PayRoom/FUSPayRoomViewerListView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PayRoom/FUSPayRoomViewerListView.m
View file @
4bbb013d
...
@@ -96,12 +96,27 @@
...
@@ -96,12 +96,27 @@
}
}
NSDictionary
*
payload
=
[
dataDict
[
@"data"
]
isKindOfClass
:
NSDictionary
.
class
]
?
dataDict
[
@"data"
]
:
dataDict
;
NSDictionary
*
payload
=
[
dataDict
[
@"data"
]
isKindOfClass
:
NSDictionary
.
class
]
?
dataDict
[
@"data"
]
:
dataDict
;
NSInteger
respPage
=
[
payload
[
@"page"
]
integerValue
];
NSDictionary
*
listData
=
[
payload
[
@"listData"
]
isKindOfClass
:
NSDictionary
.
class
]
?
payload
[
@"listData"
]
:
nil
;
NSDictionary
*
pageSource
=
(
listData
?:
payload
);
NSInteger
respPage
=
[
pageSource
[
@"page"
]
integerValue
];
if
(
respPage
>
0
)
{
if
(
respPage
>
0
)
{
strongSelf
.
page
=
respPage
;
strongSelf
.
page
=
respPage
;
}
}
NSInteger
listTotal
=
[
listData
[
@"listTotal"
]
integerValue
];
NSInteger
total
=
[
payload
[
@"total"
]
integerValue
];
NSInteger
total
=
[
payload
[
@"total"
]
integerValue
];
NSArray
*
list
=
[
payload
[
@"list"
]
isKindOfClass
:
NSArray
.
class
]
?
payload
[
@"list"
]
:
@[];
NSArray
*
list
=
nil
;
if
([
listData
[
@"list"
]
isKindOfClass
:
NSArray
.
class
])
{
list
=
listData
[
@"list"
];
}
else
if
([
listData
[
@"userList"
]
isKindOfClass
:
NSArray
.
class
])
{
list
=
listData
[
@"userList"
];
}
else
if
([
payload
[
@"list"
]
isKindOfClass
:
NSArray
.
class
])
{
list
=
payload
[
@"list"
];
}
else
{
list
=
@[];
}
if
(
strongSelf
.
page
<=
1
)
{
if
(
strongSelf
.
page
<=
1
)
{
[
strongSelf
.
userList
removeAllObjects
];
[
strongSelf
.
userList
removeAllObjects
];
...
@@ -135,7 +150,8 @@
...
@@ -135,7 +150,8 @@
[
strongSelf
.
tableView
reloadData
];
[
strongSelf
.
tableView
reloadData
];
if
(
strongSelf
.
totalUserChangedHandler
)
{
if
(
strongSelf
.
totalUserChangedHandler
)
{
strongSelf
.
totalUserChangedHandler
(
total
>
0
?
total
:
strongSelf
.
userList
.
count
);
NSInteger
displayTotal
=
(
listTotal
>
0
?
listTotal
:
(
total
>
0
?
total
:
(
NSInteger
)
strongSelf
.
userList
.
count
));
strongSelf
.
totalUserChangedHandler
(
displayTotal
);
}
}
[
strongSelf
.
tableView
.
mj_header
endRefreshing
];
[
strongSelf
.
tableView
.
mj_header
endRefreshing
];
...
...
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