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
41767df0
Commit
41767df0
authored
Apr 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
be035ca5
8ee8e3ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+4
-1
YHHomeCollectionViewCell.swift
...IntelligentService(服务中心)/V/YHHomeCollectionViewCell.swift
+11
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
41767df0
...
@@ -156,11 +156,14 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
...
@@ -156,11 +156,14 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
guard
let
model
=
self
.
viewModel
.
arrHomeNewsData
?[
indexPath
.
row
]
else
{
return
}
guard
let
model
=
self
.
viewModel
.
arrHomeNewsData
?[
indexPath
.
row
]
else
{
return
}
if
model
.
type
==
2
{
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
YHConfigManager
.
shared
.
h5Url
+
"?id=
\(
model
.
id
)
"
vc
.
url
=
YHConfigManager
.
shared
.
h5Url
+
"?id=
\(
model
.
id
)
"
vc
.
id
=
model
.
id
vc
.
id
=
model
.
id
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
model
.
type
==
1
{
printLog
(
"直接播放视频"
)
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHHomeCollectionViewCell.swift
View file @
41767df0
...
@@ -178,9 +178,15 @@ extension YHHomeCollectionViewCell {
...
@@ -178,9 +178,15 @@ extension YHHomeCollectionViewCell {
heartImageViewBtn
.
isSelected
=
listModel
.
is_like
heartImageViewBtn
.
isSelected
=
listModel
.
is_like
if
listModel
.
type
==
1
{
if
listModel
.
type
==
1
{
//视频
playButton
.
isHidden
=
false
playButton
.
isHidden
=
false
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
tapView(gestureRecognizer:)
)
)
contentView
.
addGestureRecognizer
(
tap
)
}
else
{
}
else
{
//资讯
playButton
.
isHidden
=
true
playButton
.
isHidden
=
true
contentView
.
removeGestureRecognizers
()
}
}
}
}
...
@@ -215,4 +221,9 @@ extension YHHomeCollectionViewCell {
...
@@ -215,4 +221,9 @@ extension YHHomeCollectionViewCell {
self
.
parentViewController
?
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
self
.
parentViewController
?
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
}
}
}
}
@objc
func
tapView
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
clickPlayButton
()
}
}
}
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