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
d7d091d1
Commit
d7d091d1
authored
Apr 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 消息
parent
fb476550
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
YHMessageDetailListVC.swift
...Classes/Modules/Message(消息)/C/YHMessageDetailListVC.swift
+5
-4
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+2
-2
YHMessageSessionCell.swift
.../Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageDetailListVC.swift
View file @
d7d091d1
...
@@ -36,11 +36,12 @@ class YHMessageDetailListVC: YHBaseViewController {
...
@@ -36,11 +36,12 @@ class YHMessageDetailListVC: YHBaseViewController {
bar
.
rightBtnClick
=
{
bar
.
rightBtnClick
=
{
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
let
unreadMessages
=
self
.
msgArr
.
filter
{
!
$0
.
isRead
}
if
unreadMessages
.
count
<=
0
{
YHHUD
.
flash
(
message
:
"暂无未读消息~"
)
return
}
YHCommonAlertView
.
show
(
"清除未读"
,
"确定要清除所有未读提示吗?"
,
"取消"
,
"确认"
)
{
YHCommonAlertView
.
show
(
"清除未读"
,
"确定要清除所有未读提示吗?"
,
"取消"
,
"确认"
)
{
if
self
.
msgArr
.
count
<=
0
{
YHHUD
.
flash
(
message
:
"暂无消息~"
)
return
}
self
.
markAllMsgsRead
()
self
.
markAllMsgsRead
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
d7d091d1
...
@@ -49,8 +49,8 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -49,8 +49,8 @@ class YHMessageListVC: YHBaseViewController {
bar
.
rightBtnClick
=
{
bar
.
rightBtnClick
=
{
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
self
.
msgArr
.
c
ount
<=
0
{
if
self
.
viewModel
.
unreadTotalC
ount
<=
0
{
YHHUD
.
flash
(
message
:
"暂无消息~"
)
YHHUD
.
flash
(
message
:
"暂无
未读
消息~"
)
return
return
}
}
YHCommonAlertView
.
show
(
"清除未读"
,
"确定要清除所有未读提示吗?"
,
"取消"
,
"确认"
)
{
YHCommonAlertView
.
show
(
"清除未读"
,
"确定要清除所有未读提示吗?"
,
"取消"
,
"确认"
)
{
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/V/YHMessageSessionCell.swift
View file @
d7d091d1
...
@@ -63,7 +63,7 @@ class YHMessageSessionCell: UITableViewCell {
...
@@ -63,7 +63,7 @@ class YHMessageSessionCell: UITableViewCell {
make
.
width
.
equalTo
(
width
)
make
.
width
.
equalTo
(
width
)
}
}
self
.
detailLabel
.
text
=
model
.
lastMessage
self
.
detailLabel
.
text
=
!
model
.
lastMessage
.
isEmpty
?
model
.
lastMessage
:
"暂无消息"
.
local
self
.
timeLabel
.
text
=
formatTimestamp
(
Double
(
model
.
lastMessageTime
))
self
.
timeLabel
.
text
=
formatTimestamp
(
Double
(
model
.
lastMessageTime
))
}
}
...
...
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