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
4835e47c
Commit
4835e47c
authored
Apr 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 关于我们
parent
8804d264
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
24 deletions
+20
-24
YHAboutUsViewController.swift
.../Classes/Modules/Mine(我的)/C/YHAboutUsViewController.swift
+12
-14
YHAboutUsAdvantageCell.swift
...y/Classes/Modules/Mine(我的)/V/YHAboutUsAdvantageCell.swift
+8
-10
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHAboutUsViewController.swift
View file @
4835e47c
...
...
@@ -19,10 +19,10 @@ struct AboutAdvantageItem {
class
YHAboutUsViewController
:
YHBaseViewController
{
lazy
var
items
=
{
return
[
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"
ABC
"
.
local
,
detail
:
"大数据精准匹配,专属方案获批率更高"
,
url
:
""
),
return
[
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"
精准匹配
"
.
local
,
detail
:
"大数据精准匹配,专属方案获批率更高"
,
url
:
""
),
AboutAdvantageItem
(
iconName
:
"about_response"
,
title
:
"快速响应"
,
detail
:
"身份规划师一对一专业服务,第一时间响应您的需求"
,
url
:
""
),
AboutAdvantageItem
(
iconName
:
"about_service"
,
title
:
"专业服务"
,
detail
:
"5年经验+英语专8级文案导师团队倾力支持"
,
url
:
""
),
AboutAdvantageItem
(
iconName
:
"about_service2"
,
title
:
"
精准匹配
"
,
detail
:
"香港专才、香港留学获批常年保持90%以上"
,
url
:
""
)]
AboutAdvantageItem
(
iconName
:
"about_service2"
,
title
:
"
获批保障
"
,
detail
:
"香港专才、香港留学获批常年保持90%以上"
,
url
:
""
)]
}()
lazy
var
collectView
=
{
...
...
@@ -50,9 +50,9 @@ class YHAboutUsViewController: YHBaseViewController {
lazy
var
aboutLabel
=
{
var
label
=
UILabel
()
label
.
text
=
"关于银河"
.
local
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textAlignment
=
NSTextAlignment
.
left
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
20
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
21
)
return
label
}()
...
...
@@ -62,16 +62,16 @@ class YHAboutUsViewController: YHBaseViewController {
label
.
numberOfLines
=
0
label
.
textColor
=
.
labelTextColor2
label
.
textAlignment
=
NSTextAlignment
.
left
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
return
label
}()
lazy
var
advantageLabel
=
{
var
label
=
UILabel
()
label
.
text
=
"四大优势"
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
17
)
return
label
}()
...
...
@@ -93,14 +93,12 @@ class YHAboutUsViewController: YHBaseViewController {
self
.
collectView
.
reloadData
()
self
.
collectView
.
layoutIfNeeded
()
let
height
=
self
.
collectView
.
contentSize
.
height
printLog
(
"self.collectView.contentSize.height =
\(
height
)
"
)
}
func
setupUI
()
{
self
.
t
itle
=
"关于我们"
self
.
gk_navT
itle
=
"关于我们"
view
.
backgroundColor
=
.
white
view
.
addSubview
(
collectView
)
...
...
@@ -113,19 +111,19 @@ class YHAboutUsViewController: YHBaseViewController {
aboutLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
view
)
.
offset
(
18
)
make
.
right
.
equalTo
(
view
)
.
offset
(
-
18
)
make
.
top
.
equalTo
(
view
)
.
offset
(
k_Height_NavigationtBarAndStatuBar
+
1
8
)
make
.
top
.
equalTo
(
view
)
.
offset
(
k_Height_NavigationtBarAndStatuBar
+
1
6
)
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
view
)
.
offset
(
18
)
make
.
right
.
equalTo
(
view
)
.
offset
(
-
18
)
make
.
top
.
equalTo
(
aboutLabel
.
snp
.
bottom
)
.
offset
(
1
8
)
make
.
top
.
equalTo
(
aboutLabel
.
snp
.
bottom
)
.
offset
(
1
2
)
}
advantageLabel
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalTo
(
view
)
make
.
height
.
equalTo
(
40
)
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
4
8
)
make
.
top
.
equalTo
(
detailLabel
.
snp
.
bottom
)
.
offset
(
3
8
)
}
advantageLeftImgView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -142,7 +140,7 @@ class YHAboutUsViewController: YHBaseViewController {
collectView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
advantageLabel
.
snp
.
bottom
)
.
offset
(
22
)
make
.
top
.
equalTo
(
advantageLabel
.
snp
.
bottom
)
.
offset
(
18
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHAboutUsAdvantageCell.swift
View file @
4835e47c
...
...
@@ -30,20 +30,18 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"是的发放"
label
.
textColor
=
UIColor
(
hexString
:
"#333333"
)
label
.
textColor
=
UIColor
.
init
(
hex
:
0x121A26
)
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
)
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
14
)
return
label
}()
lazy
var
detailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"sdfasfdasfasdfasfasdfasdfsafasdfasdfasdfasfdas"
label
.
textColor
=
.
labelTextColor2
label
.
textColor
=
UIColor
(
hex
:
0x121A2680
,
alpha
:
0.5
)
label
.
numberOfLines
=
0
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
return
label
}()
...
...
@@ -60,7 +58,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
func
setupUI
()
{
contentView
.
backgroundColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
contentView
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF8FAFB
)
contentView
.
layer
.
cornerRadius
=
4
contentView
.
clipsToBounds
=
true
...
...
@@ -81,9 +79,9 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
contentView
)
.
offset
(
5
)
make
.
right
.
equalTo
(
contentView
)
.
offset
(
-
5
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
8
)
make
.
left
.
equalTo
(
contentView
)
.
offset
(
1
5
)
make
.
right
.
equalTo
(
contentView
)
.
offset
(
-
1
5
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
6
)
make
.
bottom
.
equalTo
(
contentView
)
.
offset
(
-
5
)
}
}
...
...
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