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
22af9f93
Commit
22af9f93
authored
Jul 11, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 重新匹配
parent
617e2179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
YHMatchResultListViewController.swift
...les/Community(社区)/C/YHMatchResultListViewController.swift
+2
-2
YHMatchUserViewController.swift
...s/Modules/Community(社区)/C/YHMatchUserViewController.swift
+15
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchResultListViewController.swift
View file @
22af9f93
...
@@ -10,7 +10,7 @@ import UIKit
...
@@ -10,7 +10,7 @@ import UIKit
import
DragCardContainer
import
DragCardContainer
protocol
YHMatchProtocol
:
NSObjectProtocol
{
protocol
YHMatchProtocol
:
NSObjectProtocol
{
func
didMatchBtnClicked
()
func
rematchUsers
()
}
}
class
YHMatchResultListViewController
:
YHBaseViewController
{
class
YHMatchResultListViewController
:
YHBaseViewController
{
...
@@ -199,7 +199,7 @@ class YHMatchResultListViewController: YHBaseViewController {
...
@@ -199,7 +199,7 @@ class YHMatchResultListViewController: YHBaseViewController {
@objc
func
didRematchBtnClicked
()
{
@objc
func
didRematchBtnClicked
()
{
self
.
delegate
?
.
didMatchBtnClicked
()
self
.
delegate
?
.
rematchUsers
()
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchUserViewController.swift
View file @
22af9f93
...
@@ -357,5 +357,20 @@ extension YHMatchUserViewController {
...
@@ -357,5 +357,20 @@ extension YHMatchUserViewController {
}
}
}
}
func
rematchUsers
()
{
if
YHLoginManager
.
shared
.
isLogin
()
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
informationAuthorizeViewModel
.
requestUserInfo
{[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
requestUserAuthorization
{[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
self
.
didMatchBtnClicked
()
}
}
}
}
}
}
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