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
41d9a880
Commit
41d9a880
authored
Oct 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
90c050a9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
382 additions
and
79 deletions
+382
-79
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHResignAppointContainerViewController.swift
...nt(在港递交预约)/C/YHResignAppointContainerViewController.swift
+16
-3
YHResignAppointSubmitScheduleViewController.swift
...递交预约)/C/YHResignAppointSubmitScheduleViewController.swift
+1
-1
YHResignAppointTimeViewController.swift
...Appoint(在港递交预约)/C/YHResignAppointTimeViewController.swift
+174
-40
YHResignAppointGroup.swift
...(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
+8
-0
YHResignAppointMember.swift
...续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointMember.swift
+34
-1
YHResignAppointTimeSettingModel.swift
...HKAppoint(在港递交预约)/M/YHResignAppointTimeSettingModel.swift
+24
-0
YHResignAppointApplicantCell.swift
...ignHKAppoint(在港递交预约)/V/YHResignAppointApplicantCell.swift
+58
-0
YHResignAppointTimeMultipleCell.swift
...HKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
+35
-34
YHResignAppointViewModel.swift
...ResignHKAppoint(在港递交预约)/VM/YHResignAppointViewModel.swift
+24
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
41d9a880
...
@@ -599,6 +599,8 @@
...
@@ -599,6 +599,8 @@
04CE1AE32C2AD91F001CB80A
/* YHApplyActivityAlert.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CE1ACE2C2AD91F001CB80A
/* YHApplyActivityAlert.swift */
;
};
04CE1AE32C2AD91F001CB80A
/* YHApplyActivityAlert.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CE1ACE2C2AD91F001CB80A
/* YHApplyActivityAlert.swift */
;
};
04D144762C0452E200EE3758
/* YHOneKeyLoginManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D144752C0452E200EE3758
/* YHOneKeyLoginManager.swift */
;
};
04D144762C0452E200EE3758
/* YHOneKeyLoginManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D144752C0452E200EE3758
/* YHOneKeyLoginManager.swift */
;
};
04D5C5662B8ED92600190021
/* YHBaseModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D5C5652B8ED92600190021
/* YHBaseModel.swift */
;
};
04D5C5662B8ED92600190021
/* YHBaseModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D5C5652B8ED92600190021
/* YHBaseModel.swift */
;
};
04DF69B92CB95241005AA41E
/* YHResignAppointTimeSettingModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04DF69B82CB95241005AA41E
/* YHResignAppointTimeSettingModel.swift */
;
};
04DF69BB2CBA1CC5005AA41E
/* YHResignAppointApplicantCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04DF69BA2CBA1CC5005AA41E
/* YHResignAppointApplicantCell.swift */
;
};
04E41DE82BD240570077EAE3
/* YHOrderDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E41DE72BD240570077EAE3
/* YHOrderDetailViewController.swift */
;
};
04E41DE82BD240570077EAE3
/* YHOrderDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E41DE72BD240570077EAE3
/* YHOrderDetailViewController.swift */
;
};
04E86E0D2B70D51D00A35F4B
/* YHWebViewViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E86E0C2B70D51D00A35F4B
/* YHWebViewViewController.swift */
;
};
04E86E0D2B70D51D00A35F4B
/* YHWebViewViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E86E0C2B70D51D00A35F4B
/* YHWebViewViewController.swift */
;
};
04E86E662B86EB6F00A35F4B
/* YHLoginManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E86E652B86EB6F00A35F4B
/* YHLoginManager.swift */
;
};
04E86E662B86EB6F00A35F4B
/* YHLoginManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E86E652B86EB6F00A35F4B
/* YHLoginManager.swift */
;
};
...
@@ -1506,6 +1508,8 @@
...
@@ -1506,6 +1508,8 @@
04CE1ACE2C2AD91F001CB80A
/* YHApplyActivityAlert.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHApplyActivityAlert.swift
;
sourceTree
=
"<group>"
;
};
04CE1ACE2C2AD91F001CB80A
/* YHApplyActivityAlert.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHApplyActivityAlert.swift
;
sourceTree
=
"<group>"
;
};
04D144752C0452E200EE3758
/* YHOneKeyLoginManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOneKeyLoginManager.swift
;
sourceTree
=
"<group>"
;
};
04D144752C0452E200EE3758
/* YHOneKeyLoginManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOneKeyLoginManager.swift
;
sourceTree
=
"<group>"
;
};
04D5C5652B8ED92600190021
/* YHBaseModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseModel.swift
;
sourceTree
=
"<group>"
;
};
04D5C5652B8ED92600190021
/* YHBaseModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseModel.swift
;
sourceTree
=
"<group>"
;
};
04DF69B82CB95241005AA41E
/* YHResignAppointTimeSettingModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignAppointTimeSettingModel.swift
;
sourceTree
=
"<group>"
;
};
04DF69BA2CBA1CC5005AA41E
/* YHResignAppointApplicantCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignAppointApplicantCell.swift
;
sourceTree
=
"<group>"
;
};
04E41DE72BD240570077EAE3
/* YHOrderDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOrderDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
04E41DE72BD240570077EAE3
/* YHOrderDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOrderDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
04E86E0C2B70D51D00A35F4B
/* YHWebViewViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWebViewViewController.swift
;
sourceTree
=
"<group>"
;
};
04E86E0C2B70D51D00A35F4B
/* YHWebViewViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHWebViewViewController.swift
;
sourceTree
=
"<group>"
;
};
04E86E652B86EB6F00A35F4B
/* YHLoginManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginManager.swift
;
sourceTree
=
"<group>"
;
};
04E86E652B86EB6F00A35F4B
/* YHLoginManager.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginManager.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -3495,6 +3499,7 @@
...
@@ -3495,6 +3499,7 @@
04912F832CB7D14D00CC3105
/* YHResignAppointedScheduleLineCollectCell.swift */
,
04912F832CB7D14D00CC3105
/* YHResignAppointedScheduleLineCollectCell.swift */
,
04912F852CB7EF6100CC3105
/* YHResignHaveAppointedMultipleInfoCell.swift */
,
04912F852CB7EF6100CC3105
/* YHResignHaveAppointedMultipleInfoCell.swift */
,
04912F892CB9000200CC3105
/* YHResignHaveAppointedSingleInfoCell.swift */
,
04912F892CB9000200CC3105
/* YHResignHaveAppointedSingleInfoCell.swift */
,
04DF69BA2CBA1CC5005AA41E
/* YHResignAppointApplicantCell.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -3504,6 +3509,7 @@
...
@@ -3504,6 +3509,7 @@
children
=
(
children
=
(
04912F8F2CB917BC00CC3105
/* YHResignAppointMember.swift */
,
04912F8F2CB917BC00CC3105
/* YHResignAppointMember.swift */
,
04912F912CB91A6F00CC3105
/* YHResignAppointGroup.swift */
,
04912F912CB91A6F00CC3105
/* YHResignAppointGroup.swift */
,
04DF69B82CB95241005AA41E
/* YHResignAppointTimeSettingModel.swift */
,
);
);
path
=
M
;
path
=
M
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -5493,6 +5499,7 @@
...
@@ -5493,6 +5499,7 @@
04256E1B2C75C60C00A37BA4
/* YHHKMemberModel.swift in Sources */
,
04256E1B2C75C60C00A37BA4
/* YHHKMemberModel.swift in Sources */
,
04912F782CB7A11700CC3105
/* YHResignAppointOptionCell.swift in Sources */
,
04912F782CB7A11700CC3105
/* YHResignAppointOptionCell.swift in Sources */
,
045EEF232B9F171A0022A143
/* YHItemView.swift in Sources */
,
045EEF232B9F171A0022A143
/* YHItemView.swift in Sources */
,
04DF69B92CB95241005AA41E
/* YHResignAppointTimeSettingModel.swift in Sources */
,
04256E192C75BD2700A37BA4
/* YHVisaPaymentViewModel.swift in Sources */
,
04256E192C75BD2700A37BA4
/* YHVisaPaymentViewModel.swift in Sources */
,
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
,
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
,
04256DD02C7041C700A37BA4
/* YHInfoItemView.swift in Sources */
,
04256DD02C7041C700A37BA4
/* YHInfoItemView.swift in Sources */
,
...
@@ -5694,6 +5701,7 @@
...
@@ -5694,6 +5701,7 @@
0430E6642C7482DD000511E2
/* YHYHAdopterTravelViewModel.swift in Sources */
,
0430E6642C7482DD000511E2
/* YHYHAdopterTravelViewModel.swift in Sources */
,
A5CA3F502C7447FB00EB22F5
/* YHUploadCertificateVC.swift in Sources */
,
A5CA3F502C7447FB00EB22F5
/* YHUploadCertificateVC.swift in Sources */
,
04A7BD192BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift in Sources */
,
04A7BD192BA441D400BD35A2
/* YHMyDocumentsUrlModel.swift in Sources */
,
04DF69BB2CBA1CC5005AA41E
/* YHResignAppointApplicantCell.swift in Sources */
,
04174D792BCD5B74000BA46D
/* YHMessageSessionCell.swift in Sources */
,
04174D792BCD5B74000BA46D
/* YHMessageSessionCell.swift in Sources */
,
044F39362CB6574D007CA277
/* YHVisaRenewalGuideHeaderCell.swift in Sources */
,
044F39362CB6574D007CA277
/* YHVisaRenewalGuideHeaderCell.swift in Sources */
,
04C85DE92C36BF49008B20D6
/* YHMyFileListFooterView.swift in Sources */
,
04C85DE92C36BF49008B20D6
/* YHMyFileListFooterView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointContainerViewController.swift
View file @
41d9a880
...
@@ -34,14 +34,28 @@ class YHResignAppointContainerViewController: YHBaseViewController {
...
@@ -34,14 +34,28 @@ class YHResignAppointContainerViewController: YHBaseViewController {
self
.
view
.
addSubview
(
appointVC
.
view
)
self
.
view
.
addSubview
(
appointVC
.
view
)
self
.
view
.
addSubview
(
scheduleVC
.
view
)
self
.
view
.
addSubview
(
scheduleVC
.
view
)
requestData
()
}
func
requestData
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
viewModel
.
getAppointInfoList
(
renewalId
:
renewalId
)
{
viewModel
.
getAppointInfoList
(
renewalId
:
renewalId
)
{
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
self
.
viewModel
.
appointInfoListModel
.
renewal_List
.
count
<=
0
{
// 没有预约过
if
self
.
viewModel
.
appointInfoListModel
.
renewal_List
.
count
<=
0
{
// 没有预约过
self
.
appointVC
.
view
.
isHidden
=
false
// 请求预约人员列表
self
.
scheduleVC
.
view
.
isHidden
=
true
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getResignAppointUserlist
(
renewalId
:
self
.
renewalId
)
{
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
self
.
appointVC
.
allAppointUsers
=
self
.
viewModel
.
appointUsers
self
.
appointVC
.
updateUI
()
self
.
appointVC
.
view
.
isHidden
=
false
self
.
scheduleVC
.
view
.
isHidden
=
true
}
}
else
{
// 预约过
}
else
{
// 预约过
self
.
scheduleVC
.
view
.
isHidden
=
false
self
.
scheduleVC
.
view
.
isHidden
=
false
...
@@ -49,5 +63,4 @@ class YHResignAppointContainerViewController: YHBaseViewController {
...
@@ -49,5 +63,4 @@ class YHResignAppointContainerViewController: YHBaseViewController {
}
}
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointSubmitScheduleViewController.swift
View file @
41d9a880
...
@@ -75,7 +75,7 @@ class YHResignAppointSubmitScheduleViewController: YHBaseViewController {
...
@@ -75,7 +75,7 @@ class YHResignAppointSubmitScheduleViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
self
.
gk_navTitle
=
"
预约在港递交时间
"
self
.
gk_navTitle
=
"
续签在港递交行程安排
"
self
.
gk_navigationBar
.
backgroundColor
=
.
white
self
.
gk_navigationBar
.
backgroundColor
=
.
white
self
.
view
.
backgroundColor
=
.
init
(
hex
:
0xF8F9FB
)
self
.
view
.
backgroundColor
=
.
init
(
hex
:
0xF8F9FB
)
self
.
view
.
addSubview
(
tableView
)
self
.
view
.
addSubview
(
tableView
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointTimeViewController.swift
View file @
41d9a880
...
@@ -12,7 +12,23 @@ import SwifterSwift
...
@@ -12,7 +12,23 @@ import SwifterSwift
class
YHResignAppointTimeViewController
:
YHBaseViewController
{
class
YHResignAppointTimeViewController
:
YHBaseViewController
{
var
familyArr
:
[
String
]
=
[
""
,
""
,
""
,
""
,
""
]
// 所有预约人员
var
allAppointUsers
:
[
YHResignAppointMember
]
=
[]
// 申请人是否在港
var
togetherArr
:
[
YHResignAppointTogetherSetting
]
=
[]
var
togetherSetting
=
YHResignAppointTogetherSetting
()
// 分组信息
var
selectGroupArr
:
[
YHResignAppointTimeSettingModel
]
=
[]
// 是否一起赴港
var
isTogether
:
Bool
=
true
// 是否单人
private
var
isOnyOne
:
Bool
{
get
{
return
allAppointUsers
.
count
<=
1
}
}
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
...
@@ -20,18 +36,15 @@ class YHResignAppointTimeViewController: YHBaseViewController {
...
@@ -20,18 +36,15 @@ class YHResignAppointTimeViewController: YHBaseViewController {
tableView
.
sectionHeaderTopPadding
=
0.0
tableView
.
sectionHeaderTopPadding
=
0.0
}
}
tableView
.
estimatedSectionHeaderHeight
=
0.1
tableView
.
estimatedSectionHeaderHeight
=
0.1
tableView
.
estimatedSectionFooterHeight
=
16.0
tableView
.
estimatedSectionFooterHeight
=
0.1
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
backgroundColor
=
.
clear
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
separatorStyle
=
.
none
tableView
.
bounces
=
false
tableView
.
bounces
=
false
tableView
.
register
(
YHResignAppointTimeSingleCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointTimeSingleCell
.
cellReuseIdentifier
)
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHResignAppointOptionCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointOptionCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointOptionCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointOptionCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointApplicantInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointApplicantInfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointTimeSingleCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointTimeSingleCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointOptionResultCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointOptionResultCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignHaveAppointedMultipleInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignHaveAppointedMultipleInfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignHaveAppointedSingleInfoCell
.
self
,
forCellReuseIdentifier
:
YHResignHaveAppointedSingleInfoCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointTimeMultipleCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointTimeMultipleCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHResignAppointTimeMultipleCell
.
self
,
forCellReuseIdentifier
:
YHResignAppointTimeMultipleCell
.
cellReuseIdentifier
)
tableView
.
delegate
=
self
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
dataSource
=
self
...
@@ -96,9 +109,131 @@ class YHResignAppointTimeViewController: YHBaseViewController {
...
@@ -96,9 +109,131 @@ class YHResignAppointTimeViewController: YHBaseViewController {
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
98
)
make
.
height
.
equalTo
(
98
)
}
}
}
}
func
updateUI
()
{
togetherArr
.
removeAll
()
selectGroupArr
.
removeAll
()
if
isOnyOne
{
// 只有一个人
let
model1
=
YHResignAppointTimeSettingModel
()
selectGroupArr
.
append
(
model1
)
self
.
tableView
.
reloadData
()
return
}
// 有多人
// 一起递交数据
togetherArr
.
append
(
togetherSetting
)
// 分组数据
let
model1
=
YHResignAppointTimeSettingModel
()
// 默认全部选中
let
users
=
allAppointUsers
.
deepCopy
()
.
map
{
let
item
=
$0
item
.
isSelected
=
true
return
item
}
model1
.
users
=
users
selectGroupArr
.
append
(
model1
)
self
.
tableView
.
reloadData
()
}
// memberId 申请人id
// select 点击选择
// groupLevel 是分的第几组 从0开始计数
func
selectMember
(
_
currentMember
:
YHResignAppointMember
,
select
:
Bool
,
groupLevel
:
Int
)
{
// 获取当前批的成员组
var
currentMembers
:[
YHResignAppointMember
]
=
[]
// 先改变点击当前批的选择状态
if
0
<=
groupLevel
,
groupLevel
<
selectGroupArr
.
count
{
let
item
=
selectGroupArr
[
groupLevel
]
let
members
=
item
.
users
currentMembers
=
members
for
member
in
members
{
if
member
.
id
==
currentMember
.
id
{
member
.
isSelected
=
select
}
}
}
if
!
select
{
// 如果操作是取消
// 如果操作的当前批次是最后一批,则需要分新批次
if
groupLevel
==
selectGroupArr
.
count
-
1
{
// 进行分批
let
newItem
=
YHResignAppointTimeSettingModel
()
// 批次+1
newItem
.
itemIndex
=
groupLevel
+
1
// 找出上一批未选中的人
let
needMembers
=
currentMembers
.
filter
{
return
$0
.
isSelected
==
false
}
// 在下一批中默认全选中
let
nextMembers
=
needMembers
.
deepCopy
()
.
map
{
let
item
=
$0
item
.
isSelected
=
true
return
item
}
newItem
.
users
=
nextMembers
selectGroupArr
.
append
(
newItem
)
}
else
{
// 如果操作的当前批次不是最后一批 需要更新后面几批的选中状态
let
nextGroupIndex
=
groupLevel
+
1
let
newMember
=
currentMember
.
copy
()
as!
YHResignAppointMember
newMember
.
isSelected
=
true
if
0
<=
groupLevel
,
groupLevel
<
selectGroupArr
.
count
{
let
item
=
selectGroupArr
[
nextGroupIndex
]
var
members
=
item
.
users
members
.
append
(
newMember
)
item
.
users
=
members
}
}
}
else
{
// 如果操作是选中
// 肯定会有下一层因为之前取消过
let
nextGroupIndex
=
groupLevel
+
1
if
0
<=
nextGroupIndex
,
nextGroupIndex
<
selectGroupArr
.
count
{
for
i
in
nextGroupIndex
..<
selectGroupArr
.
count
{
let
item
=
selectGroupArr
[
i
]
var
members
=
item
.
users
// 下几批的组员中都要删除该人
members
=
members
.
filter
{
$0
.
id
!=
currentMember
.
id
}
item
.
users
=
members
}
}
}
// 无论是选中还是反选 检测下面所有批次有无全未选数组,有则删除该批
let
nextGroupIndex
=
groupLevel
+
1
if
0
<=
nextGroupIndex
,
nextGroupIndex
<
selectGroupArr
.
count
{
var
i
=
nextGroupIndex
while
i
<
selectGroupArr
.
count
{
let
item
=
selectGroupArr
[
i
]
let
members
=
item
.
users
let
a
=
members
.
filter
{
return
$0
.
isSelected
==
true
}
// 数组中全未选
if
a
.
count
<=
0
{
selectGroupArr
.
remove
(
at
:
i
)
}
else
{
i
+=
1
}
}
}
// 重新进行批次排号
for
(
index
,
group
)
in
selectGroupArr
.
enumerated
()
{
group
.
itemIndex
=
index
}
self
.
tableView
.
reloadData
()
}
@objc
func
didSubmitBtnClicked
()
{
@objc
func
didSubmitBtnClicked
()
{
}
}
...
@@ -106,42 +241,45 @@ class YHResignAppointTimeViewController: YHBaseViewController {
...
@@ -106,42 +241,45 @@ class YHResignAppointTimeViewController: YHBaseViewController {
extension
YHResignAppointTimeViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHResignAppointTimeViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
2
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
familyArr
.
count
if
section
==
0
{
// 是否一起在港递交的section
return
togetherArr
.
count
}
// 分组section
return
selectGroupArr
.
count
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell2
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointTimeSingleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointTimeSingleCell
if
indexPath
.
section
==
0
{
// 是否一起在港递交的cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointOptionCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointOptionCell
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
familyArr
.
count
{
if
indexPath
.
row
==
0
{
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointOptionResultCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointOptionResultCell
return
cell1
}
if
indexPath
.
row
==
1
{
return
cell
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointOptionCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointOptionCell
}
return
cell1
}
// 分组cell
if
indexPath
.
row
==
2
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
selectGroupArr
.
count
{
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointApplicantInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointApplicantInfoCell
let
model
=
selectGroupArr
[
indexPath
.
row
]
return
cell1
if
model
.
users
.
count
<=
0
{
// 说明是一起在港递交
}
let
cell2
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointTimeSingleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointTimeSingleCell
return
cell2
if
indexPath
.
row
==
3
{
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignHaveAppointedSingleInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignHaveAppointedSingleInfoCell
return
cell1
}
}
let
cell3
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointTimeMultipleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointTimeMultipleCell
if
indexPath
.
row
==
4
{
cell3
.
updateModel
(
model
)
let
cell1
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignAppointTimeMultipleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointTimeMultipleCell
cell3
.
selectBlock
=
{
return
cell1
[
weak
self
]
member
,
isSelect
,
groupIndex
in
guard
let
self
=
self
else
{
return
}
self
.
selectMember
(
member
,
select
:
isSelect
,
groupLevel
:
groupIndex
)
}
}
return
cell3
}
}
return
cell2
let
defaultCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"UITableViewCell"
,
for
:
indexPath
)
return
defaultCell
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
...
@@ -150,10 +288,6 @@ extension YHResignAppointTimeViewController: UITableViewDelegate, UITableViewDat
...
@@ -150,10 +288,6 @@ extension YHResignAppointTimeViewController: UITableViewDelegate, UITableViewDat
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
familyArr
.
count
{
let
model
=
familyArr
[
indexPath
.
row
]
}
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
...
@@ -161,7 +295,7 @@ extension YHResignAppointTimeViewController: UITableViewDelegate, UITableViewDat
...
@@ -161,7 +295,7 @@ extension YHResignAppointTimeViewController: UITableViewDelegate, UITableViewDat
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
16
return
0.1
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointGroup.swift
View file @
41d9a880
...
@@ -9,6 +9,14 @@
...
@@ -9,6 +9,14 @@
import
UIKit
import
UIKit
import
SmartCodable
import
SmartCodable
class
YHResignAppointTogetherSetting
:
SmartCodable
{
var
is_together
:
Int
=
0
// 0未选择 1是 2不是 一起赴港
required
init
()
{
}
}
class
YHResignAppointListModel
:
SmartCodable
{
class
YHResignAppointListModel
:
SmartCodable
{
var
is_together
:
Int
=
0
// 1 是2不是 一起赴港
var
is_together
:
Int
=
0
// 1 是2不是 一起赴港
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointMember.swift
View file @
41d9a880
...
@@ -9,7 +9,20 @@
...
@@ -9,7 +9,20 @@
import
UIKit
import
UIKit
import
SmartCodable
import
SmartCodable
class
YHResignAppointMember
:
SmartCodable
{
// [YHResignAppointMember] 数组实现神拷贝
extension
Array
where
Element
==
YHResignAppointMember
{
func
deepCopy
()
->
[
YHResignAppointMember
]
{
var
results
:
[
YHResignAppointMember
]
=
[]
for
item
in
self
{
let
newItem
=
item
.
copy
()
results
.
append
(
newItem
as!
YHResignAppointMember
)
}
return
results
}
}
class
YHResignAppointMember
:
SmartCodable
,
NSCopying
{
var
id
:
Int
=
0
var
id
:
Int
=
0
var
renewal_number
:
Int
=
0
var
renewal_number
:
Int
=
0
...
@@ -19,9 +32,29 @@ class YHResignAppointMember: SmartCodable {
...
@@ -19,9 +32,29 @@ class YHResignAppointMember: SmartCodable {
var
stay_deadline
:
String
=
""
var
stay_deadline
:
String
=
""
var
state
:
String
=
""
var
state
:
String
=
""
// 自定义 是否选中
var
isSelected
:
Bool
=
false
required
init
()
{
required
init
()
{
}
}
init
(
id
:
Int
,
renewal_number
:
Int
,
apply_relation
:
Int
,
apply_uid
:
String
,
apply_name
:
String
,
stay_deadline
:
String
,
state
:
String
,
isSelected
:
Bool
)
{
self
.
id
=
id
self
.
renewal_number
=
renewal_number
self
.
apply_relation
=
apply_relation
self
.
apply_uid
=
apply_uid
self
.
apply_name
=
apply_name
self
.
stay_deadline
=
stay_deadline
self
.
state
=
state
self
.
isSelected
=
isSelected
}
func
copy
(
with
zone
:
NSZone
?
=
nil
)
->
Any
{
return
YHResignAppointMember
(
id
:
self
.
id
,
renewal_number
:
self
.
renewal_number
,
apply_relation
:
self
.
apply_relation
,
apply_uid
:
self
.
apply_uid
,
apply_name
:
self
.
apply_name
,
stay_deadline
:
self
.
stay_deadline
,
state
:
self
.
state
,
isSelected
:
self
.
isSelected
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/M/YHResignAppointTimeSettingModel.swift
0 → 100644
View file @
41d9a880
//
// YHResignAppointTimeSettingModel.swift
// galaxy
//
// Created by edy on 2024/10/11.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SmartCodable
class
YHResignAppointTimeSettingModel
:
SmartCodable
{
var
ready_to_submit_at
:
String
=
""
// 预约在港递交时间
var
leave_hk_at
:
String
=
""
// 预计离港时间
var
notleaveHK
:
Bool
=
false
// 暂不离港
var
users
:
[
YHResignAppointMember
]
=
[]
var
itemIndex
:
Int
=
0
// 第几批
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointApplicantCell.swift
0 → 100644
View file @
41d9a880
//
// YHResignAppointApplicantCell.swift
// galaxy
//
// Created by edy on 2024/10/12.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHResignAppointApplicantCell
:
UICollectionViewCell
{
static
let
cellReuseIdentifier
=
"YHResignAppointApplicantCell"
lazy
var
selectImgView
:
UIImageView
=
{
let
view
=
UIImageView
(
image
:
UIImage
(
named
:
""
))
return
view
}()
lazy
var
nameLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textColor
=
.
mainTextColor
return
label
}()
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
createUI
()
{
self
.
addSubview
(
selectImgView
)
self
.
addSubview
(
nameLabel
)
selectImgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
0
)
make
.
width
.
height
.
equalTo
(
14
)
make
.
centerY
.
equalToSuperview
()
}
nameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
selectImgView
.
snp
.
right
)
.
offset
(
6
)
make
.
centerY
.
equalToSuperview
()
make
.
right
.
equalToSuperview
()
}
}
func
updateApplicantInfo
(
_
applicant
:
YHResignAppointMember
)
{
nameLabel
.
text
=
applicant
.
apply_name
let
imgName
=
applicant
.
isSelected
?
"login_privacy_agree"
:
"login_privacy_disagree_glay"
selectImgView
.
image
=
UIImage
(
named
:
imgName
)
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
View file @
41d9a880
...
@@ -13,18 +13,12 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
...
@@ -13,18 +13,12 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHResignAppointTimeMultipleCell"
static
let
cellReuseIdentifier
=
"YHResignAppointTimeMultipleCell"
var
arr
:[
YHHKMemberModel
]
=
{
var
model
:
YHResignAppointTimeSettingModel
=
YHResignAppointTimeSettingModel
()
let
m1
=
YHHKMemberModel
()
m1
.
name
=
"侯林"
var
arr
:[
YHResignAppointMember
]
=
[]
let
m2
=
YHHKMemberModel
()
m2
.
name
=
"李小龙"
// param 选中的用户 是否选中 选中的用户是第几批
let
m3
=
YHHKMemberModel
()
var
selectBlock
:
((
_
member
:
YHResignAppointMember
,
_
isSelect
:
Bool
,
_
groupIndex
:
Int
)
->
())?
m3
.
name
=
"啊发顺丰进啦司法局阿里司法"
let
m4
=
YHHKMemberModel
()
m4
.
name
=
"司法"
return
[
m1
,
m2
,
m3
,
m4
]
}()
lazy
var
whiteContentView
:
UIView
=
{
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
...
@@ -85,7 +79,7 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
...
@@ -85,7 +79,7 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
collectView
.
dataSource
=
self
collectView
.
dataSource
=
self
collectView
.
backgroundColor
=
.
clear
collectView
.
backgroundColor
=
.
clear
// 注册自定义单元格
// 注册自定义单元格
collectView
.
register
(
YH
SelectApplicantCell
.
self
,
forCellWithReuseIdentifier
:
YHSelec
tApplicantCell
.
cellReuseIdentifier
)
collectView
.
register
(
YH
ResignAppointApplicantCell
.
self
,
forCellWithReuseIdentifier
:
YHResignAppoin
tApplicantCell
.
cellReuseIdentifier
)
return
collectView
return
collectView
}()
}()
...
@@ -133,6 +127,17 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
...
@@ -133,6 +127,17 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
setupUI
()
setupUI
()
}
}
func
updateModel
(
_
model
:
YHResignAppointTimeSettingModel
)
{
self
.
model
=
model
titleLabel
.
text
=
"请确认第
\(
model
.
itemIndex
+
1
)
批赴港递交信息"
subTitleLabel
.
text
=
"选择第
\(
model
.
itemIndex
+
1
)
批赴港递交的申请人"
self
.
arr
.
removeAll
()
self
.
arr
.
append
(
contentsOf
:
model
.
users
)
updateUI
()
}
func
setupUI
()
{
func
setupUI
()
{
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
...
@@ -242,32 +247,28 @@ extension YHResignAppointTimeMultipleCell: UICollectionViewDelegate, UICollectio
...
@@ -242,32 +247,28 @@ extension YHResignAppointTimeMultipleCell: UICollectionViewDelegate, UICollectio
// 返回自定义单元格
// 返回自定义单元格
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHSelectApplicantCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHSelectApplicantCell
// if let arr = dataModel?.model?.arr {
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
arr
.
count
{
let
applicant
=
arr
[
indexPath
.
item
]
cell
.
updateApplicantInfo
(
applicant
)
}
// }
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHResignAppointApplicantCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignAppointApplicantCell
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
arr
.
count
{
let
applicant
=
arr
[
indexPath
.
item
]
cell
.
updateApplicantInfo
(
applicant
)
}
return
cell
return
cell
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
// if let dataModel = self.dataModel, let model = dataModel.model {
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
arr
.
count
{
// if 0 <= indexPath.item && indexPath.item < model.arr.count {
let
member
=
arr
[
indexPath
.
item
]
// let member = model.arr[indexPath.item]
let
selectArr
=
arr
.
filter
{
// let selectArr = model.arr.filter {
return
$0
.
isSelected
==
true
// return $0.isSelected == true
}
// }
if
selectArr
.
count
==
1
,
member
.
isSelected
==
true
,
member
.
id
==
selectArr
[
0
]
.
id
{
// if selectArr.count == 1, member.isSelected == true, member.id == selectArr[0].id {
// 分组中仅有一个选中用户 且点击的是该用户
// // 分组中仅有一个选中用户 且点击的是该用户
YHHUD
.
flash
(
message
:
"每一批赴港申请人不可为空,请确保每位申请人都在列"
)
// YHHUD.flash(message: "每一批赴港申请人不可为空,请确保每位申请人都在列")
return
// return
}
// }
selectBlock
?(
member
,
!
member
.
isSelected
,
self
.
model
.
itemIndex
)
// selectBlock?(member, !member.isSelected, dataModel.itemIndex)
}
// }
// }
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/VM/YHResignAppointViewModel.swift
View file @
41d9a880
...
@@ -37,6 +37,7 @@ class YHResignAppointViewModel: NSObject {
...
@@ -37,6 +37,7 @@ class YHResignAppointViewModel: NSObject {
}
else
{
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
self
.
appointUsers
=
[]
self
.
appointUsers
=
[]
self
.
appointUsers
=
self
.
getUsers
()
callBack
(
false
,
error
)
callBack
(
false
,
error
)
}
}
...
@@ -46,6 +47,27 @@ class YHResignAppointViewModel: NSObject {
...
@@ -46,6 +47,27 @@ class YHResignAppointViewModel: NSObject {
}
}
}
}
func
getUsers
()
->
[
YHResignAppointMember
]
{
let
m1
=
YHResignAppointMember
()
m1
.
apply_name
=
"刘德华"
m1
.
id
=
123
let
m2
=
YHResignAppointMember
()
m2
.
apply_name
=
"黎明"
m2
.
id
=
124
let
m3
=
YHResignAppointMember
()
m3
.
apply_name
=
"郭富城"
m3
.
id
=
125
let
m4
=
YHResignAppointMember
()
m4
.
apply_name
=
"张学友"
m4
.
id
=
126
return
[
m1
,
m2
,
m3
,
m4
]
}
// 预约列表预约
// 预约列表预约
func
getAppointInfoList
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
getAppointInfoList
(
renewalId
:
Int
,
callBack
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
params
=
[
"renewal_id"
:
renewalId
]
let
params
=
[
"renewal_id"
:
renewalId
]
...
@@ -64,9 +86,11 @@ class YHResignAppointViewModel: NSObject {
...
@@ -64,9 +86,11 @@ class YHResignAppointViewModel: NSObject {
}
else
{
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
self
.
appointInfoListModel
=
YHResignAppointListModel
()
callBack
(
false
,
err
)
callBack
(
false
,
err
)
}
}
}
failBlock
:
{
err
in
}
failBlock
:
{
err
in
self
.
appointInfoListModel
=
YHResignAppointListModel
()
callBack
(
false
,
err
)
callBack
(
false
,
err
)
}
}
}
}
...
...
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