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
1ca4aa0a
Commit
1ca4aa0a
authored
Apr 19, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
6dc9ad73
' into xiezhaolin
parents
0d5a9353
6dc9ad73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+17
-2
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
1ca4aa0a
...
@@ -165,9 +165,14 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -165,9 +165,14 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearUnreadBadge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
}
}
deinit
{
NotificationCenter
.
default
.
removeObserver
(
self
)
}
func
requestLikeCollectionCount
()
{
func
requestLikeCollectionCount
()
{
self
.
likeViewModel
.
getLikeCollectionRecentScanCountInfo
{
self
.
likeViewModel
.
getLikeCollectionRecentScanCountInfo
{
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
...
@@ -193,9 +198,19 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -193,9 +198,19 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
}
}
}
}
}
@objc
func
clearUnreadBadge
()
{
DispatchQueue
.
main
.
async
{
for
item
in
self
.
items
{
if
item
.
type
==
.
myMessage
{
item
.
isShowRedPoint
=
false
break
}
}
self
.
tableView
.
reloadData
()
}
}
}
}
}
...
...
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