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
a7bc477b
Commit
a7bc477b
authored
Dec 13, 2024
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播居中展示
parent
dc468e9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
YHHomeHoldViewPageViewController.swift
...Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
+6
-1
YHLifeViewController.swift
...es/Modules/Home(首页)/Life(生活)/C/YHLifeViewController.swift
+5
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
View file @
a7bc477b
...
...
@@ -79,11 +79,13 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
for
item
in
dataSource
{
tempTitle
.
append
(
item
.
name
)
if
item
.
id
==
1
{
//推荐
let
vc
=
homePageVC
vc
.
configModel
=
self
.
viewModel
.
homeInfoModel
arrItemVCs
.
append
(
vc
)
}
if
item
.
id
==
2
{
//
let
vc
=
YHHomeIdentityViewController
()
arrItemVCs
.
append
(
vc
)
}
...
...
@@ -93,15 +95,18 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
arrItemVCs
.
append
(
vc
)
}
if
item
.
id
==
4
{
//相关资讯
let
vc
=
YHHomeInformationViewController
()
arrItemVCs
.
append
(
vc
)
}
if
item
.
id
==
5
{
//银河甄选
let
vc
=
YHSelectViewController
()
vc
.
hideFlag
=
true
arrItemVCs
.
append
(
vc
)
}
if
item
.
id
==
6
{
//直播
let
vc
=
YHLifeViewController
()
vc
.
hideFlag
=
true
arrItemVCs
.
append
(
vc
)
...
...
@@ -123,7 +128,7 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
segmentedView
.
reloadData
()
}
else
{
arrItemVCs
.
removeAll
()
var
tempTitle
:
[
String
]
=
[
"推荐"
,
"身份"
,
"生活"
,
"咨询攻略"
]
let
tempTitle
:
[
String
]
=
[
"推荐"
,
"身份"
,
"生活"
,
"咨询攻略"
]
let
dataSource
=
self
.
viewModel
.
homeInfoModel
?
.
tab_list
??
[]
for
item
in
0
..<
4
{
if
item
==
0
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/Life(生活)/C/YHLifeViewController.swift
View file @
a7bc477b
...
...
@@ -30,7 +30,7 @@ class YHLifeViewController: YHBaseViewController {
let
collectinoView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
collectinoView
.
backgroundColor
=
.
white
collectinoView
.
contentInset
=
UIEdgeInsets
(
top
:
16
,
left
:
20
,
bottom
:
0
,
right
:
20
)
//
collectinoView.contentInset = UIEdgeInsets(top: 16, left: 20, bottom: 0, right: 20)
collectinoView
.
register
(
YHLookCollectionViewCell
.
self
,
forCellWithReuseIdentifier
:
YHLookCollectionViewCell
.
cellReuseIdentifier
)
collectinoView
.
delegate
=
self
collectinoView
.
dataSource
=
self
...
...
@@ -189,7 +189,10 @@ extension YHLifeViewController {
view
.
addSubview
(
myCollectView
)
myCollectView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
10
)
make
.
bottom
.
equalToSuperview
()
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
}
view
.
addSubview
(
noDataView
)
...
...
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