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
cf8f6b90
Commit
cf8f6b90
authored
Mar 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证件
parent
cd1ef10b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
20 deletions
+44
-20
YHUploadContentVC.swift
...vice(服务中心)/MyCertificates(我的证书)/C/YHUploadContentVC.swift
+16
-13
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+0
-7
YHCertificateNameCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateNameCell.swift
+5
-0
YHCertificateViewModel.swift
...务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
+23
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHUploadContentVC.swift
View file @
cf8f6b90
...
...
@@ -14,10 +14,10 @@ class YHUploadContentVC: YHBaseViewController {
var
orderId
:
Int
?
var
viewModel
:
YHCertificateViewModel
=
YHCertificateViewModel
()
var
items
:[
String
]
=
[
"1"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
]
var
items
:[
YHContentUrl
]
=
[
]
var
renameInputView
:
YHFileRenameInputView
=
{
let
view
=
YHFileRenameInputView
.
inputView
(
defalutText
:
"
adfasfsf
"
,
editBlock
:
{
let
view
=
YHFileRenameInputView
.
inputView
(
defalutText
:
"
请输入名称
"
,
editBlock
:
{
text
in
print
(
"
\(
text
)
"
)
})
...
...
@@ -149,7 +149,7 @@ extension YHUploadContentVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
item
=
items
[
indexPath
.
row
]
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCertificateNameCell
.
cellReuseIdentifier
,
for
:
indexPath
)
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCertificateNameCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHCertificateNameCell
return
cell
}
...
...
@@ -293,16 +293,19 @@ extension YHUploadContentVC {
[
weak
self
]
listInfo
,
error
in
guard
let
self
=
self
else
{
return
}
// items.removeAll()
// if let listInfo = listInfo {
// let arr = listInfo.supplementList
// items.append(contentsOf: arr)
// self.tableView.reloadData()
// }
//
// if let errorMsg = error?.errorMsg, errorMsg.count > 0 {
// YHHUD.flash(message: errorMsg, duration:3)
// }
items
.
removeAll
()
if
let
listInfo
=
listInfo
{
let
arr
=
listInfo
.
supplementList
if
let
info
=
arr
.
first
{
let
arr
=
info
.
contentUrl
items
.
append
(
contentsOf
:
arr
)
}
self
.
tableView
.
reloadData
()
}
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
YHHUD
.
flash
(
message
:
errorMsg
,
duration
:
3
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
cf8f6b90
...
...
@@ -9,13 +9,6 @@
import
UIKit
import
AttributedString
enum
YHCertificateUploadStatus
:
Int
{
case
unknown
=
0
case
preUpload
=
1
case
review
=
2
case
rejected
=
3
case
finish
=
4
}
class
YHCertificateInfoCell
:
UITableViewCell
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateNameCell.swift
View file @
cf8f6b90
...
...
@@ -28,6 +28,11 @@ class YHCertificateNameCell: UITableViewCell {
setupUI
()
}
func
updateModel
(
_
model
:
YHContentUrl
)
{
nameLabel
.
text
=
model
.
name
timeLabel
.
text
=
"上传于
\(
model
.
updatedAt
)
"
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
View file @
cf8f6b90
...
...
@@ -10,6 +10,29 @@
import
UIKit
import
SmartCodable
enum
YHCertificateCategoryId
:
Int
{
// 子女
case
child
=
18
// 配偶
case
spouse
=
19
// 主申请人
case
mainApplicant
=
20
}
enum
YHCertificateUploadStatus
:
Int
{
// 未知
case
unknown
=
-
1
// 审核中
case
review
=
0
// 已完成
case
finish
=
1
// 审核中
case
rejected
=
2
// 待上传
case
preUpload
=
3
}
class
YHCertificateViewModel
:
YHBaseViewModel
{
var
certificateEntryModel
:
YHCertificateEntryModel
?
var
arrQuestionAndAnswer
:
[
YHQuestionAndAnswerModel
?]
=
[]
...
...
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