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
f368ee58
Commit
f368ee58
authored
Aug 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港
parent
ee61fa1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
8 deletions
+61
-8
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+38
-8
YHCerAppointViewModel.swift
...pointCertificate(3 赴港办证预约)/VM/YHCerAppointViewModel.swift
+23
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
f368ee58
...
...
@@ -700,7 +700,7 @@ extension YHCertificateAppointViewController {
}
// 办证地点未选
if
groupModel
.
hkPlace
.
id
<=
0
{
if
groupModel
.
hkPlace
.
name
.
isEmpty
{
groupModel
.
isNeedCheck
=
true
isOK
=
false
}
...
...
@@ -711,6 +711,7 @@ extension YHCertificateAppointViewController {
return
}
var
batchs
:[[
String
:
Any
]]
=
[]
for
group
in
items2
{
if
let
model
=
group
.
model
{
var
start_time
=
""
...
...
@@ -724,17 +725,46 @@ extension YHCertificateAppointViewController {
end_time
=
model
.
endDateStr
}
let
users
=
model
.
arr
.
map
{
var
dict
=
[
"id"
:
$0
.
id
,
"type"
:
""
,
let
selectUsers
=
model
.
arr
.
filter
{
return
$0
.
isSelected
==
true
}
let
users
=
selectUsers
.
map
{
let
dict
=
[
"id"
:
$0
.
id
,
"type"
:
$0
.
type
,
"name"
:
$0
.
name
]
as!
[
String
:
Any
]
return
dict
}
var
batch
:[
String
:
Any
]
=
[
"start_time"
:
start_time
,
"end_time"
:
end_time
,
"migration_office"
:
model
.
hkPlace
.
name
,
"users"
:
users
]
if
users
.
count
>
0
{
let
batch
:[
String
:
Any
]
=
[
"start_time"
:
start_time
,
"end_time"
:
end_time
,
"migration_office"
:
model
.
hkPlace
.
name
,
"users"
:
users
]
batchs
.
append
(
batch
)
}
}
}
// 请求参数
let
params
:[
String
:
Any
]
=
[
"order_id"
:
orderId
,
"batch"
:
batchs
]
printLog
(
"
\(
params
)
"
)
// if true {
// return
// }
viewModel
.
submitAppoint
(
params
:
params
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
success
{
YHHUD
.
flash
(
message
:
"提交成功"
)
self
.
requestData
()
return
}
let
msg
=
error
?
.
errorMsg
??
""
YHHUD
.
flash
(
message
:
msg
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/VM/YHCerAppointViewModel.swift
View file @
f368ee58
...
...
@@ -203,6 +203,29 @@ class YHCerAppointViewModel: NSObject {
}
}
// 提交赴港时间预约
func
submitAppoint
(
params
:[
String
:
Any
],
callback
:((
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())?)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
AppointHK
.
appointResult
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
code
in
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
callback
?(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
?(
false
,
err
)
}
}
failBlock
:
{
err
in
callback
?(
false
,
err
)
}
}
// 是否需要赴港
func
getIsNeedGoToHK
(
orderId
:
Int
,
callback
:((
_
needGoHK
:
Int
,
_
reservationToHK
:
Int
)
->
())?)
{
...
...
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