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
b163c6ab
authored
Nov 05, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
style
parent
d07cf879
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
components/controller/index.ts
components/message-item/audio-message.vue
components/controller/index.ts
View file @
b163c6ab
...
...
@@ -10,6 +10,12 @@ export function parserMessage(type: string, rawMsg: string) {
if
(
type
===
MessageType
.
Image
)
{
return
`[图片]`
;
}
if
(
type
===
MessageType
.
Video
)
{
return
`[视频]`
;
}
if
(
type
===
MessageType
.
Voice
)
{
return
`[语音]`
;
}
if
(
type
===
MessageType
.
File
)
{
return
`[文件]`
;
}
...
...
components/message-item/audio-message.vue
View file @
b163c6ab
...
...
@@ -2,7 +2,6 @@
<div
class=
"msg-detail voice-message d-flex align-items-center"
:class=
"
{ playing: playing, 'can-play': messageRealUrl }"
v-if="messageType === 'voice'"
@click.stop="play"
:style="{ width: getVoiceMessageWidth + 'px' }"
>
...
...
@@ -98,14 +97,14 @@
}
}
.my-message
{
.voice-message
{
>
div
{
flex-flow
:
row-reverse
;
}
svg
{
transform
:
rotateY
(
180deg
);
}
.voice-message
{
>
div
{
flex-flow
:
row-reverse
;
}
svg
{
transform
:
rotateY
(
180deg
);
}
}
}
</
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