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
1ead029c
Commit
1ead029c
authored
Aug 09, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节修改
parent
02908ca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
YHInvitationWithGiftsSelectItemView.swift
...thGifts(邀请有礼)/V/YHInvitationWithGiftsSelectItemView.swift
+10
-3
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/V/YHInvitationWithGiftsSelectItemView.swift
View file @
1ead029c
...
@@ -232,9 +232,7 @@ extension YHInvitationWithGiftsSelectItemView: UITableViewDelegate, UITableViewD
...
@@ -232,9 +232,7 @@ extension YHInvitationWithGiftsSelectItemView: UITableViewDelegate, UITableViewD
cell
.
block
=
{[
weak
self
]
index
in
cell
.
block
=
{[
weak
self
]
index
in
if
indexPath
.
section
==
0
{
if
indexPath
.
section
==
0
{
self
?
.
selectOne
=
index
self
?
.
selectOne
=
index
if
index
==
3
{
self
?
.
tableView
.
reloadData
()
self
?
.
tableView
.
reloadData
()
}
}
else
{
}
else
{
self
?
.
selectTwo
=
index
self
?
.
selectTwo
=
index
}
}
...
@@ -422,6 +420,14 @@ class YHInvitationWithGiftsSelectItemCell: UITableViewCell {
...
@@ -422,6 +420,14 @@ class YHInvitationWithGiftsSelectItemCell: UITableViewCell {
}
}
@objc
func
click
(
sender
:
UIButton
)
{
@objc
func
click
(
sender
:
UIButton
)
{
if
selectIndex
==
sender
.
tag
-
1000
{
sender
.
isSelected
=
false
sender
.
layer
.
borderWidth
=
0
if
let
block
=
block
{
block
(
100
)
}
return
}
guard
let
data
=
dataSource
else
{
return
}
guard
let
data
=
dataSource
else
{
return
}
for
i
in
0
..<
data
.
count
{
for
i
in
0
..<
data
.
count
{
let
button
=
centerView
.
viewWithTag
(
1000
+
i
)
as!
UIButton
let
button
=
centerView
.
viewWithTag
(
1000
+
i
)
as!
UIButton
...
@@ -433,6 +439,7 @@ class YHInvitationWithGiftsSelectItemCell: UITableViewCell {
...
@@ -433,6 +439,7 @@ class YHInvitationWithGiftsSelectItemCell: UITableViewCell {
button
.
layer
.
borderWidth
=
0
button
.
layer
.
borderWidth
=
0
}
}
}
}
selectIndex
=
sender
.
tag
-
1000
if
let
block
=
block
{
if
let
block
=
block
{
block
(
sender
.
tag
-
1000
)
block
(
sender
.
tag
-
1000
)
}
}
...
...
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