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
15e763a0
Commit
15e763a0
authored
Oct 22, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理接口请求失败时刷新优化
parent
b8b15a2a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
15 deletions
+36
-15
YHHKRecordsContentVC.swift
...ngImmigrationRecords(在港记录管理)/C/YHHKRecordsContentVC.swift
+3
-0
YHHKRecordsEditContentVC.swift
...migrationRecords(在港记录管理)/C/YHHKRecordsEditContentVC.swift
+2
-0
YHHKRecordsSummaryVC.swift
...ngImmigrationRecords(在港记录管理)/C/YHHKRecordsSummaryVC.swift
+3
-0
YHHKVisaRenewalPaymentVC.swift
...saRenewalPayment(续签在港缴费)/C/YHHKVisaRenewalPaymentVC.swift
+8
-5
YHResignDocumentDetailViewController.swift
...ment(续签文书管理)/C/YHResignDocumentDetailViewController.swift
+15
-9
YHResignDocumentManagementVC.swift
...ntManagement(续签文书管理)/C/YHResignDocumentManagementVC.swift
+5
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsContentVC.swift
View file @
15e763a0
...
@@ -112,6 +112,9 @@ extension YHHKRecordsContentVC {
...
@@ -112,6 +112,9 @@ extension YHHKRecordsContentVC {
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
)
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
self
?
.
noDataView
.
isHidden
=
false
self
?
.
datas
=
[]
self
?
.
tableView
.
reloadData
()
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsEditContentVC.swift
View file @
15e763a0
...
@@ -177,6 +177,8 @@ extension YHHKRecordsEditContentVC {
...
@@ -177,6 +177,8 @@ extension YHHKRecordsEditContentVC {
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
)
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
self
.
datas
=
[]
self
.
tableView
.
reloadData
()
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsSummaryVC.swift
View file @
15e763a0
...
@@ -99,6 +99,9 @@ extension YHHKRecordsSummaryVC {
...
@@ -99,6 +99,9 @@ extension YHHKRecordsSummaryVC {
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
)
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
self
?
.
noDataView
.
isHidden
=
false
self
?
.
datas
=
[]
self
?
.
tableView
.
reloadData
()
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongVisaRenewalPayment(续签在港缴费)/C/YHHKVisaRenewalPaymentVC.swift
View file @
15e763a0
...
@@ -195,6 +195,9 @@ extension YHHKVisaRenewalPaymentVC {
...
@@ -195,6 +195,9 @@ extension YHHKVisaRenewalPaymentVC {
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
}
}
viewModel
.
getPaymentList
(
orderId
:
orderId
,
renewalId
:
renewalId
)
{
[
weak
self
]
paymentListModel
,
error
in
viewModel
.
getPaymentList
(
orderId
:
orderId
,
renewalId
:
renewalId
)
{
[
weak
self
]
paymentListModel
,
error
in
guard
let
self
=
self
else
{
return
}
if
isNeedLoading
{
if
isNeedLoading
{
YHHUD
.
hide
()
YHHUD
.
hide
()
}
}
...
@@ -203,11 +206,11 @@ extension YHHKVisaRenewalPaymentVC {
...
@@ -203,11 +206,11 @@ extension YHHKVisaRenewalPaymentVC {
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
)
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
self
.
datas
=
[]
self
.
tableView
.
reloadData
()
return
return
}
}
guard
let
self
=
self
else
{
return
}
let
approvalPendingMsg
=
"申请人暂未获批,无法在港缴费"
let
approvalPendingMsg
=
"申请人暂未获批,无法在港缴费"
let
confirmedPresenceMsg
=
"申请人已在港"
let
confirmedPresenceMsg
=
"申请人已在港"
var
sections
:
[[
YHVisaRenewalItemDetailType
]]
=
[]
var
sections
:
[[
YHVisaRenewalItemDetailType
]]
=
[]
...
@@ -355,8 +358,8 @@ extension YHHKVisaRenewalPaymentVC {
...
@@ -355,8 +358,8 @@ extension YHHKVisaRenewalPaymentVC {
})]
})]
payMembersSection
.
append
(
contentsOf
:
paymentMembers
)
payMembersSection
.
append
(
contentsOf
:
paymentMembers
)
sections
.
append
(
payMembersSection
)
sections
.
append
(
payMembersSection
)
datas
=
sections
self
.
datas
=
sections
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignDocumentManagement(续签文书管理)/C/YHResignDocumentDetailViewController.swift
View file @
15e763a0
...
@@ -169,7 +169,10 @@ extension YHResignDocumentDetailViewController {
...
@@ -169,7 +169,10 @@ extension YHResignDocumentDetailViewController {
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
}
}
viewModel
.
getDocumentDetail
(
docId
:
docId
)
{
[
weak
self
]
documentModel
,
error
in
viewModel
.
getDocumentDetail
(
docId
:
docId
)
{
[
weak
self
]
documentModel
,
error
in
self
?
.
detailModel
=
documentModel
guard
let
self
=
self
else
{
return
}
self
.
detailModel
=
documentModel
if
isNeedLoading
{
if
isNeedLoading
{
YHHUD
.
hide
()
YHHUD
.
hide
()
}
}
...
@@ -178,25 +181,28 @@ extension YHResignDocumentDetailViewController {
...
@@ -178,25 +181,28 @@ extension YHResignDocumentDetailViewController {
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
)
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
self
.
datas
=
[]
self
.
tableView
.
reloadData
()
return
return
}
}
guard
let
self
=
self
else
{
return
}
var
firstSetcion
:
[
RowType
]
=
[]
var
firstSetcion
:
[
RowType
]
=
[]
var
secondSetcion
:
[
RowType
]
=
[]
var
secondSetcion
:
[
RowType
]
=
[]
if
let
docType
=
YHResignDocumentType
(
rawValue
:
documentModel
.
docType
),
let
status
=
YHResignDocumentStatus
.
getStatus
(
documentModel
.
docStatus
)
{
if
let
docType
=
YHResignDocumentType
(
rawValue
:
documentModel
.
docType
),
let
status
=
YHResignDocumentStatus
.
getStatus
(
documentModel
.
docStatus
)
{
firstSetcion
.
append
(
.
tips
(
"填写指引"
,
docType
.
attributedTips
()))
firstSetcion
.
append
(
.
tips
(
"填写指引"
,
docType
.
attributedTips
()))
let
config
=
self
.
getStatusButtonsConfig
(
docType
:
docType
,
status
:
status
,
model
:
documentModel
)
let
config
=
self
.
getStatusButtonsConfig
(
docType
:
docType
,
status
:
status
,
model
:
documentModel
)
secondSetcion
=
[
.
content
(
"文书稿件"
,
self
.
name
,
status
,
config
)]
secondSetcion
=
[
.
content
(
"文书稿件"
,
self
.
name
,
status
,
config
)]
datas
.
removeAll
()
self
.
datas
.
removeAll
()
datas
.
append
(
firstSetcion
)
self
.
datas
.
append
(
firstSetcion
)
datas
.
append
(
secondSetcion
)
self
.
datas
.
append
(
secondSetcion
)
let
uploadSection
=
getUploadSection
(
status
:
status
,
model
:
documentModel
)
let
uploadSection
=
getUploadSection
(
status
:
status
,
model
:
documentModel
)
if
uploadSection
.
count
>
0
{
if
uploadSection
.
count
>
0
{
datas
.
append
(
uploadSection
)
self
.
datas
.
append
(
uploadSection
)
}
}
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
else
{
self
.
datas
=
[]
self
.
tableView
.
reloadData
()
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignDocumentManagement(续签文书管理)/C/YHResignDocumentManagementVC.swift
View file @
15e763a0
...
@@ -97,18 +97,22 @@ extension YHResignDocumentManagementVC {
...
@@ -97,18 +97,22 @@ extension YHResignDocumentManagementVC {
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
)
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
self
?
.
datas
=
[]
self
?
.
tableView
.
reloadData
()
}
}
}
}
}
}
private
func
updateVC
()
{
private
func
updateVC
()
{
guard
viewModel
.
documentList
.
data
.
count
>
0
else
{
guard
viewModel
.
documentList
.
data
.
count
>
0
else
{
datas
=
[]
tableView
.
reloadData
()
return
return
}
}
let
list
=
viewModel
.
documentList
.
data
let
list
=
viewModel
.
documentList
.
data
datas
=
list
.
compactMap
({
documentModel
in
datas
=
list
.
compactMap
({
documentModel
in
guard
let
state
=
YHResignDocumentStage
(
rawValue
:
documentModel
.
stage
)
else
{
guard
let
state
=
YHResignDocumentStage
(
rawValue
:
documentModel
.
stage
)
else
{
return
[]
return
nil
}
}
var
section
:
[
RowType
]
=
[
.
header
(
state
.
title
(),
"(
\(
documentModel
.
applyName
)
)"
)]
var
section
:
[
RowType
]
=
[
.
header
(
state
.
title
(),
"(
\(
documentModel
.
applyName
)
)"
)]
documentModel
.
docs
.
forEach
{
detailModel
in
documentModel
.
docs
.
forEach
{
detailModel
in
...
...
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