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
a7d7cfe5
Commit
a7d7cfe5
authored
Sep 06, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
5169e7db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
17 deletions
+28
-17
index.vue
src/components/NavBar/index.vue
+9
-12
Chat.vue
src/views/Chat/Chat.vue
+1
-1
index.vue
src/views/withMenu/ChatList/index.vue
+18
-4
No files found.
src/components/NavBar/index.vue
View file @
a7d7cfe5
<
template
>
<div
class=
"navbar w-full"
style=
"z-index: 300"
>
<div
class=
"
h-full
theBar
flex
items-center
px-5
justify-center
relative
bg-white
"
class=
"h-full theBar flex items-center px-5 justify-center relative bg-white"
v-bind=
"$attrs"
>
<div
class=
"relative w-full flex items-center justify-center"
>
...
...
@@ -37,7 +28,7 @@
@
click=
"$router.push('Search')"
:color=
"iconColor"
/>
<div>
{{
title
}}
</div>
<div
class=
"title"
>
{{
title
}}
</div>
</div>
</div>
<div
class=
"some-block"
v-if=
"occupyPosition"
></div>
...
...
@@ -69,7 +60,7 @@ export default defineComponent({
type
:
Boolean
,
default
:
false
,
},
showSearchIcon
:{
showSearchIcon
:
{
type
:
Boolean
,
default
:
false
,
}
...
...
@@ -89,5 +80,10 @@ export default defineComponent({
.some-block {
height: 46px;
}
.title {
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
}
}
</
style
>
\ No newline at end of file
src/views/Chat/Chat.vue
View file @
a7d7cfe5
<
template
>
<div
class=
"flex flex-col flex-nowrap
text-base
bg-gray-50 h-screen"
>
<div
class=
"flex flex-col flex-nowrap bg-gray-50 h-screen"
>
<NavBar
title=
"我的客服"
/>
<div
v-if=
"!connectionState.connection"
...
...
src/views/withMenu/ChatList/index.vue
View file @
a7d7cfe5
<
template
>
<Navbar
title=
"我的客户"
:showBackIcon=
"false"
style=
"background-color: #F7F7FA !important;"
/>
<Navbar
:title=
"navBarTitle"
:showBackIcon=
"false"
style=
"background-color: #F7F7FA !important;"
/>
<div
class=
"mx-5"
>
<ChatListItem
v-for=
"item in cardList"
...
...
@@ -13,13 +17,13 @@
<
script
lang=
"ts"
setup
>
import
Navbar
from
"@/components/NavBar/index.vue"
import
ChatListItem
from
"@/components/ChatList/ChatListItem.vue"
import
{
onMounted
,
ref
,
watch
}
from
"@vue/runtime-core"
;
import
{
computed
,
onMounted
,
ref
,
watch
}
from
"@vue/runtime-core"
;
import
{
from
}
from
"@/store/appCallerStore"
;
import
ChatListCardDB
from
"@/db/ChatListCardDB"
;
import
{
iChatListCard
}
from
"@/db"
;
import
{
chatCardTimeStamp
}
from
"@/store/chatCardStore"
;
i
nterface
iChatListItem
{
idOfthePersonWhoChat
:
string
,
content
:
string
,
unreadNum
:
number
,
latestTime
:
number
}
import
{
getUserMsg
}
from
"@/utils/userMsg"
;
i
mport
{
eRole
}
from
"@/types/roleType"
;
const
cardList
=
ref
<
iChatListCard
[]
>
([]);
...
...
@@ -34,4 +38,13 @@ watch(chatCardTimeStamp, async () => {
cardList
.
value
=
list
;
})
const
navBarTitle
=
computed
(()
=>
{
if
(
getUserMsg
()?.
role
===
eRole
.
user
)
{
return
"我的客户经理"
}
else
if
(
getUserMsg
()?.
role
===
eRole
.
serviceManager
)
{
return
"我的客户"
}
})
</
script
>
\ No newline at end of file
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