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
833f510e
Commit
833f510e
authored
Oct 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 增加result_open字段
parent
7dd22c68
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
16 deletions
+21
-16
YHResignAppointContainerViewController.swift
...nt(在港递交预约)/C/YHResignAppointContainerViewController.swift
+1
-0
YHResignAppointScheduleListViewController.swift
...在港递交预约)/C/YHResignAppointScheduleListViewController.swift
+5
-14
YHResignAppointGroup.swift
...(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
+1
-0
YHResignAppointGuideLineView.swift
...ignHKAppoint(在港递交预约)/V/YHResignAppointGuideLineView.swift
+1
-1
YHResignAppointedScheduleSingleItemView.swift
...t(在港递交预约)/V/YHResignAppointedScheduleSingleItemView.swift
+13
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointContainerViewController.swift
View file @
833f510e
...
@@ -93,6 +93,7 @@ class YHResignAppointContainerViewController: YHBaseViewController {
...
@@ -93,6 +93,7 @@ class YHResignAppointContainerViewController: YHBaseViewController {
}
else
{
// 预约过
}
else
{
// 预约过
self
.
scheduleVC
.
scheduleArr
=
self
.
viewModel
.
scheduleInfoList
.
renewal_List
self
.
scheduleVC
.
scheduleArr
=
self
.
viewModel
.
scheduleInfoList
.
renewal_List
self
.
scheduleVC
.
isTogether
=
self
.
viewModel
.
scheduleInfoList
.
is_together
self
.
scheduleVC
.
isTogether
=
self
.
viewModel
.
scheduleInfoList
.
is_together
self
.
scheduleVC
.
result_open
=
self
.
viewModel
.
scheduleInfoList
.
result_open
self
.
scheduleVC
.
view
.
isHidden
=
false
self
.
scheduleVC
.
view
.
isHidden
=
false
self
.
appointVC
.
view
.
isHidden
=
true
self
.
appointVC
.
view
.
isHidden
=
true
scheduleBlock
?()
scheduleBlock
?()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointScheduleListViewController.swift
View file @
833f510e
...
@@ -17,6 +17,8 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
...
@@ -17,6 +17,8 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
let
viewModel
=
YHResignAppointViewModel
()
let
viewModel
=
YHResignAppointViewModel
()
var
isTogether
:
Int
=
0
// 0单人 1一起 2分批
var
isTogether
:
Int
=
0
// 0单人 1一起 2分批
var
result_open
:
Bool
=
false
// 是否可以下一步,去查看递交凭证
var
scheduleArr
:
[
YHResignAppointGroup
]
=
[]
{
var
scheduleArr
:
[
YHResignAppointGroup
]
=
[]
{
didSet
{
didSet
{
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
...
@@ -158,10 +160,9 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
...
@@ -158,10 +160,9 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
// 更新底部下一步按钮点击状态
// 更新底部下一步按钮点击状态
func
updateBottomBtnAndMotifyBtnStatus
()
{
func
updateBottomBtnAndMotifyBtnStatus
()
{
// 至少有一个行程已确认在港
let
isCanNextStep
=
self
.
result_open
let
isAtLeatOneHaveConfirmInHK
=
self
.
isAtLeatOneHaveConfirmInHK
()
self
.
nextBtn
.
isUserInteractionEnabled
=
isCanNextStep
self
.
nextBtn
.
isUserInteractionEnabled
=
isAtLeatOneHaveConfirmInHK
self
.
nextBtn
.
alpha
=
isCanNextStep
?
1.0
:
0.3
self
.
nextBtn
.
alpha
=
isAtLeatOneHaveConfirmInHK
?
1.0
:
0.3
// 所有分批都已确认在港 则无需修改了
// 所有分批都已确认在港 则无需修改了
self
.
isHiddenModifyBtn
=
self
.
isAllHaveHaveConfirmInHK
()
self
.
isHiddenModifyBtn
=
self
.
isAllHaveHaveConfirmInHK
()
...
@@ -322,16 +323,6 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
...
@@ -322,16 +323,6 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
}
}
}
}
func
isAtLeatOneHaveConfirmInHK
()
->
Bool
{
// 所有行程安排中是否至少有一个已确认在港
for
group
in
scheduleArr
{
let
status
=
group
.
getConfirmInHKStatus
()
if
status
==
.
haveConfirmHK
{
return
true
}
}
return
false
}
func
isAllHaveHaveConfirmInHK
()
->
Bool
{
// 是否所有行程安排都已确认在港
func
isAllHaveHaveConfirmInHK
()
->
Bool
{
// 是否所有行程安排都已确认在港
var
isAllHaveConfirmed
=
true
var
isAllHaveConfirmed
=
true
for
group
in
scheduleArr
{
for
group
in
scheduleArr
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
View file @
833f510e
...
@@ -20,6 +20,7 @@ class YHResignAppointTogetherSetting: SmartCodable {
...
@@ -20,6 +20,7 @@ class YHResignAppointTogetherSetting: SmartCodable {
class
YHResignScheduleListModel
:
SmartCodable
{
class
YHResignScheduleListModel
:
SmartCodable
{
var
is_together
:
Int
=
0
// 1 是2不是 一起赴港
var
is_together
:
Int
=
0
// 1 是2不是 一起赴港
var
result_open
:
Bool
=
false
// 是否可以下一步,去查看递交凭证
var
renewal_List
:
[
YHResignAppointGroup
]
=
[]
var
renewal_List
:
[
YHResignAppointGroup
]
=
[]
required
init
()
{
required
init
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointGuideLineView.swift
View file @
833f510e
...
@@ -36,7 +36,7 @@ class YHResignAppointGuideLineView: UIView {
...
@@ -36,7 +36,7 @@ class YHResignAppointGuideLineView: UIView {
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
make
.
left
.
equalTo
(
kMargin
)
make
.
left
.
equalTo
(
kMargin
)
make
.
right
.
equalTo
(
-
kMargin
)
make
.
right
.
equalTo
(
-
kMargin
)
make
.
height
.
equalTo
(
4
4
)
make
.
height
.
equalTo
(
4
8
)
}
}
view
.
layer
.
zPosition
=
10
view
.
layer
.
zPosition
=
10
return
view
return
view
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointedScheduleSingleItemView.swift
View file @
833f510e
...
@@ -103,6 +103,18 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -103,6 +103,18 @@ class YHResignAppointedScheduleSingleItemView: UIView {
haveConfirmInHKLabel
.
isHidden
=
(
self
.
confirmHKStatus
!=
.
haveConfirmHK
)
haveConfirmInHKLabel
.
isHidden
=
(
self
.
confirmHKStatus
!=
.
haveConfirmHK
)
confirmInHKBtn
.
isHidden
=
(
self
.
confirmHKStatus
==
.
haveConfirmHK
)
confirmInHKBtn
.
isHidden
=
(
self
.
confirmHKStatus
==
.
haveConfirmHK
)
var
statusWidth
=
71.0
if
self
.
confirmHKStatus
==
.
waitConfirmHK
{
statusWidth
=
71.0
}
else
if
self
.
confirmHKStatus
==
.
canConfirmHK
{
statusWidth
=
68.0
}
else
if
self
.
confirmHKStatus
==
.
haveConfirmHK
{
statusWidth
=
65.0
}
applicantNamesLabel
.
snp
.
updateConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
-
statusWidth
-
18
)
}
if
self
.
confirmHKStatus
==
.
waitConfirmHK
{
if
self
.
confirmHKStatus
==
.
waitConfirmHK
{
confirmInHKBtn
.
setTitle
(
"待确认在港"
,
for
:
.
normal
)
confirmInHKBtn
.
setTitle
(
"待确认在港"
,
for
:
.
normal
)
confirmInHKBtn
.
setTitleColor
(
.
mainTextColor
,
for
:
.
normal
)
confirmInHKBtn
.
setTitleColor
(
.
mainTextColor
,
for
:
.
normal
)
...
@@ -172,7 +184,7 @@ class YHResignAppointedScheduleSingleItemView: UIView {
...
@@ -172,7 +184,7 @@ class YHResignAppointedScheduleSingleItemView: UIView {
applicantNamesLabel
.
snp
.
makeConstraints
{
make
in
applicantNamesLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
-
71
-
5
)
make
.
right
.
equalTo
(
-
18
-
71
-
18
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
}
}
...
...
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