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
4f925a6d
Commit
4f925a6d
authored
Aug 28, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
02158e5c
c103ce70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
2 deletions
+69
-2
YHTravelDocsPreparationDetailVC.swift
...aration(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
+65
-1
YHTravelDocsPreparationListViewController.swift
...旅行证件准备)/C/YHTravelDocsPreparationListViewController.swift
+4
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
View file @
4f925a6d
...
...
@@ -9,7 +9,17 @@
import
UIKit
class
YHTravelDocsPreparationDetailVC
:
YHBaseViewController
{
lazy
var
viewModel
:
YHTravelDocsPreparationViewModel
=
{
let
vm
=
YHTravelDocsPreparationViewModel
()
return
vm
}()
//上个界面传递过来的数据对象
var
dataModel
:
YHTravelDocsPreparationListModel
?
var
orderId
:
Int
=
0
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
}
...
...
@@ -17,5 +27,59 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
private
extension
YHTravelDocsPreparationDetailVC
{
//1、获取详情信息
func
loadDetailInfo
()
{
if
let
model
=
dataModel
{
let
params
=
[
"order_id"
:
orderId
,
"user_id"
:
model
.
id
,
"user_type"
:
model
.
type
]
as
[
String
:
Any
]
viewModel
.
getTravelDocsDetailInfo
(
param
:
params
)
{
success
,
error
in
if
success
{
// TODO: 杜宇哥 UI刷新
}
else
{
}
}
}
}
//2、保存旅行证件
func
saveAllTravelCertificate
()
{
if
let
model
=
dataModel
{
/*
{
"order_id": 0,
"user_id": 0,
"user_type": "string",
"certificates": [
{
"type": 0,
"img_back": "string",
"img_front": "string",
"issue_start": "string",
"issue_end": "string"
}
]
}
*/
let
params
=
[
"order_id"
:
orderId
,
"user_id"
:
model
.
id
,
"user_type"
:
model
.
type
,
"certificates"
:[]
// TODO: 杜宇哥完善下这个数据
]
as
[
String
:
Any
]
viewModel
.
saveTravelDocsInfo
(
params
:
params
)
{
success
,
error
in
if
success
{
}
else
{
}
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHTravelDocsPreparationListViewController.swift
View file @
4f925a6d
...
...
@@ -133,7 +133,10 @@ extension YHTravelDocsPreparationListViewController: UITableViewDelegate, UITabl
if
model
.
status
==
-
1
{
return
}
else
{
//TODO: pete 跳转到上传详情
let
vc
=
YHTravelDocsPreparationDetailVC
()
vc
.
dataModel
=
model
vc
.
orderId
=
orderId
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
...
...
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