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
808ed382
Commit
808ed382
authored
Jul 01, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 匹配动画优化
parent
25d01332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
YHMatchUserViewController.swift
...s/Modules/Community(社区)/C/YHMatchUserViewController.swift
+12
-2
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchUserViewController.swift
View file @
808ed382
...
@@ -35,6 +35,8 @@ class YHMatchUserViewController: YHBaseViewController {
...
@@ -35,6 +35,8 @@ class YHMatchUserViewController: YHBaseViewController {
return
btn
return
btn
}()
}()
var
isBottomBtnEnabled
=
true
lazy
var
headLottieView
:
LottieAnimationView
=
{
lazy
var
headLottieView
:
LottieAnimationView
=
{
let
view
=
LottieAnimationView
(
name
:
"people_head"
)
let
view
=
LottieAnimationView
(
name
:
"people_head"
)
view
.
loopMode
=
.
loop
view
.
loopMode
=
.
loop
...
@@ -226,6 +228,12 @@ extension YHMatchUserViewController: JXSegmentedListContainerViewListDelegate {
...
@@ -226,6 +228,12 @@ extension YHMatchUserViewController: JXSegmentedListContainerViewListDelegate {
extension
YHMatchUserViewController
:
YHMatchProtocol
{
extension
YHMatchUserViewController
:
YHMatchProtocol
{
func
startMatchUsers
()
{
func
startMatchUsers
()
{
if
!
self
.
isBottomBtnEnabled
{
return
}
self
.
isBottomBtnEnabled
=
false
self
.
headLottieView
.
isHidden
=
true
self
.
headLottieView
.
isHidden
=
true
self
.
launchLottieView
.
isHidden
=
false
self
.
launchLottieView
.
isHidden
=
false
self
.
launchLottieView
.
loopMode
=
.
playOnce
self
.
launchLottieView
.
loopMode
=
.
playOnce
...
@@ -236,7 +244,9 @@ extension YHMatchUserViewController: YHMatchProtocol {
...
@@ -236,7 +244,9 @@ extension YHMatchUserViewController: YHMatchProtocol {
self
.
rotateLottieView
.
isHidden
=
false
self
.
rotateLottieView
.
isHidden
=
false
self
.
rotateLottieView
.
loopMode
=
.
loop
self
.
rotateLottieView
.
loopMode
=
.
loop
self
.
rotateLottieView
.
play
()
self
.
rotateLottieView
.
play
()
self
.
requestMatchUserList
()
DispatchQueue
.
global
()
.
asyncAfter
(
deadline
:
.
now
()
+
2.0
,
execute
:
{
self
.
requestMatchUserList
()
})
}
}
}
}
}
}
...
@@ -245,7 +255,7 @@ extension YHMatchUserViewController {
...
@@ -245,7 +255,7 @@ extension YHMatchUserViewController {
func
requestMatchUserList
()
{
func
requestMatchUserList
()
{
self
.
viewModel
.
getMatchUserlist
{
self
.
viewModel
.
getMatchUserlist
{
success
,
error
in
success
,
error
in
self
.
isBottomBtnEnabled
=
true
if
success
,
self
.
viewModel
.
matchUserArr
.
count
>
0
{
if
success
,
self
.
viewModel
.
matchUserArr
.
count
>
0
{
let
vc
=
YHMatchResultListViewController
()
let
vc
=
YHMatchResultListViewController
()
vc
.
delegate
=
self
vc
.
delegate
=
self
...
...
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