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
ec99bfa8
Commit
ec99bfa8
authored
Mar 04, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按钮逻辑
parent
057b6c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
YHWorkMessageSelectTableViewCell.swift
...)/WorkExperience/V/YHWorkMessageSelectTableViewCell.swift
+10
-10
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/WorkExperience/V/YHWorkMessageSelectTableViewCell.swift
View file @
ec99bfa8
...
...
@@ -19,9 +19,9 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
var
rightButton
:
UIButton
!
var
dataSource
:
Int
?{
didSet
{
var
flag
=
tru
e
var
flag
=
fals
e
if
dataSource
==
1
{
flag
=
fals
e
flag
=
tru
e
}
buttonState
(
isLeft
:
flag
)
}
...
...
@@ -158,14 +158,6 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
func
buttonState
(
isLeft
:
Bool
)
{
if
isLeft
{
leftButton
.
isSelected
=
true
rightButton
.
isSelected
=
false
leftButton
.
layer
.
borderWidth
=
1
leftButton
.
layer
.
borderColor
=
UIColor
(
hex
:
0x2f7ef6
)
.
cgColor
leftButton
.
backgroundColor
=
UIColor
(
hex
:
0x2f7ef6
)
.
withAlphaComponent
(
0.08
)
rightButton
.
backgroundColor
=
UIColor
.
contentBkgColor
rightButton
.
layer
.
borderWidth
=
0
}
else
{
rightButton
.
isSelected
=
true
leftButton
.
isSelected
=
false
rightButton
.
layer
.
borderWidth
=
1
...
...
@@ -173,6 +165,14 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
rightButton
.
backgroundColor
=
UIColor
(
hex
:
0x2f7ef6
)
.
withAlphaComponent
(
0.08
)
leftButton
.
backgroundColor
=
UIColor
.
contentBkgColor
leftButton
.
layer
.
borderWidth
=
0
}
else
{
leftButton
.
isSelected
=
true
rightButton
.
isSelected
=
false
leftButton
.
layer
.
borderWidth
=
1
leftButton
.
layer
.
borderColor
=
UIColor
(
hex
:
0x2f7ef6
)
.
cgColor
leftButton
.
backgroundColor
=
UIColor
(
hex
:
0x2f7ef6
)
.
withAlphaComponent
(
0.08
)
rightButton
.
backgroundColor
=
UIColor
.
contentBkgColor
rightButton
.
layer
.
borderWidth
=
0
}
}
...
...
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