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
b7348a1f
Commit
b7348a1f
authored
Oct 11, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
8a70a9e8
09d5851f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
225 additions
and
44 deletions
+225
-44
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHServiceOrderListViewController.swift
...entService(服务中心)/C/YHServiceOrderListViewController.swift
+6
-2
YHResignUploadDocListViewController.swift
...loadDoc(续签补件)/C/YHResignUploadDocListViewController.swift
+26
-15
YHResignUploadDocListProgressModel.swift
...ploadDoc(续签补件)/M/YHResignUploadDocListProgressModel.swift
+40
-0
YHResignUploadDocListCell.swift
...)/ResignUploadDoc(续签补件)/V/YHResignUploadDocListCell.swift
+46
-25
YHResignUploadDocListViewModel.swift
...gnUploadDoc(续签补件)/VM/YHResignUploadDocListViewModel.swift
+69
-0
YHResignUploadTravelCardFootViewController.swift
...传旅行证件)/V/YHResignUploadTravelCardFootViewController.swift
+0
-1
YHResignUploadTravelGuideView.swift
...dTravelCrad(上传旅行证件)/V/YHResignUploadTravelGuideView.swift
+0
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+23
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+7
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
b7348a1f
...
...
@@ -562,6 +562,8 @@
04CA2BFF2CB7C9A000F36DE7
/* YHResignUploadSuccessDocListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CA2BFE2CB7C9A000F36DE7
/* YHResignUploadSuccessDocListCell.swift */
;
};
04CA2C012CB7CEDC00F36DE7
/* YHResignUploadDocDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CA2C002CB7CEDC00F36DE7
/* YHResignUploadDocDetailViewController.swift */
;
};
04CA2C032CB7D3C200F36DE7
/* YHFileExplainReasonInputView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CA2C022CB7D3C200F36DE7
/* YHFileExplainReasonInputView.swift */
;
};
04CA2C052CB8F75700F36DE7
/* YHResignUploadDocListViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CA2C042CB8F75700F36DE7
/* YHResignUploadDocListViewModel.swift */
;
};
04CA2C072CB8F9C800F36DE7
/* YHResignUploadDocListProgressModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CA2C062CB8F9C800F36DE7
/* YHResignUploadDocListProgressModel.swift */
;
};
04CC2EF02BC3DDB2000305DD
/* YHServiceBannerView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CC2EEF2BC3DDB2000305DD
/* YHServiceBannerView.swift */
;
};
04CCEDF72CA0FCB10026EA70
/* YHHKImmigrationRecordsViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CCEDF62CA0FCB10026EA70
/* YHHKImmigrationRecordsViewModel.swift */
;
};
04CCEDF92CA0FD5F0026EA70
/* YHHKImmigrationRecordsSummaryModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04CCEDF82CA0FD5F0026EA70
/* YHHKImmigrationRecordsSummaryModel.swift */
;
};
...
...
@@ -1462,6 +1464,8 @@
04CA2BFE2CB7C9A000F36DE7
/* YHResignUploadSuccessDocListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignUploadSuccessDocListCell.swift
;
sourceTree
=
"<group>"
;
};
04CA2C002CB7CEDC00F36DE7
/* YHResignUploadDocDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignUploadDocDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
04CA2C022CB7D3C200F36DE7
/* YHFileExplainReasonInputView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFileExplainReasonInputView.swift
;
sourceTree
=
"<group>"
;
};
04CA2C042CB8F75700F36DE7
/* YHResignUploadDocListViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignUploadDocListViewModel.swift
;
sourceTree
=
"<group>"
;
};
04CA2C062CB8F9C800F36DE7
/* YHResignUploadDocListProgressModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignUploadDocListProgressModel.swift
;
sourceTree
=
"<group>"
;
};
04CC2EEF2BC3DDB2000305DD
/* YHServiceBannerView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceBannerView.swift
;
sourceTree
=
"<group>"
;
};
04CCEDF62CA0FCB10026EA70
/* YHHKImmigrationRecordsViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKImmigrationRecordsViewModel.swift
;
sourceTree
=
"<group>"
;
};
04CCEDF82CA0FD5F0026EA70
/* YHHKImmigrationRecordsSummaryModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKImmigrationRecordsSummaryModel.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -3748,6 +3752,7 @@
04CA2BF82CB7BAA100F36DE7
/* M */
=
{
isa
=
PBXGroup
;
children
=
(
04CA2C062CB8F9C800F36DE7
/* YHResignUploadDocListProgressModel.swift */
,
);
path
=
M
;
sourceTree
=
"<group>"
;
...
...
@@ -3755,6 +3760,7 @@
04CA2BF92CB7BAA800F36DE7
/* VM */
=
{
isa
=
PBXGroup
;
children
=
(
04CA2C042CB8F75700F36DE7
/* YHResignUploadDocListViewModel.swift */
,
);
path
=
VM
;
sourceTree
=
"<group>"
;
...
...
@@ -5289,6 +5295,7 @@
0418922A2C91CB2500B9FB94
/* YHResignDocumentStatus.swift in Sources */
,
04256DE42C72E3FA00A37BA4
/* YHInfoItemOptionView.swift in Sources */
,
04256DF22C734E7E00A37BA4
/* YHGrabFileCell.swift in Sources */
,
04CA2C052CB8F75700F36DE7
/* YHResignUploadDocListViewModel.swift in Sources */
,
A5ACE9512B4564F7002C94D2
/* YhConstant.swift in Sources */
,
04FD85662C2124AF00BEF9C5
/* YHNameCardViewController.swift in Sources */
,
0430E63B2C6DA106000511E2
/* CGFloat+Extention.swift in Sources */
,
...
...
@@ -5310,6 +5317,7 @@
04B360F32C636525001EB053
/* YHPrincipleWaitResultViewController.swift in Sources */
,
04358E0A2C7835B000811928
/* YHMakeCertificatePlaceModel.swift in Sources */
,
A582B2412BB95998009D098C
/* YHHKPlanTipsCell.swift in Sources */
,
04CA2C072CB8F9C800F36DE7
/* YHResignUploadDocListProgressModel.swift in Sources */
,
04F243552C9C435A00DF2C74
/* YHHKRecordsInfoItemCell.swift in Sources */
,
A5D0012C2BABC84A001F003C
/* YHFileListBottomView.swift in Sources */
,
0485DFDC2C670C7200B50293
/* YHPrincipleSendMailView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceOrderListViewController.swift
View file @
b7348a1f
...
...
@@ -199,13 +199,16 @@ class YHServiceOrderListView: YHBaseViewController {
}
else
if
type
==
34
{
//在港递交预约
}
else
if
type
==
35
{
//查看续签结果
}
else
if
type
==
36
{
//续签补件
let
vc
=
YHResignUploadDocListViewController
()
vc
.
orderId
=
orderId
vc
.
batchId
=
stepId
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
type
==
37
{
//在港签证缴费
...
...
@@ -416,6 +419,7 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
model
=
self
.
arrDataForSeviceCenterProgress
[
indexPath
.
row
]
if
model
.
status
==
1
||
model
.
status
==
4
{
YHServiceOrderListView
.
jumpToMessageController
(
type
:
model
.
type
,
orderId
:
orderID
,
stepID
)
return
}
else
{
YHServiceOrderListView
.
jumpToMessageController
(
type
:
model
.
type
,
orderId
:
orderID
,
stepID
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/C/YHResignUploadDocListViewController.swift
View file @
b7348a1f
...
...
@@ -11,8 +11,10 @@ import AttributedString
class
YHResignUploadDocListViewController
:
YHBaseViewController
{
var
orderId
:
Int
=
0
lazy
var
viewModel
:
YHTravelDocsPreparationViewModel
=
{
let
vm
=
YHTravelDocsPreparationViewModel
()
// 批次id
var
batchId
:
Int
=
0
lazy
var
viewModel
:
YHResignUploadDocListViewModel
=
{
let
vm
=
YHResignUploadDocListViewModel
()
return
vm
}()
...
...
@@ -85,21 +87,14 @@ class YHResignUploadDocListViewController: YHBaseViewController {
private
extension
YHResignUploadDocListViewController
{
func
loadData
()
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
]
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
viewModel
.
getTravelDocsList
(
param
:
params
){
success
,
error
in
YHHUD
.
hide
()
if
success
{
}
else
{
// let msg = error?.errorMsg ?? "获取数据出错"
// YHHUD.flash(message: msg)
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
// self.navigationController?.popViewController()
// }
viewModel
.
getUploadDocProgress
(
orderID
:
orderId
,
stepID
:
batchId
)
{[
weak
self
]
success
,
err
in
guard
let
self
=
self
else
{
return
}
viewModel
.
getUploadDocList
(
orderID
:
orderId
,
stepID
:
batchId
)
{[
weak
self
]
success
,
err
in
guard
let
self
=
self
else
{
return
}
self
.
tableView
.
reloadData
()
}
self
.
tableView
.
reloadData
()
}
}
func
setupUI
()
{
...
...
@@ -180,6 +175,22 @@ extension YHResignUploadDocListViewController: UITableViewDelegate, UITableViewD
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
approveCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignUploadDocListCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignUploadDocListCell
approveCell
.
section
=
indexPath
.
section
if
indexPath
.
section
==
0
{
approveCell
.
title
=
"资料上传"
approveCell
.
dataSource
=
self
.
viewModel
.
mainModel
.
upload_list
}
else
{
approveCell
.
title
=
"文书确认"
approveCell
.
dataSource
=
self
.
viewModel
.
mainModel
.
doc_list
}
approveCell
.
clickBlock
=
{
[
weak
self
]
model
,
section
in
guard
let
self
=
self
else
{
return
}
if
section
==
0
{
// 跳转文件上传
}
else
{
// 跳转列表
}
}
return
approveCell
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/M/YHResignUploadDocListProgressModel.swift
0 → 100644
View file @
b7348a1f
//
// YHResignUploadDocListProgressModel.swift
// galaxy
//
// Created by EDY on 2024/10/11.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SmartCodable
class
YHResignUploadDocListProgressModel
:
SmartCodable
{
var
progress
:
Int
=
-
1
//电子签证有效期
var
is_need_supplement
:
Bool
=
true
required
init
()
{
}
}
class
YHResignUploadDocListModel
:
SmartCodable
{
var
supplement_voucher_url
:
String
=
""
var
supplement_deadline
:
String
=
""
var
upload_list
:
[
YHResignUploadDocModel
]
=
[]
var
doc_list
:
[
YHResignUploadDocModel
]
=
[]
required
init
()
{
}
}
class
YHResignUploadDocModel
:
SmartCodable
{
var
name
:
String
=
""
var
status
:
Int
=
0
var
id
:
Int
=
0
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/V/YHResignUploadDocListCell.swift
View file @
b7348a1f
...
...
@@ -11,13 +11,19 @@ import UIKit
class
YHResignUploadDocListCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHResignUploadDocListCell"
typealias
ExperienceListBlock
=
(
_
model
:
YH
AdopterDependentModel
)
->
()
typealias
ExperienceListBlock
=
(
_
model
:
YH
ResignUploadDocModel
,
_
section
:
Int
)
->
()
var
clickBlock
:
ExperienceListBlock
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
mainItemView
:
UIView
!
var
lineView
:
UIView
!
var
dataSource
:
[
YHAdopterDependentModel
]?
{
var
title
:
String
=
""
{
didSet
{
titleLabel
.
text
=
title
}
}
var
section
:
Int
=
0
var
dataSource
:
[
YHResignUploadDocModel
]?
{
didSet
{
updateAllViews
()
}
...
...
@@ -123,13 +129,17 @@ class YHResignUploadDocListCell: UITableViewCell {
itemView
.
clickBlock
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
clickBlock
{
block
(
model
)
block
(
model
,
self
.
section
)
}
}
let
model
=
dataSource
[
i
]
itemView
.
tag
=
4000
+
i
itemView
.
dataSource
=
dataSource
[
i
]
if
section
==
0
{
itemView
.
dataSource
=
dataSource
[
i
]
}
else
{
itemView
.
docDataSource
=
dataSource
[
i
]
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
...
...
@@ -145,7 +155,7 @@ class YHResignUploadDocListCell: UITableViewCell {
class
YHResignUploadDocItemView
:
UIView
{
typealias
ItemBlock
=
(
_
model
:
YH
AdopterDependent
Model
)
->
()
typealias
ItemBlock
=
(
_
model
:
YH
ResignUploadDoc
Model
)
->
()
var
clickBlock
:
ItemBlock
?
var
deleteBlock
:
ItemBlock
?
var
titleLabel
:
UILabel
!
...
...
@@ -153,11 +163,16 @@ class YHResignUploadDocItemView: UIView {
var
nextStepImageView
:
UIImageView
!
var
centerButton
:
UIButton
!
var
dataSource
:
YH
AdopterDependent
Model
?
{
var
dataSource
:
YH
ResignUploadDoc
Model
?
{
didSet
{
updateAllViews
()
}
}
var
docDataSource
:
YHResignUploadDocModel
?
{
didSet
{
updateDocAllViews
()
}
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
.
white
...
...
@@ -224,21 +239,13 @@ class YHResignUploadDocItemView: UIView {
func
updateAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
var
spouse
=
"子女"
if
dataSource
.
is_spouse
==
1
{
spouse
=
"配偶"
}
if
dataSource
.
dep_name
.
count
!=
0
{
titleLabel
.
text
=
spouse
+
"(
\(
dataSource
.
dep_name
)
)"
}
else
{
titleLabel
.
text
=
spouse
}
if
dataSource
.
status
==
0
{
titleLabel
.
text
=
dataSource
.
name
if
dataSource
.
status
==
3
{
explainLabel
.
text
=
"待上传"
explainLabel
.
textColor
=
UIColor
.
brandMainColor
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_start"
)
}
if
dataSource
.
status
==
1
{
if
dataSource
.
status
==
0
{
explainLabel
.
text
=
"审核中"
explainLabel
.
textColor
=
UIColor
(
hex
:
0xff8000
)
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_wait"
)
...
...
@@ -248,32 +255,46 @@ class YHResignUploadDocItemView: UIView {
explainLabel
.
textColor
=
UIColor
.
failColor
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_fail"
)
}
if
dataSource
.
status
==
3
{
if
dataSource
.
status
==
1
{
explainLabel
.
text
=
"已完成"
explainLabel
.
textColor
=
UIColor
(
hex
:
0x3cc694
)
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_success"
)
}
}
func
updateDocAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
if
dataSource
.
status
==
0
{
explainLabel
.
text
=
"待确认"
// “待签字”
titleLabel
.
text
=
dataSource
.
name
if
dataSource
.
status
==
1
{
explainLabel
.
textColor
=
UIColor
.
brandMainColor
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_start"
)
}
if
dataSource
.
status
==
1
{
explainLabel
.
text
=
"写作中"
// 定稿中 审核中
if
dataSource
.
status
==
4
{
explainLabel
.
text
=
"待签字"
explainLabel
.
textColor
=
UIColor
.
brandMainColor
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_start"
)
}
if
dataSource
.
status
==
0
{
explainLabel
.
text
=
"写作中"
//
explainLabel
.
textColor
=
UIColor
(
hex
:
0xff8000
)
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_wait"
)
}
if
dataSource
.
status
==
2
{
explainLabel
.
text
=
"定稿中"
// 定稿中 审核中
explainLabel
.
textColor
=
UIColor
(
hex
:
0xff8000
)
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_wait"
)
}
if
dataSource
.
status
==
3
{
explainLabel
.
text
=
"审核中"
// 定稿中 审核中
explainLabel
.
textColor
=
UIColor
(
hex
:
0xff8000
)
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_wait"
)
}
if
dataSource
.
status
==
6
{
explainLabel
.
text
=
"已驳回"
explainLabel
.
textColor
=
UIColor
.
failColor
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_fail"
)
}
if
dataSource
.
status
==
3
{
if
dataSource
.
status
==
5
{
explainLabel
.
text
=
"已完成"
explainLabel
.
textColor
=
UIColor
(
hex
:
0x3cc694
)
nextStepImageView
.
image
=
UIImage
(
named
:
"service_adopter_income_success"
)
...
...
@@ -284,7 +305,7 @@ class YHResignUploadDocItemView: UIView {
@objc
func
centerClick
()
{
if
let
block
=
clickBlock
{
block
(
self
.
dataSource
??
YH
AdopterDependent
Model
())
block
(
self
.
dataSource
??
YH
ResignUploadDoc
Model
())
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/VM/YHResignUploadDocListViewModel.swift
0 → 100644
View file @
b7348a1f
//
// YHResignUploadDocListViewModel.swift
// galaxy
//
// Created by EDY on 2024/10/11.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHResignUploadDocListViewModel
:
YHBaseViewModel
{
var
progressModel
:
YHResignUploadDocListProgressModel
=
YHResignUploadDocListProgressModel
()
//列表信息
var
mainModel
:
YHResignUploadDocListModel
=
YHResignUploadDocListModel
()
}
extension
YHResignUploadDocListViewModel
{
func
getUploadDocProgress
(
orderID
:
Int
,
stepID
:
Int
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
err
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderID
,
"renewal_id"
:
stepID
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignUploadDoc
.
progress
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHResignUploadDocListProgressModel
.
deserialize
(
from
:
dic
)
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
callBackBlock
(
false
,
err
)
return
}
self
.
progressModel
=
resultModel
callBackBlock
(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callBackBlock
(
false
,
err
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
func
getUploadDocList
(
orderID
:
Int
,
stepID
:
Int
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
err
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderID
,
"renewal_id"
:
stepID
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignUploadDoc
.
list
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHResignUploadDocListModel
.
deserialize
(
from
:
dic
)
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
callBackBlock
(
false
,
err
)
return
}
self
.
mainModel
=
resultModel
callBackBlock
(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callBackBlock
(
false
,
err
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/UploadTravelCrad(上传旅行证件)/V/YHResignUploadTravelCardFootViewController.swift
View file @
b7348a1f
...
...
@@ -69,7 +69,6 @@ extension YHResignUploadTravelCardFootViewController {
@objc
func
click
()
{
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
"https://www.ctshk.com/mep/zh/"
vc
.
isShowRightShareItemFlag
=
false
vc
.
isFullScreenFlag
=
false
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/UploadTravelCrad(上传旅行证件)/V/YHResignUploadTravelGuideView.swift
View file @
b7348a1f
...
...
@@ -140,7 +140,6 @@ extension YHResignUploadTravelGuideView {
dismiss
()
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
"https://www.ctshk.com/mep/zh/"
vc
.
isShowRightShareItemFlag
=
false
vc
.
isFullScreenFlag
=
false
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
b7348a1f
...
...
@@ -341,6 +341,14 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
return
}
// if true {
//
// YHResignAppointTipsView.alertView().show()
//
//// let vc = YHResignInfoConfirmViewController()
//// self.navigationController?.pushViewController(vc)
// return
// }
let
item
:
PersonalModuleItem
=
items
[
indexPath
.
row
]
switch
item
.
type
{
case
.
myCard
:
//我的名片
...
...
@@ -399,6 +407,21 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
case
.
aboutUs
:
let
vc
=
YHAboutGalaxyViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
// SFSafariViewController
// let vc = YHH5WebViewVC()
// vc.url = "https://beta-sign.galaxy-immi.com/webPayConfirm?id=Qk9sbUlzenp0OGFOdVZ4ekphQXJGWnJ0ODdBS3gxdWNJcURrOHBLbm4xND0%3D"
// vc.isFullScreenFlag = false
// vc.isSupportWebviewInterBackFlag = true
// UIViewController.current?.navigationController?.pushViewController(vc)//for test hjl
// if let url = URL(string: "https://beta-sign.galaxy-immi.com/webPayConfirm?id=Qk9sbUlzenp0OGFOdVZ4ekphQXJGWnJ0ODdBS3gxdWNJcURrOHBLbm4xND0%3D") {
// let safariViewController = SFSafariViewController(url: url)
// safariViewController.dismissButtonStyle = .close
// safariViewController.modalPresentationStyle = .fullScreen
// UIViewController.current?.present(safariViewController, animated: true, completion: nil)
// }//for test hjl
default
:
printLog
(
"不需要响应"
)
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
b7348a1f
...
...
@@ -563,4 +563,11 @@ class YHAllApiName {
// 在港记录-家庭成员列表
static
let
stayInHKRecordFamilyMembers
=
"super-app/stay-in-hk-record/family-members"
}
//续签段 - 10续签补件
struct
ResignUploadDoc
{
static
let
progress
=
"super-app/renewal/supplement/progress"
static
let
list
=
"super-app/renewal/supplement/list"
}
}
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