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
1429493f
Commit
1429493f
authored
May 08, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI调整
parent
7b3255cf
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
7 deletions
+11
-7
YHSearchInfoCell.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
+7
-3
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+1
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-1
Contents.json
...ts.xcassets/Mine/mine_head_default.imageset/Contents.json
+2
-2
Group 2033194042@2x.png
...s/Mine/mine_head_default.imageset/Group 2033194042@2x.png
+0
-0
Group 2033194042@3x.png
...s/Mine/mine_head_default.imageset/Group 2033194042@3x.png
+0
-0
Group 33334470@2x.png
...ets/Mine/mine_head_default.imageset/Group 33334470@2x.png
+0
-0
Group 33334470@3x.png
...ets/Mine/mine_head_default.imageset/Group 33334470@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHSearchInfoCell.swift
View file @
1429493f
...
@@ -12,6 +12,8 @@ import Kingfisher
...
@@ -12,6 +12,8 @@ import Kingfisher
class
YHSearchInfoCell
:
UITableViewCell
{
class
YHSearchInfoCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHSearchInfoCell"
static
let
cellReuseIdentifier
=
"YHSearchInfoCell"
static
let
textFont
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
var
model
:
YHHomeListModel
=
YHHomeListModel
()
var
model
:
YHHomeListModel
=
YHHomeListModel
()
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
...
@@ -39,7 +41,7 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -39,7 +41,7 @@ class YHSearchInfoCell: UITableViewCell {
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
var
label
=
UILabel
()
var
label
=
UILabel
()
label
.
font
=
.
PFSC_R
(
ofSize
:
15
)
label
.
font
=
Self
.
textFont
label
.
textAlignment
=
.
left
label
.
textAlignment
=
.
left
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
numberOfLines
=
2
label
.
numberOfLines
=
2
...
@@ -82,7 +84,8 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -82,7 +84,8 @@ class YHSearchInfoCell: UITableViewCell {
func
renderHighLightText
(
_
text
:
String
)
{
func
renderHighLightText
(
_
text
:
String
)
{
var
attributedString
=
NSMutableAttributedString
(
string
:
self
.
model
.
title
,
attributes
:
[
var
attributedString
=
NSMutableAttributedString
(
string
:
self
.
model
.
title
,
attributes
:
[
.
foregroundColor
:
UIColor
(
hex
:
0x121A26
)
.
foregroundColor
:
UIColor
(
hex
:
0x121A26
),
.
font
:
Self
.
textFont
])
])
if
isEmptyString
(
text
)
{
if
isEmptyString
(
text
)
{
self
.
titleLabel
.
attributedText
=
attributedString
self
.
titleLabel
.
attributedText
=
attributedString
...
@@ -91,7 +94,8 @@ class YHSearchInfoCell: UITableViewCell {
...
@@ -91,7 +94,8 @@ class YHSearchInfoCell: UITableViewCell {
// 设置高亮样式
// 设置高亮样式
let
highlightAttributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
let
highlightAttributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
foregroundColor
:
UIColor
.
brandMainColor
.
foregroundColor
:
UIColor
.
brandMainColor
,
.
font
:
Self
.
textFont
]
]
let
ranges
=
findOccurrencesOfString
(
text
,
inString
:
self
.
model
.
title
)
let
ranges
=
findOccurrencesOfString
(
text
,
inString
:
self
.
model
.
title
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
1429493f
...
@@ -69,7 +69,7 @@ class YHCertificateInfoCell: UITableViewCell {
...
@@ -69,7 +69,7 @@ class YHCertificateInfoCell: UITableViewCell {
infoStr
=
"类型:
\(
typeStr
)
| 所属人:
\(
ownerStr
)
"
infoStr
=
"类型:
\(
typeStr
)
| 所属人:
\(
ownerStr
)
"
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
font
:
UIFont
.
PFSC_R
(
ofSize
:
1
1
),
.
font
:
UIFont
.
PFSC_R
(
ofSize
:
1
2
),
.
foregroundColor
:
UIColor
.
labelTextColor2
.
foregroundColor
:
UIColor
.
labelTextColor2
]
]
let
attrString
=
NSMutableAttributedString
(
string
:
infoStr
,
attributes
:
attributes
)
let
attrString
=
NSMutableAttributedString
(
string
:
infoStr
,
attributes
:
attributes
)
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
1429493f
...
@@ -245,7 +245,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
...
@@ -245,7 +245,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
5
2
return
5
3.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
...
...
galaxy/galaxy/Res/Assets.xcassets/Mine/mine_head_default.imageset/Contents.json
View file @
1429493f
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
"scale"
:
"1x"
"scale"
:
"1x"
},
},
{
{
"filename"
:
"Group
33334470
@2x.png"
,
"filename"
:
"Group
2033194042
@2x.png"
,
"idiom"
:
"universal"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
"scale"
:
"2x"
},
},
{
{
"filename"
:
"Group
33334470
@3x.png"
,
"filename"
:
"Group
2033194042
@3x.png"
,
"idiom"
:
"universal"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
"scale"
:
"3x"
}
}
...
...
galaxy/galaxy/Res/Assets.xcassets/Mine/mine_head_default.imageset/Group 2033194042@2x.png
0 → 100644
View file @
1429493f
18.2 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/mine_head_default.imageset/Group 2033194042@3x.png
0 → 100644
View file @
1429493f
38.7 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/mine_head_default.imageset/Group 33334470@2x.png
deleted
100644 → 0
View file @
7b3255cf
5.85 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/mine_head_default.imageset/Group 33334470@3x.png
deleted
100644 → 0
View file @
7b3255cf
8.75 KB
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