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
14086d14
Commit
14086d14
authored
Mar 19, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 首次提示的UI的问题
parent
eee4fed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
34 deletions
+36
-34
YHInformationFillTipsAlertView.swift
...igentService(服务中心)/V/YHInformationFillTipsAlertView.swift
+36
-34
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHInformationFillTipsAlertView.swift
View file @
14086d14
...
...
@@ -100,8 +100,11 @@ class YHInformationFillTipsAlertView: UIView {
centerView
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
96
)
}
// bottomView.backgroundColor = .red //for test hjl
let
checkBtn
=
UIButton
(
type
:
.
custom
)
checkBtn
.
addTarget
(
self
,
action
:
#selector(
onClickReadyBtn
)
,
for
:
.
touchUpInside
)
checkBtn
.
setTitle
(
"准备完毕"
,
for
:
.
normal
)
...
...
@@ -112,7 +115,7 @@ class YHInformationFillTipsAlertView: UIView {
bottomView
.
addSubview
(
checkBtn
)
checkBtn
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
24
)
make
.
top
.
equalToSuperview
()
.
offset
(
8
)
make
.
left
.
equalTo
(
kMargin
)
make
.
right
.
equalTo
(
-
kMargin
)
make
.
height
.
equalTo
(
48
)
...
...
@@ -121,38 +124,6 @@ class YHInformationFillTipsAlertView: UIView {
checkBtn
.
addYinHeGradualLayer
()
let
lable00
=
UILabel
(
text
:
"我确认我所提供的材料真实有效,并知悉其中内容。"
)
lable00
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
lable00
.
textColor
=
UIColor
.
labelTextColor2
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
onClickAgree
)
)
lable00
.
isUserInteractionEnabled
=
true
lable00
.
addGestureRecognizer
(
tap
)
bottomView
.
addSubview
(
lable00
)
lable00
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
checkBtn
.
snp
.
top
)
.
offset
(
-
26
)
make
.
left
.
equalTo
(
41
)
make
.
right
.
equalTo
(
-
16
)
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
16
)
}
let
selectedBtn
=
UIButton
(
type
:
.
custom
)
selectedBtn
.
setImage
(
UIImage
(
named
:
"selected_icon_0"
),
for
:
.
normal
)
selectedBtn
.
setImage
(
UIImage
(
named
:
"selected_icon_1"
),
for
:
.
selected
)
selectedBtn
.
addTarget
(
self
,
action
:
#selector(
onClickAgree
)
,
for
:
.
touchUpInside
)
bottomView
.
addSubview
(
selectedBtn
)
selectedBtn
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
lable00
)
make
.
left
.
equalTo
(
21
)
make
.
height
.
width
.
equalTo
(
12
)
}
agreeButton
=
selectedBtn
agreeButton
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
20
)
let
topView
=
UIView
()
topView
.
backgroundColor
=
.
white
topView
.
layer
.
zPosition
=
1
...
...
@@ -185,7 +156,7 @@ class YHInformationFillTipsAlertView: UIView {
make
.
width
.
height
.
equalTo
(
24
)
}
closeBtn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
10
,
left
:
10
,
bottom
:
10
,
right
:
1
0
)
closeBtn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
2
0
)
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
.
separatorColor
...
...
@@ -214,6 +185,37 @@ class YHInformationFillTipsAlertView: UIView {
}
homeTableView
.
delegate
=
self
homeTableView
.
dataSource
=
self
let
footer
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
34
))
homeTableView
.
tableFooterView
=
footer
let
lable00
=
UILabel
(
text
:
"我确认我所提供的材料真实有效,并知悉其中内容。"
)
lable00
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
lable00
.
textColor
=
UIColor
.
labelTextColor2
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
onClickAgree
)
)
lable00
.
isUserInteractionEnabled
=
true
lable00
.
addGestureRecognizer
(
tap
)
footer
.
addSubview
(
lable00
)
lable00
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
41
)
make
.
right
.
equalTo
(
-
16
)
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
8
)
}
let
selectedBtn
=
UIButton
(
type
:
.
custom
)
selectedBtn
.
setImage
(
UIImage
(
named
:
"selected_icon_0"
),
for
:
.
normal
)
selectedBtn
.
setImage
(
UIImage
(
named
:
"selected_icon_1"
),
for
:
.
selected
)
selectedBtn
.
addTarget
(
self
,
action
:
#selector(
onClickAgree
)
,
for
:
.
touchUpInside
)
footer
.
addSubview
(
selectedBtn
)
selectedBtn
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
lable00
)
make
.
left
.
equalTo
(
21
)
make
.
height
.
width
.
equalTo
(
12
)
}
agreeButton
=
selectedBtn
agreeButton
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
20
)
}
@objc
func
onClickReadyBtn
()
{
...
...
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