Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
3c7b83f2
Commit
3c7b83f2
authored
Nov 01, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加客服功能
parent
1a744a79
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
150 additions
and
0 deletions
+150
-0
src/router/index.js
src/router/index.js
+33
-0
src/views/customerService/chatDetail.vue
src/views/customerService/chatDetail.vue
+101
-0
src/views/customerService/chatList.vue
src/views/customerService/chatList.vue
+16
-0
No files found.
src/router/index.js
View file @
3c7b83f2
...
...
@@ -367,6 +367,39 @@ export const asyncRouterMap = [
}
]
},
{
path
:
'
/service
'
,
component
:
Layout
,
redirect
:
'
noredirect
'
,
alwaysShow
:
true
,
name
:
'
customerService
'
,
meta
:
{
title
:
'
在线客服
'
,
icon
:
'
people
'
},
children
:
[
{
path
:
'
detail
'
,
component
:
()
=>
import
(
'
@/views/customerService/chatDetail
'
),
name
:
'
chatDetail
'
,
meta
:
{
title
:
'
当前会话
'
,
icon
:
'
user
'
,
noCache
:
true
}
},
{
path
:
'
list
'
,
component
:
()
=>
import
(
'
@/views/customerService/chatList
'
),
name
:
'
chatList
'
,
meta
:
{
title
:
'
会话记录
'
,
icon
:
'
form
'
,
noCache
:
true
}
}
]
},
{
path
:
'
/profile
'
,
component
:
Layout
,
...
...
src/views/customerService/chatDetail.vue
0 → 100644
View file @
3c7b83f2
<
template
>
<div
class=
"page-chatDetail flex"
>
<!--
<el-menu
:default-active=
"activeIndex"
class=
"chat-list"
mode=
"horizontal"
@
select=
"handleSelect"
>
<el-menu-item
v-for=
"item in chatList"
:key=
"item.userId"
:index=
"item.userId"
>
<span
slot=
"title"
>
{{
item
.
title
}}
</span>
</el-menu-item>
</el-menu>
-->
<el-container
style=
"width: 100%;height: 100%; border: 1px solid #eee"
>
<el-aside
style=
"background-color: white;padding: 10px"
>
<el-tabs
:tab-position=
"top"
style=
"height: 100%;width: 100%;"
@
tab-click=
"handleClick"
>
<el-tab-pane
v-for=
"item in chatList"
:key=
"item.userId"
:label=
"item.title"
>
{{
item
.
title
}}
</el-tab-pane>
</el-tabs>
</el-aside>
<el-main
style=
"background-color: rgb(238, 241, 246); padding: 0; border: 1px solid #eee"
>
<div
class=
"chat-message"
>
<div
class=
"chat-message-top flex f-jc-sb"
>
<div
class=
"chat-message-top__title"
>
账号昵称
</div>
<el-button
type=
"text"
>
人工介入
</el-button>
</div>
</div>
</el-main>
<el-aside
style=
"width: 20%;background-color: white;padding: 10px"
>
<div>
有边框
</div>
</el-aside>
</el-container>
</div>
</
template
>
<
script
>
export
default
{
name
:
'
ChatDetail
'
,
data
()
{
return
{
activeIndex
:
'
1233
'
,
chatList
:
[
{
title
:
'
老猫
'
,
userId
:
'
1233
'
},
{
title
:
'
葛若
'
,
userId
:
'
1323
'
},
{
title
:
'
斑胡
'
,
userId
:
'
1133
'
},
{
title
:
'
测试1
'
,
userId
:
'
1143
'
},
{
title
:
'
测试2
'
,
userId
:
'
1633
'
},
{
title
:
'
测试3
'
,
userId
:
'
1933
'
}
]
}
},
methods
:
{
handleSelect
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
)
},
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
/deep/ .main {
padding: 0;
}
.page-chatDetail {
height: calc(100vh - 84px);
.chat-list {
width: 30%;
}
.chat-message {
display: flex;
flex-direction: column;
.chat-message-top {
background: white;
padding: 8px;
}
}
}
</
style
>
src/views/customerService/chatList.vue
0 → 100644
View file @
3c7b83f2
<
template
>
<div>
会话记录
</div>
</
template
>
<
script
>
export
default
{
name
:
'
ChatList
'
}
</
script
>
<
style
scoped
>
</
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