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
43f6466d
Commit
43f6466d
authored
Feb 27, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国家
parent
93677158
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
YHImagePickerView.swift
...ainApplicantInformation(主申请人信息)/V/YHImagePickerView.swift
+2
-0
YHSelectCountryViewModel.swift
...cantInformation(主申请人信息)/VM/YHSelectCountryViewModel.swift
+5
-2
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/V/YHImagePickerView.swift
View file @
43f6466d
...
@@ -207,6 +207,7 @@ extension YHImagePickerView: UINavigationControllerDelegate, UIImagePickerContro
...
@@ -207,6 +207,7 @@ extension YHImagePickerView: UINavigationControllerDelegate, UIImagePickerContro
func
imagePickerController
(
_
picker
:
UIImagePickerController
,
didFinishPickingMediaWithInfo
info
:
[
UIImagePickerController
.
InfoKey
:
Any
])
{
func
imagePickerController
(
_
picker
:
UIImagePickerController
,
didFinishPickingMediaWithInfo
info
:
[
UIImagePickerController
.
InfoKey
:
Any
])
{
if
let
image
=
info
[
UIImagePickerController
.
InfoKey
.
originalImage
]
as?
UIImage
{
if
let
image
=
info
[
UIImagePickerController
.
InfoKey
.
originalImage
]
as?
UIImage
{
uploadImage
(
image
:
image
)
uploadImage
(
image
:
image
)
self
.
dismiss
()
}
else
{
}
else
{
printLog
(
"pick image wrong"
)
printLog
(
"pick image wrong"
)
}
}
...
@@ -265,6 +266,7 @@ extension YHImagePickerView: UINavigationControllerDelegate, UIImagePickerContro
...
@@ -265,6 +266,7 @@ extension YHImagePickerView: UINavigationControllerDelegate, UIImagePickerContro
}
}
}
}
// Alamofire上传
func
uploadImage
(
image
:
UIImage
)
{
func
uploadImage
(
image
:
UIImage
)
{
// 获取图片的二进制数据
// 获取图片的二进制数据
guard
let
imageData
=
image
.
jpegData
(
compressionQuality
:
1
)
else
{
return
}
guard
let
imageData
=
image
.
jpegData
(
compressionQuality
:
1
)
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/VM/YHSelectCountryViewModel.swift
View file @
43f6466d
...
@@ -14,8 +14,11 @@ class YHSelectCountryViewModel: NSObject {
...
@@ -14,8 +14,11 @@ class YHSelectCountryViewModel: NSObject {
}
}
func
requestCountry
(
_
key
:
String
,
callBackBlock
:
@escaping
(
_
success
:
[
YHCountryMessage
?]?,
_
error
:
YHErrorModel
?)
->
())
{
func
requestCountry
(
_
key
:
String
,
callBackBlock
:
@escaping
(
_
success
:
[
YHCountryMessage
?]?,
_
error
:
YHErrorModel
?)
->
())
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
"frontend/country?keyword=
\(
key
)
"
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
OrderInformation
.
countryInformation
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
[
weak
self
]
json
,
code
in
// "frontend/country?keyword=\(key)"
let
params
:
[
String
:
Any
]
=
[
"keyword"
:
key
]
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
guard
let
model
=
NetBaseModel
.
deserialize
(
dict
:
json
)
else
{
guard
let
model
=
NetBaseModel
.
deserialize
(
dict
:
json
)
else
{
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
43f6466d
...
@@ -99,5 +99,7 @@ class YHAllApiName {
...
@@ -99,5 +99,7 @@ class YHAllApiName {
static
let
getInformation
=
"infoflow/order-information/get_information"
static
let
getInformation
=
"infoflow/order-information/get_information"
// 主申请人信息更新
// 主申请人信息更新
static
let
updateInformation
=
"infoflow/order-information/update_information"
static
let
updateInformation
=
"infoflow/order-information/update_information"
// 主申请人国家信息
static
let
countryInformation
=
"infoflow/country"
}
}
}
}
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