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
09c8135e
Commit
09c8135e
authored
May 07, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网络逻辑优化
parent
d3fc0c3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
YHMainApplicantInformationViewController.swift
...(主申请人信息)/C/YHMainApplicantInformationViewController.swift
+10
-0
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+12
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/C/YHMainApplicantInformationViewController.swift
View file @
09c8135e
...
@@ -34,6 +34,11 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
...
@@ -34,6 +34,11 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
self
.
stepView
.
maxIndex
=
self
.
viewModel
.
mainModel
.
step
self
.
stepView
.
maxIndex
=
self
.
viewModel
.
mainModel
.
step
self
.
stepView
.
currentIndex
=
self
.
viewModel
.
mainModel
.
step
self
.
stepView
.
currentIndex
=
self
.
viewModel
.
mainModel
.
step
self
.
updateDataSource
()
self
.
updateDataSource
()
if
self
.
stepView
.
currentIndex
==
3
{
self
.
bottomView
.
nextButton
.
setTitle
(
"提交"
,
for
:
.
normal
)
}
else
{
self
.
bottomView
.
nextButton
.
setTitle
(
"下一步"
,
for
:
.
normal
)
}
}
}
}
}
...
@@ -106,6 +111,11 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
...
@@ -106,6 +111,11 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
isShowPrompt
=
false
self
.
isShowPrompt
=
false
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
if
self
.
stepView
.
currentIndex
==
3
{
self
.
bottomView
.
nextButton
.
setTitle
(
"提交"
,
for
:
.
normal
)
}
else
{
self
.
bottomView
.
nextButton
.
setTitle
(
"下一步"
,
for
:
.
normal
)
}
if
self
.
stepView
.
currentIndex
==
self
.
stepView
.
dataSource
?
.
count
{
if
self
.
stepView
.
currentIndex
==
self
.
stepView
.
dataSource
?
.
count
{
YHHUD
.
flash
(
message
:
"提交成功"
)
YHHUD
.
flash
(
message
:
"提交成功"
)
self
.
navigationController
?
.
popViewController
()
self
.
navigationController
?
.
popViewController
()
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
09c8135e
...
@@ -144,6 +144,10 @@ class YHNetRequest: NSObject {
...
@@ -144,6 +144,10 @@ class YHNetRequest: NSObject {
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
YHHUD
.
flash
(
message
:
"网络异常"
)
YHHUD
.
flash
(
message
:
"网络异常"
)
guard
let
errorBlock
=
self
.
failure
else
{
return
}
let
errorModel
=
YHErrorModel
(
errorCode
:
0
,
errorMsg
:
"网络异常"
)
errorBlock
(
errorModel
)
return
}
}
}
}
...
@@ -176,6 +180,10 @@ class YHNetRequest: NSObject {
...
@@ -176,6 +180,10 @@ class YHNetRequest: NSObject {
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
YHHUD
.
flash
(
message
:
"网络异常"
)
YHHUD
.
flash
(
message
:
"网络异常"
)
guard
let
errorBlock
=
self
.
failure
else
{
return
}
let
errorModel
=
YHErrorModel
(
errorCode
:
0
,
errorMsg
:
"网络异常"
)
errorBlock
(
errorModel
)
return
}
}
}
}
// guard let imageData = image.jpegData(compressionQuality: 1) else { return httpRequest }
// guard let imageData = image.jpegData(compressionQuality: 1) else { return httpRequest }
...
@@ -210,6 +218,10 @@ class YHNetRequest: NSObject {
...
@@ -210,6 +218,10 @@ class YHNetRequest: NSObject {
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
YHHUD
.
flash
(
message
:
"网络异常"
)
YHHUD
.
flash
(
message
:
"网络异常"
)
guard
let
errorBlock
=
self
.
failure
else
{
return
}
let
errorModel
=
YHErrorModel
(
errorCode
:
0
,
errorMsg
:
"网络异常"
)
errorBlock
(
errorModel
)
return
}
}
}
}
...
...
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