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
da818e8e
Commit
da818e8e
authored
Mar 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证件
parent
b483529e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
+25
-10
YHCertificateSearchViewController.swift
...tificates(我的证书)/C/YHCertificateSearchViewController.swift
+1
-0
YHCertificateModel.swift
...ice(服务中心)/MyCertificates(我的证书)/M/YHCertificateModel.swift
+6
-1
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+18
-9
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateSearchViewController.swift
View file @
da818e8e
...
@@ -96,6 +96,7 @@ class YHCertificateSearchViewController: YHBaseViewController {
...
@@ -96,6 +96,7 @@ class YHCertificateSearchViewController: YHBaseViewController {
self
.
view
.
backgroundColor
=
.
white
self
.
view
.
backgroundColor
=
.
white
self
.
gk_navTitle
=
"资料搜索"
.
local
self
.
gk_navTitle
=
"资料搜索"
.
local
createUI
()
createUI
()
requestList
(
keyWord
:
""
)
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/M/YHCertificateModel.swift
View file @
da818e8e
...
@@ -69,7 +69,7 @@ class YHSupplementInfo: SmartCodable {
...
@@ -69,7 +69,7 @@ class YHSupplementInfo: SmartCodable {
var
nameExtra
:
YHNameExtra
=
YHNameExtra
()
var
nameExtra
:
YHNameExtra
=
YHNameExtra
()
var
templateInfo
:
YHTemplateInfo
=
YHTemplateInfo
()
var
templateInfo
:
YHTemplateInfo
=
YHTemplateInfo
()
var
auditContent
:
String
=
""
var
auditContent
:
String
=
""
var
uploadRequirement
:
String
=
""
var
uploadRequirement
:
Int
=
0
var
contentUrl
:
[
YHContentUrl
]
=
[]
var
contentUrl
:
[
YHContentUrl
]
=
[]
func
getStatusName
()
->
String
{
func
getStatusName
()
->
String
{
...
@@ -84,6 +84,11 @@ class YHSupplementInfo: SmartCodable {
...
@@ -84,6 +84,11 @@ class YHSupplementInfo: SmartCodable {
}
}
return
""
return
""
}
}
func
isNeedSupplemnt
()
->
Bool
{
// 0:必须提供, 1:如无可不提供
return
uploadRequirement
==
0
}
enum
CodingKeys
:
String
,
CodingKey
{
enum
CodingKeys
:
String
,
CodingKey
{
case
id
=
"id"
case
id
=
"id"
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
da818e8e
...
@@ -57,19 +57,28 @@ class YHCertificateInfoCell: UITableViewCell {
...
@@ -57,19 +57,28 @@ class YHCertificateInfoCell: UITableViewCell {
statusLabel
.
text
=
title
statusLabel
.
text
=
title
statusLabel
.
textColor
=
titleColor
statusLabel
.
textColor
=
titleColor
}
}
infoLabel
.
text
=
"类型:
\(
model
.
typeName
)
所属人:
\(
model
.
nameExtra
.
userName
)
"
var
result
:
ASAttributedString
=
.
init
(
string
:
""
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
mustTag
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
failColor
))
let
cerName
:
ASAttributedString
=
.
init
(
string
:
model
.
name
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
var
template
:
ASAttributedString
=
"
\(
.
view
(
templateButton
,
.
original
(
.
center
))
)
"
// 是否展示右边的模版按钮
var
showTemplateBtn
=
true
if
model
.
templateInfo
.
materialPath
.
isEmpty
&&
model
.
templateInfo
.
guideFilePath
.
isEmpty
&&
model
.
templateInfo
.
description
.
isEmpty
{
if
model
.
templateInfo
.
materialPath
.
isEmpty
&&
model
.
templateInfo
.
guideFilePath
.
isEmpty
&&
model
.
templateInfo
.
description
.
isEmpty
{
nameTextView
.
attributed
.
text
=
"""
showTemplateBtn
=
false
\(
model
.
name
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
))
)
"""
}
else
{
nameTextView
.
attributed
.
text
=
"""
\(
model
.
name
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
))
)
\(
.
view
(
templateButton
,
.
original
(
.
center
))
)
"""
}
}
infoLabel
.
text
=
"类型:
\(
model
.
typeName
)
所属人:
\(
model
.
nameExtra
.
userName
)
"
if
model
.
isNeedSupplemnt
()
{
result
+=
mustTag
}
result
+=
cerName
if
showTemplateBtn
{
result
+=
template
}
nameTextView
.
attributed
.
text
=
result
}
}
@objc
func
didTemplateBtnClicked
()
{
@objc
func
didTemplateBtnClicked
()
{
...
...
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