Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
d5f09da1
Commit
d5f09da1
authored
Jul 29, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请有礼 加载更多
parent
bf5b0e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
YHInvitationWithGiftsSecondTableViewCell.swift
...ts(邀请有礼)/V/YHInvitationWithGiftsSecondTableViewCell.swift
+26
-5
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/V/YHInvitationWithGiftsSecondTableViewCell.swift
View file @
d5f09da1
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
import
UIKit
import
UIKit
class
YHInvitationWithGiftsSecondTableViewCell
:
UITableViewCell
{
class
YHInvitationWithGiftsSecondTableViewCell
:
UITableViewCell
{
var
centerView
:
UIView
!
var
centerView
:
UIView
!
var
titleLeftImageView
:
UIImageView
!
var
titleLeftImageView
:
UIImageView
!
var
titleRightImageView
:
UIImageView
!
var
titleRightImageView
:
UIImageView
!
...
@@ -27,7 +26,10 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
...
@@ -27,7 +26,10 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
var
peopleFourView
:
YHInvitationPeopleItemView
!
var
peopleFourView
:
YHInvitationPeopleItemView
!
var
peopleFiveView
:
YHInvitationPeopleItemView
!
var
peopleFiveView
:
YHInvitationPeopleItemView
!
var
tableView
:
UITableView
!
var
tableView
:
UITableView
!
var
viewModel
:
YHInvitationWithGiftsViewModel
=
YHInvitationWithGiftsViewModel
()
var
page
=
1
var
list
:
[
YHShareRecordListModel
]
=
[]
var
headData
:
YHShareOverviewModel
?
{
var
headData
:
YHShareOverviewModel
?
{
didSet
{
didSet
{
guard
let
model
=
headData
else
{
return
}
guard
let
model
=
headData
else
{
return
}
...
@@ -54,6 +56,11 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
...
@@ -54,6 +56,11 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
}
else
{
}
else
{
self
.
tableView
.
tableFooterView
=
UIView
()
self
.
tableView
.
tableFooterView
=
UIView
()
}
}
if
tableData
?
.
page_count
==
1
{
self
.
tableView
.
es
.
noticeNoMoreData
()
self
.
tableView
.
footer
?
.
alpha
=
1
}
self
.
list
=
tableData
?
.
list
??
[]
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
}
}
...
@@ -323,7 +330,6 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
...
@@ -323,7 +330,6 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
dataSource
=
self
tableView
.
dataSource
=
self
tableView
.
delegate
=
self
tableView
.
delegate
=
self
tableView
.
bounces
=
false
tableView
.
tableFooterView
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
0.01
))
tableView
.
tableFooterView
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
0.01
))
tableView
.
register
(
cellWithClass
:
YHInvitationWithGiftsPeopleTableViewCell
.
self
)
tableView
.
register
(
cellWithClass
:
YHInvitationWithGiftsPeopleTableViewCell
.
self
)
return
tableView
return
tableView
...
@@ -335,18 +341,33 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
...
@@ -335,18 +341,33 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
make
.
left
.
equalTo
(
15
)
make
.
left
.
equalTo
(
15
)
make
.
right
.
equalTo
(
-
15
)
make
.
right
.
equalTo
(
-
15
)
}
}
tableView
.
es
.
addInfiniteScrolling
{
self
.
viewModel
.
postRecord
(
page
:
self
.
page
+
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
page
=
self
.
page
+
1
self
.
tableView
.
es
.
stopLoadingMore
()
if
self
.
viewModel
.
recordModel
.
page_count
==
self
.
page
{
self
.
tableView
.
es
.
noticeNoMoreData
()
self
.
tableView
.
footer
?
.
alpha
=
1
}
for
item
in
self
.
viewModel
.
recordModel
.
list
{
self
.
list
.
append
(
item
)
}
self
.
tableView
.
reloadData
()
}
}
}
}
}
}
extension
YHInvitationWithGiftsSecondTableViewCell
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHInvitationWithGiftsSecondTableViewCell
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
tableData
?
.
list
.
count
??
0
return
list
.
count
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHInvitationWithGiftsPeopleTableViewCell
.
self
)
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHInvitationWithGiftsPeopleTableViewCell
.
self
)
cell
.
dataSource
=
tableData
?
.
list
[
indexPath
.
row
]
cell
.
dataSource
=
list
[
indexPath
.
row
]
return
cell
return
cell
}
}
...
...
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