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
a3888a78
Commit
a3888a78
authored
Sep 10, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的界面 未读红点显示逻辑
parent
e38529d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+5
-2
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
a3888a78
...
@@ -237,10 +237,13 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -237,10 +237,13 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
let
count
=
self
.
msgViewModel
.
unreadTotalCount
var
unreadCount
=
self
.
msgViewModel
.
unreadTotalCount
if
YHButlerServiceManager
.
shared
.
isUatAllowed
()
{
unreadCount
=
self
.
msgViewModel
.
unreadTotalCount
+
YHButlerServiceManager
.
shared
.
unreadCount
}
for
item
in
self
.
items
{
for
item
in
self
.
items
{
if
item
.
type
==
.
myMessage
{
if
item
.
type
==
.
myMessage
{
item
.
isShowRedPoint
=
c
ount
>
0
item
.
isShowRedPoint
=
unreadC
ount
>
0
break
break
}
}
}
}
...
...
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