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
aa51867d
Commit
aa51867d
authored
Apr 10, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI走查
parent
7a9071ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
12 deletions
+47
-12
YHSearchInfoCell.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
+24
-3
YHCertificateListContainerVC.swift
...MyCertificates(我的证书)/C/YHCertificateListContainerVC.swift
+21
-7
YHCertificateUploadContentListVC.swift
...rtificates(我的证书)/C/YHCertificateUploadContentListVC.swift
+1
-1
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
View file @
aa51867d
...
...
@@ -8,6 +8,8 @@
import
UIKit
class
YHSearchInfoCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHSearchInfoCell"
...
...
@@ -39,9 +41,8 @@ class YHSearchInfoCell: UITableViewCell {
return
label
}()
func
setupUI
()
{
contentView
.
backgroundColor
=
.
white
contentView
.
addSubview
(
headImgView
)
contentView
.
addSubview
(
titleLabel
)
...
...
@@ -58,5 +59,25 @@ class YHSearchInfoCell: UITableViewCell {
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
}
}
func
highlightText
(
in
text
:
String
,
highlightString
:
String
,
highlightColor
:
UIColor
)
->
NSAttributedString
{
let
attributedString
=
NSMutableAttributedString
(
string
:
text
)
// 创建一个属性字典,用于设置高亮样式
let
highlightAttributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
backgroundColor
:
highlightColor
]
// 查找并应用高亮样式到指定文字
let
range
=
(
text
as
NSString
)
.
range
(
of
:
highlightString
)
attributedString
.
addAttributes
(
highlightAttributes
,
range
:
range
)
return
attributedString
}
func
hopeless
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateListContainerVC.swift
View file @
aa51867d
...
...
@@ -36,7 +36,7 @@ class YHCertificateCategoryItem {
class
YHCertificateListContainerVC
:
YHBaseViewController
{
static
let
segmentHeight
=
53
.0
static
let
segmentHeight
=
49
.0
var
orderId
:
Int
?
var
filterDict
:
[
String
:
String
]
=
[:]
...
...
@@ -68,6 +68,12 @@ class YHCertificateListContainerVC: YHBaseViewController {
YHCertificateCategoryItem
(
type
:
.
finish
)]
var
itemVCs
:[
YHCertificateListVC
]
=
[]
lazy
var
segmentContainerView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
return
view
}()
lazy
var
segmentedView
:
JXSegmentedView
=
{
let
segview
=
JXSegmentedView
(
frame
:
CGRect
(
x
:
0
,
y
:
k_Height_NavigationtBarAndStatuBar
,
width
:
KScreenWidth
,
height
:
Self
.
segmentHeight
))
segview
.
dataSource
=
segmentedDataSource
...
...
@@ -75,6 +81,7 @@ class YHCertificateListContainerVC: YHBaseViewController {
//配置指示器
let
indicator
=
JXSegmentedIndicatorLineView
()
indicator
.
indicatorWidth
=
16
indicator
.
indicatorHeight
=
4.0
indicator
.
indicatorColor
=
.
brandMainColor
segview
.
indicators
=
[
indicator
]
segview
.
backgroundColor
=
.
clear
...
...
@@ -163,8 +170,9 @@ class YHCertificateListContainerVC: YHBaseViewController {
itemVCs
.
append
(
vc
)
}
view
.
addSubview
(
navBar
)
view
.
addSubview
(
segmentedView
)
view
.
addSubview
(
filterBtn
)
view
.
addSubview
(
segmentContainerView
)
segmentContainerView
.
addSubview
(
segmentedView
)
segmentContainerView
.
addSubview
(
filterBtn
)
view
.
addSubview
(
listContainerView
)
navBar
.
snp
.
makeConstraints
{
make
in
...
...
@@ -172,21 +180,27 @@ class YHCertificateListContainerVC: YHBaseViewController {
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_statusBar
())
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
}
segmentContainerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
height
.
equalTo
(
Self
.
segmentHeight
+
4
)
}
segmentedView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
make
.
top
.
left
.
equalToSuperview
()
make
.
right
.
equalToSuperview
()
.
offset
(
-
21
-
18
)
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
height
.
equalTo
(
Self
.
segmentHeight
)
}
filterBtn
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
YHCertificateFilterButton
.
width
)
make
.
centerY
.
equalTo
(
segmentedView
.
snp
.
centerY
)
make
.
centerY
.
equalTo
Superview
(
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
18
)
}
listContainerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
segment
ed
View
.
snp
.
bottom
)
make
.
top
.
equalTo
(
segment
Container
View
.
snp
.
bottom
)
make
.
bottom
.
equalToSuperview
()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateUploadContentListVC.swift
View file @
aa51867d
...
...
@@ -283,7 +283,7 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData
}
else
if
editType
==
.
delete
{
// 删除
let
msg
=
"您确定要删除文档
\(
contentItem
.
name
)
吗"
let
msg
=
"您确定要删除文档
\(
contentItem
.
name
)
吗
?
"
YHTwoOptionAlertView
.
showAlertView
(
message
:
msg
)
{
sure
in
if
!
sure
{
return
}
// 删除
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
aa51867d
...
...
@@ -155,7 +155,7 @@ class YHCertificateInfoCell: UITableViewCell {
nameTextView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
10
)
make
.
top
.
equalToSuperview
()
.
offset
(
4
)
make
.
right
.
equalTo
(
statusLabel
.
snp
.
left
)
.
offset
(
-
6
)
make
.
right
.
equalTo
(
statusLabel
.
snp
.
left
)
.
offset
(
-
2
6
)
}
infoLabel
.
snp
.
makeConstraints
{
make
in
...
...
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