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
f471abf5
Commit
f471abf5
authored
May 22, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点赞动画优化
parent
d707ad35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+1
-1
YHHomeWebBottomView.swift
...laxy/Classes/Modules/Home(首页)/V/YHHomeWebBottomView.swift
+5
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
f471abf5
...
@@ -217,7 +217,7 @@ extension YHHomeCollectionViewCell {
...
@@ -217,7 +217,7 @@ extension YHHomeCollectionViewCell {
animationView
.
loopMode
=
.
playOnce
animationView
.
loopMode
=
.
playOnce
animationView
.
play
{[
weak
self
]
completed
in
animationView
.
play
{[
weak
self
]
completed
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
animationView
.
isHidden
=
true
//
self.animationView.isHidden = true
}
}
viewModel
.
getLike
(
listModel
.
id
,
1
)
{[
weak
self
]
success
,
error
in
viewModel
.
getLike
(
listModel
.
id
,
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeWebBottomView.swift
View file @
f471abf5
...
@@ -53,7 +53,11 @@ class YHHomeWebBottomView: UIView {
...
@@ -53,7 +53,11 @@ class YHHomeWebBottomView: UIView {
}
}
}
}
likeButton
.
setContent
(
image
,
"
\(
likeCount
)
"
)
if
animationView
.
isHidden
{
likeButton
.
setContent
(
image
,
"
\(
likeCount
)
"
)
}
else
{
likeButton
.
setContent
(
UIImage
(
named
:
""
),
"
\(
likeCount
)
"
)
}
}
}
}
//是否点赞
}
//是否点赞
...
...
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