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
c3955047
Commit
c3955047
authored
Oct 16, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 确认
parent
2e8c9e7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
YHResignAppointGroup.swift
...(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
+12
-8
YHResignConfirmInfoListViewController.swift
...irm(续签信息确认)/C/YHResignConfirmInfoListViewController.swift
+3
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
View file @
c3955047
...
@@ -62,14 +62,18 @@ class YHResignAppointGroup: SmartCodable {
...
@@ -62,14 +62,18 @@ class YHResignAppointGroup: SmartCodable {
let
nowDateString
=
dateFormatter
.
string
(
from
:
Date
())
let
nowDateString
=
dateFormatter
.
string
(
from
:
Date
())
var
confirmStatus
=
YHResignConfirmHKStatus
.
waitConfirmHK
var
confirmStatus
=
YHResignConfirmHKStatus
.
waitConfirmHK
// 是否到了预约递交时间
let
isArriveSubmitTime
=
compareDates
(
self
.
ready_to_submit_at
,
nowDateString
)
if
!
isArriveSubmitTime
{
if
self
.
determine_hk_at
.
isEmpty
{
// 待确认在港
// 是否到了预约递交时间
confirmStatus
=
.
waitConfirmHK
let
isArriveSubmitTime
=
compareDates
(
self
.
ready_to_submit_at
,
nowDateString
)
}
else
{
if
isArriveSubmitTime
{
confirmStatus
=
!
self
.
determine_hk_at
.
isEmpty
?
.
haveConfirmHK
:
.
canConfirmHK
confirmStatus
=
.
waitConfirmHK
}
else
{
confirmStatus
=
.
canConfirmHK
}
}
else
{
// 有确认在港日期
confirmStatus
=
.
haveConfirmHK
}
}
return
confirmStatus
return
confirmStatus
}
}
...
@@ -94,7 +98,7 @@ class YHResignAppointGroup: SmartCodable {
...
@@ -94,7 +98,7 @@ class YHResignAppointGroup: SmartCodable {
guard
let
date1
=
dateFormatter
.
date
(
from
:
dateString1
),
guard
let
date1
=
dateFormatter
.
date
(
from
:
dateString1
),
let
date2
=
dateFormatter
.
date
(
from
:
dateString2
)
else
{
let
date2
=
dateFormatter
.
date
(
from
:
dateString2
)
else
{
print
(
"日期格式错误"
)
print
(
"日期格式错误"
)
return
fals
e
return
tru
e
}
}
// 比较日期
// 比较日期
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/C/YHResignConfirmInfoListViewController.swift
View file @
c3955047
...
@@ -92,7 +92,6 @@ class YHResignConfirmInfoListViewController: YHBaseViewController {
...
@@ -92,7 +92,6 @@ class YHResignConfirmInfoListViewController: YHBaseViewController {
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
showRiskAlertView
()
requestList
()
requestList
()
}
}
...
@@ -218,6 +217,9 @@ extension YHResignConfirmInfoListViewController {
...
@@ -218,6 +217,9 @@ extension YHResignConfirmInfoListViewController {
func
requestList
()
{
func
requestList
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getList
(
id
:
stepId
)
{
success
,
error
in
self
.
viewModel
.
getList
(
id
:
stepId
)
{
success
,
error
in
if
success
{
self
.
showRiskAlertView
()
}
YHHUD
.
hide
()
YHHUD
.
hide
()
self
.
familyArr
.
removeAll
()
self
.
familyArr
.
removeAll
()
self
.
familyArr
.
append
(
contentsOf
:
self
.
viewModel
.
getList
())
self
.
familyArr
.
append
(
contentsOf
:
self
.
viewModel
.
getList
())
...
...
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