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
92dabbb5
Commit
92dabbb5
authored
Feb 27, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
协助后台编程
parent
f095a76c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
YHMainApplicantInformationViewController.swift
...(主申请人信息)/C/YHMainApplicantInformationViewController.swift
+2
-2
YHMainApplicantInformationViewModel.swift
...tion(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
+9
-7
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/C/YHMainApplicantInformationViewController.swift
View file @
92dabbb5
...
...
@@ -93,7 +93,7 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
if
self
.
viewModel
.
isCanNext
(
self
.
stepView
.
currentIndex
)
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
viewModel
.
updateMainInformation
(
.
submit
)
{[
weak
self
]
success
in
self
.
viewModel
.
updateMainInformation
(
.
submit
,
self
.
orderId
)
{[
weak
self
]
success
in
guard
let
self
=
self
else
{
return
}
self
.
isShowPrompt
=
false
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
...
...
@@ -112,7 +112,7 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
}
bottom
.
saveBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
updateMainInformation
(
.
save
)
{[
weak
self
]
success
in
self
.
viewModel
.
updateMainInformation
(
.
save
,
self
.
orderId
)
{[
weak
self
]
success
in
guard
let
self
=
self
else
{
return
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
View file @
92dabbb5
...
...
@@ -209,10 +209,10 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
func
requestMainInformation
(
_
orderID
:
String
,
callBackBlock
:
@escaping
(
_
success
:
YHMainInformationModel
?,
_
error
:
YHErrorModel
?)
->
())
{
// /infoflow/order-information/get_information?order_id=9402
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
OrderInformation
.
getInformation
// let strUrl = "http://192.168.25.48:18088/" + YHAllApiName.OrderInformation.getInformation
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderID
]
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
OrderInformation
.
getInformation
+
"?order_id=
\(
orderID
)
"
// let strUrl = "http://192.168.25.48:18088/" + YHAllApiName.OrderInformation.getInformation
+ "?order_id=\(orderID)"
//
let params: [String : Any] = ["order_id": orderID]
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
model
=
NetBaseModel
.
deserialize
(
dict
:
json
)
else
{
...
...
@@ -233,7 +233,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
}
}
func
updateMainInformation
(
_
saveType
:
YHSaveType
,
callBackBlock
:
@escaping
(
_
success
:
Bool
)
->
())
{
func
updateMainInformation
(
_
saveType
:
YHSaveType
,
_
orderID
:
Int
,
callBackBlock
:
@escaping
(
_
success
:
Bool
)
->
())
{
var
type
=
""
if
saveType
==
.
save
{
type
=
"save"
...
...
@@ -279,12 +279,12 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
"has_hk_id"
:
mainModel
.
has_hk_id
??
0
,
"hk_id_number"
:
mainModel
.
hk_id_number
??
""
,
"id"
:
mainModel
.
id
??
0
,
"is_handled"
:
mainModel
.
is_handled
??
""
,
"is_handled"
:
mainModel
.
is_handled
??
0
,
"is_live_oversea_year"
:
mainModel
.
is_live_oversea_year
??
0
,
"married"
:
mainModel
.
married
??
0
,
"mobile"
:
mainModel
.
mobile
??
""
,
"nationality"
:
mainModel
.
nationality
??
""
,
"order_id"
:
mainModel
.
order_id
??
""
,
"order_id"
:
orderID
,
"sex"
:
mainModel
.
sex
??
0
,
"step"
:
mainModel
.
step
??
0
,
"surname"
:
mainModel
.
surname
??
""
,
...
...
@@ -297,9 +297,11 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
"hk_macao_pass"
:
hkID
,
"passport"
:
passport
]
]
// let strUrl = "http://192.168.25.48:18088/" + YHAllApiName.OrderInformation.updateInformation
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
OrderInformation
.
updateInformation
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
printLog
(
"code =
\(
json
[
"code"
]
)
---- message =
\(
json
[
"msg"
]
)
"
)
callBackBlock
(
true
)
}
failBlock
:
{
err
in
callBackBlock
(
false
)
...
...
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