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
c174e902
Commit
c174e902
authored
May 14, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI调整
parent
4c0a67f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
YHFormItemOnlyDoubleChoiceCell.swift
...ilyMember(家庭成员信息表)/V/YHFormItemOnlyDoubleChoiceCell.swift
+17
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/V/YHFormItemOnlyDoubleChoiceCell.swift
View file @
c174e902
...
...
@@ -11,6 +11,7 @@ import UIKit
class
YHFormItemOnlyDoubleChoiceCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHFormItemOnlyDoubleChoiceCell"
let
horizonalGap
=
18.0
let
btnWidth
=
70.0
let
btnHeight
=
32.0
let
btnTitleSelectColor
=
UIColor
.
brandMainColor
...
...
@@ -43,6 +44,12 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell {
}
}
private
lazy
var
topLine
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
return
view
}()
// 更新答案按钮选中状态
func
updateAnswerButton
(
_
btn
:
UIButton
,
_
isSelect
:
Bool
)
{
btn
.
layer
.
borderColor
=
(
isSelect
?
btnTitleSelectColor
:
.
clear
)
.
cgColor
...
...
@@ -98,11 +105,13 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell {
contentView
.
addSubview
(
answer1Btn
)
contentView
.
addSubview
(
answer2Btn
)
contentView
.
addSubview
(
topLine
)
answer1Btn
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
16
)
make
.
bottom
.
equalTo
(
-
16
)
make
.
size
.
equalTo
(
CGSize
(
width
:
btnWidth
,
height
:
btnHeight
))
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
centerY
.
equalToSuperview
()
}
answer2Btn
.
snp
.
makeConstraints
{
make
in
...
...
@@ -110,6 +119,13 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell {
make
.
left
.
equalTo
(
answer1Btn
.
snp
.
right
)
.
offset
(
10
)
make
.
centerY
.
equalTo
(
answer1Btn
)
}
topLine
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
horizonalGap
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
make
.
height
.
equalTo
(
1.0
)
make
.
top
.
equalToSuperview
()
}
}
@objc
func
didClickResponseBtn
(
btn
:
UIButton
)
{
...
...
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