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
45a45ead
Commit
45a45ead
authored
Aug 05, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请 对接借口逻辑
parent
fd7f1aba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
YHInvitationWithGiftsSecondTableViewCell.swift
...ts(邀请有礼)/V/YHInvitationWithGiftsSecondTableViewCell.swift
+20
-3
YHInvitationWithGiftsSelectItemView.swift
...thGifts(邀请有礼)/V/YHInvitationWithGiftsSelectItemView.swift
+1
-0
YHInvitationWithGiftsViewModel.swift
...onWithGifts(邀请有礼)/VM/YHInvitationWithGiftsViewModel.swift
+5
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/V/YHInvitationWithGiftsSecondTableViewCell.swift
View file @
45a45ead
...
...
@@ -31,6 +31,10 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
var
viewModel
:
YHInvitationWithGiftsViewModel
=
YHInvitationWithGiftsViewModel
()
var
page
=
1
var
list
:
[
YHShareRecordListModel
]
=
[]
var
selectOne
:
Int
?
var
selectTwo
:
Int
?
var
startTime
:
String
=
""
var
endTime
:
String
=
""
var
headData
:
YHShareOverviewModel
?
{
didSet
{
...
...
@@ -418,8 +422,12 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
}
@objc
func
selectItem
()
{
YHInvitationWithGiftsSelectItemView
.
show
(
selectOne
:
100
,
selectTwo
:
100
,
startTime
:
""
,
endTime
:
""
)
{
[
weak
self
]
one
,
two
,
start
,
end
in
YHInvitationWithGiftsSelectItemView
.
show
(
selectOne
:
selectOne
??
100
,
selectTwo
:
selectTwo
??
100
,
startTime
:
startTime
,
endTime
:
endTime
)
{
[
weak
self
]
one
,
two
,
start
,
end
in
guard
let
self
=
self
else
{
return
}
self
.
selectOne
=
one
self
.
selectTwo
=
two
self
.
startTime
=
start
self
.
endTime
=
end
if
one
==
100
,
two
==
100
,
start
==
""
,
end
==
""
{
recommendButton
.
isSelected
=
false
}
else
{
...
...
@@ -441,9 +449,18 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
viewModel
.
endTime
=
""
}
viewModel
.
state
=
two
self
.
page
=
1
//请求刷新数据
self
.
viewModel
.
postRecord
(
page
:
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
tableView
.
es
.
stopLoadingMore
()
if
self
.
viewModel
.
recordModel
.
page_count
==
self
.
page
{
self
.
tableView
.
es
.
noticeNoMoreData
()
self
.
tableView
.
footer
?
.
alpha
=
1
}
self
.
tableData
=
self
.
viewModel
.
recordModel
self
.
tableView
.
reloadData
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/V/YHInvitationWithGiftsSelectItemView.swift
View file @
45a45ead
...
...
@@ -165,6 +165,7 @@ class YHInvitationWithGiftsSelectItemView: UIView {
view
.
selectTwo
=
selectTwo
view
.
startTime
=
startTime
view
.
endTime
=
endTime
view
.
tableView
.
reloadData
()
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/VM/YHInvitationWithGiftsViewModel.swift
View file @
45a45ead
...
...
@@ -63,8 +63,12 @@ class YHInvitationWithGiftsViewModel: YHBaseViewModel {
func
postRecord
(
page
:
Int
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Share
.
record
let
registered_date
:
[
String
:
Any
]
=
[
"begin_date"
:
self
.
startTime
,
"end_date"
:
self
.
endTime
]
let
param
:
[
String
:
Any
]
=
[
"page"
:
page
,
"pagesize"
:
20
]
"pagesize"
:
20
,
"registered_date"
:
registered_date
,
"status"
:
self
.
state
+
1
<
4
?
self
.
state
+
1
:
0
]
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
param
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
//1. json字符串 转 对象
...
...
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