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
0894faf2
authored
Dec 02, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add text
parent
a8f11618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
components/message-item/audio-message.vue
components/message-item/audio-message.vue
View file @
0894faf2
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
v-else-if=
"fileFailed2Load"
v-else-if=
"fileFailed2Load"
title=
"[语音加载失败]"
title=
"[语音加载失败]"
></i>
></i>
<text-message
v-model=
"value"
v-if=
"backend"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -27,12 +29,16 @@
...
@@ -27,12 +29,16 @@
import
{
Component
,
Ref
}
from
"vue-property-decorator"
;
import
{
Component
,
Ref
}
from
"vue-property-decorator"
;
import
BaseMessage
from
"./index"
;
import
BaseMessage
from
"./index"
;
import
VoiceIcon
from
"./voice.vue"
;
import
VoiceIcon
from
"./voice.vue"
;
import
TextMessage
from
"./text-message.vue"
;
import
Chat
from
"@/customer-service/xim"
;
@
Component
({
components
:
{
VoiceIcon
}
})
@
Component
({
components
:
{
VoiceIcon
,
TextMessage
}
})
export
default
class
Index
extends
BaseMessage
{
export
default
class
Index
extends
BaseMessage
{
@
Ref
(
"audio"
)
@
Ref
(
"audio"
)
private
readonly
audioRef
!
:
HTMLAudioElement
;
private
readonly
audioRef
!
:
HTMLAudioElement
;
private
readonly
backend
=
Chat
.
isBackend
();
private
playing
=
false
;
private
playing
=
false
;
private
get
duration
()
{
private
get
duration
()
{
...
@@ -95,6 +101,13 @@
...
@@ -95,6 +101,13 @@
font-size
:
16px
;
font-size
:
16px
;
}
}
}
}
.inline-text
{
position
:
absolute
;
bottom
:
0
;
left
:
40px
;
}
.my-message
{
.my-message
{
.voice-message
{
.voice-message
{
>
div
{
>
div
{
...
...
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