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
90aaf9f4
Commit
90aaf9f4
authored
Mar 26, 2024
by
Steven杜宇
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证书
parent
85123e4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+1
-1
YHCertificateNameCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateNameCell.swift
+18
-7
YHCertificateSearchBar.swift
...服务中心)/MyCertificates(我的证书)/V/YHCertificateSearchBar.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
90aaf9f4
...
...
@@ -46,7 +46,7 @@ class YHCertificateInfoCell: UITableViewCell {
titleColor
=
.
failColor
title
=
"已驳回"
.
local
case
.
review
:
titleColor
=
.
labelTextColor2
titleColor
=
.
warnColor
title
=
"审核中"
.
local
case
.
finish
:
titleColor
=
.
labelTextColor2
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateNameCell.swift
View file @
90aaf9f4
...
...
@@ -14,6 +14,7 @@ class YHCertificateNameCell: UITableViewCell {
var
editBlock
:((
YHContentUrl
)
->
())?
var
whiteView
:
UIView
!
var
iconImgV
:
UIImageView
!
var
nameLabel
:
UILabel
!
var
timeLabel
:
UILabel
!
...
...
@@ -36,7 +37,7 @@ class YHCertificateNameCell: UITableViewCell {
nameLabel
.
text
=
model
.
name
timeLabel
.
text
=
"上传于
\(
model
.
updatedAt
)
"
var
suffix
=
model
.
getFileSuffixName
()
let
suffix
=
model
.
getFileSuffixName
()
var
iconImgName
=
""
if
suffix
==
"jpeg"
{
...
...
@@ -73,37 +74,47 @@ class YHCertificateNameCell: UITableViewCell {
self
.
selectionStyle
=
.
none
contentView
.
backgroundColor
=
.
white
whiteView
=
UIView
()
contentView
.
addSubview
(
whiteView
)
iconImgV
=
UIImageView
(
image
:
UIImage
(
named
:
"my_cer_type_jpg"
))
content
View
.
addSubview
(
iconImgV
)
white
View
.
addSubview
(
iconImgV
)
nameLabel
=
UILabel
()
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
textAlignment
=
.
left
nameLabel
.
numberOfLines
=
0
nameLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
content
View
.
addSubview
(
nameLabel
)
white
View
.
addSubview
(
nameLabel
)
timeLabel
=
UILabel
()
timeLabel
.
textColor
=
UIColor
.
labelTextColor2
timeLabel
.
textAlignment
=
.
left
timeLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
content
View
.
addSubview
(
timeLabel
)
white
View
.
addSubview
(
timeLabel
)
editBtn
=
UIButton
()
editBtn
.
setImage
(
UIImage
(
named
:
"my_cer_btn_edit"
),
for
:
.
normal
)
editBtn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
30
,
left
:
30
,
bottom
:
30
,
right
:
30
)
editBtn
.
addTarget
(
self
,
action
:
#selector(
didEditBtnClicked
)
,
for
:
.
touchUpInside
)
contentView
.
addSubview
(
editBtn
)
whiteView
.
addSubview
(
editBtn
)
whiteView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
15
)
make
.
bottom
.
equalToSuperview
()
}
iconImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
31
)
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalToSuperview
()
.
offset
(
20
+
6
)
make
.
left
.
equalToSuperview
()
.
offset
(
6
)
}
nameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
iconImgV
.
snp
.
right
)
.
offset
(
18
)
make
.
top
.
equalToSuperview
()
.
offset
(
15
+
7
)
make
.
top
.
equalToSuperview
()
.
offset
(
7
)
make
.
right
.
equalTo
(
editBtn
.
snp
.
left
)
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateSearchBar.swift
View file @
90aaf9f4
...
...
@@ -34,7 +34,7 @@ class YHCertificateSearchBar: UIView {
lazy
var
textField
:
UITextField
=
{
let
textField
=
UITextField
()
textField
.
backgroundColor
=
.
clear
textField
.
attributedPlaceholder
=
NSAttributedString
(
string
:
"
输入关键词搜索资料"
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
placeHolderColor
])
textField
.
attributedPlaceholder
=
NSAttributedString
(
string
:
"
请输出资料名称搜索"
.
local
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
placeHolderColor
])
textField
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
12
)
textField
.
tintColor
=
UIColor
(
hexString
:
"#3D88F8"
)
textField
.
textColor
=
UIColor
.
mainTextColor
...
...
pete谢兆麟
@pete
mentioned in commit
3f9212f3
·
Mar 26, 2024
mentioned in commit
3f9212f3
mentioned in commit 3f9212f37be52dc4a03c0cd749309f7291761fc3
Toggle commit 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