Commit 0038855c authored by David黄金龙's avatar David黄金龙

取消 Ai 动画

parent 48676ea3
...@@ -281,11 +281,24 @@ extension YHMatchUserViewController: YHMatchProtocol { ...@@ -281,11 +281,24 @@ extension YHMatchUserViewController: YHMatchProtocol {
self.launchLottieView.isHidden = true self.launchLottieView.isHidden = true
self.rotateLottieView.isHidden = false self.rotateLottieView.isHidden = false
self.rotateLottieView.loopMode = .loop self.rotateLottieView.loopMode = .loop
self.rotateLottieView.play() self.rotateLottieView.play { [weak self] completed in
DispatchQueue.global().asyncAfter(deadline: .now()+2.0, execute: { if completed {
self.requestMatchUserList() print("yyyyyyyyy")
}) } else {
print("nnnnnnnnnn")
self?.isStartMatch = false
self?.resetAnimation()
}
}
} }
DispatchQueue.main.asyncAfter(deadline: .now()+2.0, execute: {
if self.isStartMatch {
self.requestMatchUserList()
} else {
self.resetAnimation()
}
})
} }
} }
...@@ -297,10 +310,14 @@ extension YHMatchUserViewController { ...@@ -297,10 +310,14 @@ extension YHMatchUserViewController {
let vc = YHMatchResultListViewController() let vc = YHMatchResultListViewController()
vc.delegate = self vc.delegate = self
vc.matchUsersArr = self.viewModel.matchUserArr vc.matchUsersArr = self.viewModel.matchUserArr
self.navigationController?.pushViewController(vc, completion: { self.resetAnimation()
self.resetAnimation() if let curVc = UIViewController.current as? YHCommunityViewController,curVc.segmentedView.selectedIndex == 0 {
}) curVc.navigationController?.pushViewController(vc, completion: {
})
} else {
printLog("hhhhhhhhhhhhhhhhhhhhhhhh")
}
} else { } else {
var msg = "匹配失败" var msg = "匹配失败"
if let errorMsg = error?.errorMsg, !errorMsg.isEmpty { if let errorMsg = error?.errorMsg, !errorMsg.isEmpty {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment