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
e97dd36b
Commit
e97dd36b
authored
Jan 08, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 关于我们界面
parent
fc89447a
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
115 additions
and
2 deletions
+115
-2
YHAboutUsViewController.swift
.../Classes/Modules/Mine(我的)/C/YHAboutUsViewController.swift
+17
-2
YHAboutUsAdvantageCell.swift
...y/Classes/Modules/Mine(我的)/V/YHAboutUsAdvantageCell.swift
+11
-0
Contents.json
...s/Assets.xcassets/Mine/about_match.imageset/Contents.json
+22
-0
Group 2995@2x.png
...sets.xcassets/Mine/about_match.imageset/Group 2995@2x.png
+0
-0
Group 2995@3x.png
...sets.xcassets/Mine/about_match.imageset/Group 2995@3x.png
+0
-0
Contents.json
...ssets.xcassets/Mine/about_response.imageset/Contents.json
+22
-0
Group 2998@2x.png
...s.xcassets/Mine/about_response.imageset/Group 2998@2x.png
+0
-0
Group 2998@3x.png
...s.xcassets/Mine/about_response.imageset/Group 2998@3x.png
+0
-0
Contents.json
...Assets.xcassets/Mine/about_service.imageset/Contents.json
+21
-0
Group 2999@2x.png
...ts.xcassets/Mine/about_service.imageset/Group 2999@2x.png
+0
-0
Contents.json
...ssets.xcassets/Mine/about_service2.imageset/Contents.json
+22
-0
Group 3000@2x.png
...s.xcassets/Mine/about_service2.imageset/Group 3000@2x.png
+0
-0
Group 3000@3x.png
...s.xcassets/Mine/about_service2.imageset/Group 3000@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHAboutUsViewController.swift
View file @
e97dd36b
...
@@ -9,8 +9,22 @@
...
@@ -9,8 +9,22 @@
import
UIKit
import
UIKit
import
DeviceKit
import
DeviceKit
struct
AboutAdvantageItem
{
var
iconName
:
String
var
title
:
String
var
detail
:
String
}
class
YHAboutUsViewController
:
YHBaseViewController
{
class
YHAboutUsViewController
:
YHBaseViewController
{
lazy
var
items
=
{
return
[
AboutAdvantageItem
(
iconName
:
"about_match"
,
title
:
"精准匹配"
,
detail
:
"大数据精准匹配,专属方案获批率更高"
),
AboutAdvantageItem
(
iconName
:
"about_response"
,
title
:
"快速响应"
,
detail
:
"身份规划师一对一专业服务,第一时间响应您的需求"
),
AboutAdvantageItem
(
iconName
:
"about_service"
,
title
:
"专业服务"
,
detail
:
"5年经验+英语专8级文案导师团队倾力支持"
),
AboutAdvantageItem
(
iconName
:
"about_service2"
,
title
:
"精准匹配"
,
detail
:
"香港专才、香港留学获批常年保持90%以上"
)]
}()
lazy
var
collectView
=
{
lazy
var
collectView
=
{
// 设置布局方向
// 设置布局方向
...
@@ -20,6 +34,7 @@ class YHAboutUsViewController: YHBaseViewController {
...
@@ -20,6 +34,7 @@ class YHAboutUsViewController: YHBaseViewController {
let
itemWidth
=
floor
((
KScreenWidth
-
2*
margin
-
gap
)
/
2.0
)
let
itemWidth
=
floor
((
KScreenWidth
-
2*
margin
-
gap
)
/
2.0
)
flowLayout
.
itemSize
=
CGSize
(
width
:
itemWidth
,
height
:
itemWidth
)
flowLayout
.
itemSize
=
CGSize
(
width
:
itemWidth
,
height
:
itemWidth
)
flowLayout
.
minimumInteritemSpacing
=
12.0
flowLayout
.
minimumInteritemSpacing
=
12.0
flowLayout
.
minimumLineSpacing
=
12.0
flowLayout
.
scrollDirection
=
.
vertical
flowLayout
.
scrollDirection
=
.
vertical
let
collectinoView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
let
collectinoView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
...
@@ -129,12 +144,12 @@ class YHAboutUsViewController: YHBaseViewController {
...
@@ -129,12 +144,12 @@ class YHAboutUsViewController: YHBaseViewController {
extension
YHAboutUsViewController
:
UICollectionViewDelegateFlowLayout
,
UICollectionViewDelegate
,
UICollectionViewDataSource
{
extension
YHAboutUsViewController
:
UICollectionViewDelegateFlowLayout
,
UICollectionViewDelegate
,
UICollectionViewDataSource
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
numberOfItemsInSection
section
:
Int
)
->
Int
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
numberOfItemsInSection
section
:
Int
)
->
Int
{
return
4
return
items
.
count
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHAboutUsAdvantageCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHAboutUsAdvantageCell
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHAboutUsAdvantageCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHAboutUsAdvantageCell
cell
.
advantateItem
=
items
[
indexPath
.
row
]
return
cell
return
cell
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHAboutUsAdvantageCell.swift
View file @
e97dd36b
...
@@ -11,6 +11,17 @@ import UIKit
...
@@ -11,6 +11,17 @@ import UIKit
class
YHAboutUsAdvantageCell
:
UICollectionViewCell
{
class
YHAboutUsAdvantageCell
:
UICollectionViewCell
{
static
let
cellReuseIdentifier
=
"YHAboutUsAdvantageCell"
static
let
cellReuseIdentifier
=
"YHAboutUsAdvantageCell"
var
advantateItem
:
AboutAdvantageItem
?
{
didSet
{
if
let
advantateItem
=
advantateItem
{
iconImgView
.
image
=
UIImage
(
named
:
advantateItem
.
iconName
)
titleLabel
.
text
=
advantateItem
.
title
detailLabel
.
text
=
advantateItem
.
detail
}
}
}
lazy
var
iconImgView
:
UIImageView
=
{
lazy
var
iconImgView
:
UIImageView
=
{
let
icon
=
UIImageView
(
image
:
UIImage
(
named
:
"mine_manager"
))
let
icon
=
UIImageView
(
image
:
UIImage
(
named
:
"mine_manager"
))
...
...
galaxy/galaxy/Res/Assets.xcassets/Mine/about_match.imageset/Contents.json
0 → 100644
View file @
e97dd36b
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 2995@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Group 2995@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Mine/about_match.imageset/Group 2995@2x.png
0 → 100644
View file @
e97dd36b
24.8 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/about_match.imageset/Group 2995@3x.png
0 → 100644
View file @
e97dd36b
50.1 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/about_response.imageset/Contents.json
0 → 100644
View file @
e97dd36b
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 2998@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Group 2998@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Mine/about_response.imageset/Group 2998@2x.png
0 → 100644
View file @
e97dd36b
22.9 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/about_response.imageset/Group 2998@3x.png
0 → 100644
View file @
e97dd36b
48.2 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/about_service.imageset/Contents.json
0 → 100644
View file @
e97dd36b
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 2999@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Mine/about_service.imageset/Group 2999@2x.png
0 → 100644
View file @
e97dd36b
23.9 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/about_service2.imageset/Contents.json
0 → 100644
View file @
e97dd36b
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 3000@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Group 3000@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Mine/about_service2.imageset/Group 3000@2x.png
0 → 100644
View file @
e97dd36b
23.9 KB
galaxy/galaxy/Res/Assets.xcassets/Mine/about_service2.imageset/Group 3000@3x.png
0 → 100644
View file @
e97dd36b
48.9 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