Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
7233331a
Commit
7233331a
authored
Sep 27, 2021
by
CHENQIKUAI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
聊天页面新增displayName
parent
e3e0d44c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
Chat.vue
src/views/Chat/Chat.vue
+14
-3
ChatContentMessage.vue
src/views/Chat/ChatContentMessage.vue
+1
-1
No files found.
src/views/Chat/Chat.vue
View file @
7233331a
<
template
>
<
template
>
<div
class=
"flex flex-col flex-nowrap bg-gray-50 h-screen"
>
<div
class=
"flex flex-col flex-nowrap bg-gray-50 h-screen"
>
<NavBar
title=
"我的客服
"
/>
<NavBar
:title=
"title
"
/>
<div
<div
v-if=
"!connectionState.connection"
v-if=
"!connectionState.connection"
class=
"flex flex-row justify-center items-center bg-gray-50 h-full w-full"
class=
"flex flex-row justify-center items-center bg-gray-50 h-full w-full"
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
/* eslint-disable */
/* eslint-disable */
import
NavBar
from
"@/components/NavBar/index.vue"
;
import
NavBar
from
"@/components/NavBar/index.vue"
;
import
{
defineComponent
,
onBeforeUnmount
,
onMounted
,
reactive
,
ref
,
watch
,
defineAsyncComponent
}
from
"vue"
;
import
{
defineComponent
,
onBeforeUnmount
,
onMounted
,
reactive
,
ref
,
watch
,
defineAsyncComponent
,
computed
}
from
"vue"
;
import
{
connectionState
}
from
"@/store/connectionStore"
;
import
{
connectionState
}
from
"@/store/connectionStore"
;
import
{
getFromId
}
from
"@/store/appCallerStore"
;
import
{
getFromId
}
from
"@/store/appCallerStore"
;
import
{
messageStore
}
from
"@/store/messagesStore"
;
import
{
messageStore
}
from
"@/store/messagesStore"
;
...
@@ -41,6 +41,7 @@ import { v4 as uuidv4 } from 'uuid'
...
@@ -41,6 +41,7 @@ import { v4 as uuidv4 } from 'uuid'
import
{
ChatMessageTypes
}
from
"@/types/chatMessageTypes"
;
import
{
ChatMessageTypes
}
from
"@/types/chatMessageTypes"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
queryFaqAnswer
,
queryFaqList
}
from
"@/service/FaqService"
;
import
{
queryFaqAnswer
,
queryFaqList
}
from
"@/service/FaqService"
;
import
{
getDisplayNamesFromAddress
}
from
"@/utils/displayName"
;
export
default
defineComponent
({
export
default
defineComponent
({
...
@@ -141,6 +142,15 @@ export default defineComponent({
...
@@ -141,6 +142,15 @@ export default defineComponent({
messageStore
.
messages
.
push
(...
messageList
);
messageStore
.
messages
.
push
(...
messageList
);
})
})
const
title
=
ref
(
''
)
onMounted
(
async
()
=>
{
const
list
=
await
getDisplayNamesFromAddress
([
target
])
title
.
value
=
list
[
0
];
})
return
{
return
{
connectionState
,
connectionState
,
...
@@ -153,7 +163,8 @@ export default defineComponent({
...
@@ -153,7 +163,8 @@ export default defineComponent({
useSentence
,
useSentence
,
sentenceList
,
sentenceList
,
optionList
,
optionList
,
sentensesLoading
sentensesLoading
,
title
};
};
},
},
});
});
...
...
src/views/Chat/ChatContentMessage.vue
View file @
7233331a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
:class=
"
{ 'text-right': fromMyself }"
:class=
"
{ 'text-right': fromMyself }"
style="font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #adadad;
style="font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #adadad;
"
"
>
159903
</div>
>
</div>
<div
<div
:class=
"[
{ 'flex-row-reverse': fromMyself }]"
:class=
"[
{ 'flex-row-reverse': fromMyself }]"
class="flex items-center max-w-chat-msg-bubble"
class="flex items-center max-w-chat-msg-bubble"
...
...
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