Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a5b8ff29
authored
Sep 06, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
style
parent
ebbb6725
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
components/message-list.vue
components/message.vue
components/message-list.vue
View file @
a5b8ff29
This diff is collapsed.
Click to expand it.
components/message.vue
View file @
a5b8ff29
...
@@ -3,8 +3,13 @@
...
@@ -3,8 +3,13 @@
class=
"message-con d-flex align-items-center"
class=
"message-con d-flex align-items-center"
:class=
"isMyMessage ? 'my-message flex-row-reverse' : ''"
:class=
"isMyMessage ? 'my-message flex-row-reverse' : ''"
>
>
<div
class=
"msg-content"
:class=
"
{'algin-left': !isMyMessage}">
<div
class=
"msg-content"
:class=
"
{ 'algin-left': !isMyMessage }">
<div
class=
"msg-name no-selection"
:class=
"
{'algin-left': !isMyMessage}">
{{
userName
}}
</div>
<div
class=
"msg-name no-selection"
:class=
"
{ 'algin-left': !isMyMessage }"
>
{{
userName
}}
</div>
<!-- Image -->
<!-- Image -->
<div
<div
class=
"msg-detail image-message"
class=
"msg-detail image-message"
...
@@ -111,7 +116,11 @@
...
@@ -111,7 +116,11 @@
<template
v-if=
"showReadSummary"
>
<template
v-if=
"showReadSummary"
>
<div
v-if=
"isMyMessage"
class=
"msg-read pos-rel"
>
<div
v-if=
"isMyMessage"
class=
"msg-read pos-rel"
>
<span
@
click=
"readListVisibility = true"
class=
"pointer"
>
<span
@
click=
"readListVisibility = true"
class=
"pointer"
:class=
"
{ all: isAllRead }"
>
<template
v-if=
"isAllRead"
>
全部已读
</
template
>
<template
v-if=
"isAllRead"
>
全部已读
</
template
>
<
template
v-else-if=
"data.read_count > 0"
<
template
v-else-if=
"data.read_count > 0"
>
{{
data
.
read_count
}}
人已读
</
template
>
{{
data
.
read_count
}}
人已读
</
template
...
@@ -260,11 +269,14 @@ export default class Message extends Mixins(Filters) {
...
@@ -260,11 +269,14 @@ export default class Message extends Mixins(Filters) {
}
}
private
mounted
()
{
private
mounted
()
{
this
.
buildMessageUrl
()
this
.
buildMessageUrl
()
;
}
}
private
get
userName
()
{
private
get
userName
()
{
return
this
.
chatMembers
.
find
(
member
=>
member
.
eid
===
this
.
data
.
eid
)?.
name
??
""
;
return
(
this
.
chatMembers
.
find
((
member
)
=>
member
.
eid
===
this
.
data
.
eid
)
?.
name
??
""
);
}
}
private
get
avatar
()
{
private
get
avatar
()
{
...
@@ -460,6 +472,7 @@ export default class Message extends Mixins(Filters) {
...
@@ -460,6 +472,7 @@ export default class Message extends Mixins(Filters) {
margin-right
:
15px
;
margin-right
:
15px
;
user-select
:
none
;
user-select
:
none
;
flex
:
none
;
flex
:
none
;
margin-top
:
auto
;
}
}
.download-icon
{
.download-icon
{
...
@@ -605,4 +618,8 @@ i.msg-avatar {
...
@@ -605,4 +618,8 @@ i.msg-avatar {
width
:
100%
;
width
:
100%
;
}
}
}
}
.all
{
color
:
#4389f8
;
}
</
style
>
</
style
>
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