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
47bedda9
Commit
47bedda9
authored
Apr 19, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的页面
parent
cad4fc55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+16
-1
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
47bedda9
...
@@ -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
()
{
if
YHLoginManager
.
shared
.
isLogin
()
{
if
YHLoginManager
.
shared
.
isLogin
()
{
self
.
likeViewModel
.
getLikeCollectionRecentScanCountInfo
{
self
.
likeViewModel
.
getLikeCollectionRecentScanCountInfo
{
...
@@ -196,9 +201,19 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -196,9 +201,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