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
a7d6ef29
Commit
a7d6ef29
authored
Mar 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证件
parent
e6da0342
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
1 deletion
+32
-1
YHServiceCenterSecondViewController.swift
...Service(服务中心)/C/YHServiceCenterSecondViewController.swift
+1
-0
YHCertificateResourceUploadVC.swift
...yCertificates(我的证书)/C/YHCertificateResourceUploadVC.swift
+2
-1
YHMaterialListViewController.swift
...MyCertificates(我的证书)/C/YHMaterialListViewController.swift
+2
-0
YHMineCertificateEntryViewController.swift
...icates(我的证书)/C/YHMineCertificateEntryViewController.swift
+2
-0
YHCertificateViewModel.swift
...务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
+19
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+3
-0
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+3
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterSecondViewController.swift
View file @
a7d6ef29
...
...
@@ -176,6 +176,7 @@ extension YHServiceCenterSecondViewController : UITableViewDelegate,UITableViewD
navigationController
?
.
pushViewController
(
vc
)
}
else
if
model
.
type
==
2
{
let
vc
=
YHMineCertificateEntryViewController
()
vc
.
orderId
=
orderId
navigationController
?
.
pushViewController
(
vc
)
}
else
if
model
.
type
==
3
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateResourceUploadVC.swift
View file @
a7d6ef29
...
...
@@ -13,6 +13,7 @@ import IQKeyboardManagerSwift
class
YHCertificateResourceUploadVC
:
YHBaseViewController
{
var
orderId
:
Int
?
var
items
:[
String
]
=
[
"1"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
]
var
viewModel
:
YHCertificateViewModel
=
YHCertificateViewModel
()
...
...
@@ -129,7 +130,7 @@ extension YHCertificateResourceUploadVC {
func
requestList
()
{
let
params
=
[
"order_id"
:
"0"
,
"order_id"
:
orderId
??
0
,
"node"
:
"1"
,
"state"
:
""
,
"category_id"
:
""
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHMaterialListViewController.swift
View file @
a7d6ef29
...
...
@@ -19,6 +19,8 @@ class YHMaterialListViewController: YHBaseViewController {
static
let
segmentHeight
=
53.0
var
orderId
:
Int
?
lazy
var
navBar
:
YHCustomNavigationBar
=
{
let
bar
=
YHCustomNavigationBar
.
navBar
()
bar
.
title
=
"资料上传"
.
local
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHMineCertificateEntryViewController.swift
View file @
a7d6ef29
...
...
@@ -13,6 +13,7 @@ import UIKit
class
YHMineCertificateEntryViewController
:
YHBaseViewController
{
var
orderId
:
Int
?
private
let
certificateReqVM
:
YHCertificateViewModel
=
YHCertificateViewModel
()
private
lazy
var
topBkg
:
UIView
=
{
...
...
@@ -163,6 +164,7 @@ extension YHMineCertificateEntryViewController : UITableViewDelegate,UITableView
printLog
(
"点击了 tableView Cell
\(
indexPath
.
section
)
"
)
let
vc
=
YHMaterialListViewController
()
vc
.
orderId
=
orderId
self
.
navigationController
?
.
pushViewController
(
vc
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
View file @
a7d6ef29
...
...
@@ -111,4 +111,23 @@ class YHCertificateViewModel: YHBaseViewModel {
callBack
(
nil
,
err
)
}
}
func
uploadCertificates
(
params
:[
String
:
Any
],
isSilient
:
Bool
=
false
,
callBack
:
@escaping
((
Bool
)
->
()))
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Certificate
.
certificateUploadApi
if
!
isSilient
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
}
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
code
in
if
!
isSilient
{
YHHUD
.
hide
()
}
}
failBlock
:
{
err
in
callBack
(
false
)
}
}
}
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
a7d6ef29
...
...
@@ -200,6 +200,9 @@ class YHAllApiName {
// 证件列表
static
let
certificateListApi
=
"infoflow/needUploadItems"
// 证件上传
static
let
certificateUploadApi
=
"infoflow/certificate/upload"
//获取问答列表
static
let
questionAndAnswerApi
=
"infoflow/answer-question/getAnswerQuestion"
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
a7d6ef29
...
...
@@ -90,6 +90,9 @@ class YHNetRequest: NSObject {
requestHeader
.
add
(
name
:
"sign"
,
value
:
sign
)
requestHeader
.
add
(
name
:
"token"
,
value
:
YHLoginManager
.
shared
.
userModel
?
.
token
??
"-"
)
requestHeader
.
add
(
name
:
"token"
,
value
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTI0NjA1NzQsImkiOjk4OTcwNDI5NjA3NzI0OSwidSI6IumTtuays-mbhuWboiIsInIiOiJzdXBlcl9hcHAifQ.jyBpXSii6nlRIITdOya3GQa5eb5G42Jh9nj39Cncwl8"
)
headers
=
requestHeader
}
...
...
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