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
3301bc0c
Commit
3301bc0c
authored
Oct 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
70648f27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
1 deletion
+46
-1
YHResignHaveAppointedApplicantsInfoCell.swift
...t(在港递交预约)/V/YHResignHaveAppointedApplicantsInfoCell.swift
+46
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignHaveAppointedApplicantsInfoCell.swift
View file @
3301bc0c
...
@@ -73,6 +73,16 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
...
@@ -73,6 +73,16 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
return
view
return
view
}()
}()
lazy
var
leaveHKSwithView
:
YHResignLeaveHKSwitchItemView
=
{
let
view
=
YHResignLeaveHKSwitchItemView
()
view
.
title
=
"暂不离港"
view
.
switchBtn
.
isUserInteractionEnabled
=
false
view
.
switchBtn
.
isOn
=
true
view
.
switchBtn
.
alpha
=
0.3
view
.
selectBlock
=
nil
return
view
}()
required
init
?(
coder
:
NSCoder
)
{
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
super
.
init
(
coder
:
coder
)
}
}
...
@@ -93,7 +103,36 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
...
@@ -93,7 +103,36 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
}
}
applicantNamesLabel
.
text
=
names
applicantNamesLabel
.
text
=
names
submitTimeView
.
detail
=
model
.
getSubmitHKTime
()
submitTimeView
.
detail
=
model
.
getSubmitHKTime
()
leaveHKTimeView
.
snp
.
removeConstraints
()
leaveHKTimeView
.
isHidden
=
model
.
notleaveHK
leaveHKTimeView
.
detail
=
model
.
getLeaveHKTime
()
leaveHKTimeView
.
detail
=
model
.
getLeaveHKTime
()
leaveHKSwithView
.
snp
.
removeConstraints
()
leaveHKSwithView
.
isHidden
=
!
model
.
notleaveHK
if
model
.
notleaveHK
{
// 暂不离港 显示预约在港递交时间和暂不离港两行
leaveHKSwithView
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
submitTimeView
.
snp
.
bottom
)
make
.
bottom
.
equalTo
(
0
)
}
}
else
{
// 离港 显示预约在港递交时间和预计离港时间两行
leaveHKTimeView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
submitTimeView
.
snp
.
bottom
)
.
offset
(
0
)
make
.
bottom
.
equalTo
(
0
)
}
}
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
}
}
func
setupUI
()
{
func
setupUI
()
{
...
@@ -109,6 +148,7 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
...
@@ -109,6 +148,7 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
applicantContentView
.
addSubview
(
applicantNamesLabel
)
applicantContentView
.
addSubview
(
applicantNamesLabel
)
whiteContentView
.
addSubview
(
submitTimeView
)
whiteContentView
.
addSubview
(
submitTimeView
)
whiteContentView
.
addSubview
(
leaveHKTimeView
)
whiteContentView
.
addSubview
(
leaveHKTimeView
)
whiteContentView
.
addSubview
(
leaveHKSwithView
)
whiteContentView
.
snp
.
makeConstraints
{
make
in
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
left
.
right
.
top
.
equalToSuperview
()
...
@@ -159,8 +199,13 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
...
@@ -159,8 +199,13 @@ class YHResignHaveAppointedApplicantsInfoCell: UITableViewCell {
make
.
left
.
equalTo
(
18
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
submitTimeView
.
snp
.
bottom
)
.
offset
(
0
)
make
.
top
.
equalTo
(
submitTimeView
.
snp
.
bottom
)
.
offset
(
0
)
make
.
bottom
.
equalTo
(
0
)
}
}
leaveHKSwithView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
leaveHKTimeView
.
snp
.
bottom
)
make
.
bottom
.
equalTo
(
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