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
f8321c13
Commit
f8321c13
authored
Oct 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
6ad39991
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
6 deletions
+35
-6
YHResignAppointTimeMultipleCell.swift
...HKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
+18
-3
YHResignAppointTimeSingleCell.swift
...gnHKAppoint(在港递交预约)/V/YHResignAppointTimeSingleCell.swift
+17
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
View file @
f8321c13
...
...
@@ -141,8 +141,23 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
view
.
clickBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
getDateInfo
{
[
weak
self
]
startDate
,
endDate
in
guard
let
self
=
self
else
{
return
}
// self.getDateInfo {
// [weak self] startDate, endDate in
// guard let self = self else { return }
// 离港时间选择区间从预约在港递交时间到2029-12-31 若在港递交时间为空则离港时间选择最早为今天
var
startDate
:
String
=
self
.
model
.
getSubmitHKTime
()
let
format
=
"yyyy-MM-dd"
if
startDate
.
count
>=
format
.
count
{
startDate
=
String
(
startDate
.
prefix
(
format
.
count
))
}
if
startDate
.
isEmpty
{
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
format
startDate
=
dateFormatter
.
string
(
from
:
Date
())
}
var
endDate
=
"2029-12-31"
let
view
=
YHRangeDatePickerSheetView2
.
sheetView
()
view
.
viewTitle
=
"选择预计离港时间"
view
.
minDateStr
=
startDate
...
...
@@ -168,7 +183,7 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
}
view
.
show
()
}
//
}
}
return
view
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointTimeSingleCell.swift
View file @
f8321c13
...
...
@@ -93,8 +93,22 @@ class YHResignAppointTimeSingleCell: UITableViewCell {
view
.
clickBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
getDateInfo
{
[
weak
self
]
startDate
,
endDate
in
guard
let
self
=
self
else
{
return
}
// self.getDateInfo { [weak self] startDate, endDate in
// guard let self = self else { return }
// 离港时间选择区间从预约在港递交时间到2029-12-31 若在港递交时间为空则离港时间选择最早为今天
var
startDate
:
String
=
self
.
model
.
getSubmitHKTime
()
let
format
=
"yyyy-MM-dd"
if
startDate
.
count
>=
format
.
count
{
startDate
=
String
(
startDate
.
prefix
(
format
.
count
))
}
if
startDate
.
isEmpty
{
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
format
startDate
=
dateFormatter
.
string
(
from
:
Date
())
}
var
endDate
=
"2029-12-31"
let
view
=
YHRangeDatePickerSheetView2
.
sheetView
()
view
.
viewTitle
=
"选择预计离港时间"
view
.
minDateStr
=
startDate
...
...
@@ -120,7 +134,7 @@ class YHResignAppointTimeSingleCell: UITableViewCell {
}
view
.
show
()
}
//
}
}
return
view
}()
...
...
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