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
77c1c514
Commit
77c1c514
authored
May 10, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 视频点赞收藏
parent
eadb2fe8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+7
-0
YHVideoPlayerVC.swift
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
77c1c514
...
...
@@ -94,6 +94,13 @@ extension YHHomeCollectionViewCell {
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
listModel
.
media_url
vc
.
id
=
listModel
.
id
vc
.
updateBlock
=
{
[
weak
self
]
item
in
guard
let
self
=
self
else
{
return
}
listModel
.
is_like
=
item
.
is_like
listModel
.
like_count
=
item
.
like_count
self
.
updataSubViews
()
}
self
.
parentViewController
?
.
navigationController
?
.
pushViewController
(
vc
)
DispatchQueue
.
main
.
async
{
...
...
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
View file @
77c1c514
...
...
@@ -17,7 +17,7 @@ class YHVideoPlayerVC: YHBaseViewController {
var
url
:
String
=
""
var
id
:
Int
=
0
typealias
Block
=
(
YHWebModel
)
->
()
var
b
lock
:
Block
?
var
updateB
lock
:
Block
?
private
var
operationFlag
:
Bool
=
false
...
...
@@ -232,7 +232,7 @@ extension YHVideoPlayerVC {
bottomView
.
isLike
=
model
.
is_like
if
operationFlag
{
self
.
b
lock
?(
model
)
self
.
updateB
lock
?(
model
)
}
}
}
...
...
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