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
109f1693
Commit
109f1693
authored
Dec 08, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复头像显示
parent
b1296b4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
AddressBookItem.vue
src/views/withMenu/AddressBook/AddressBookItem.vue
+3
-6
AddressBookList.vue
src/views/withMenu/AddressBook/AddressBookList.vue
+6
-1
No files found.
src/views/withMenu/AddressBook/AddressBookItem.vue
View file @
109f1693
<
template
>
<div
class=
"flex chatlistitem relative -mr-1 py-2 border-b"
@
click=
"$emit('chat')"
>
<div
class=
"flex relative -mr-1 py-2 border-b h-16"
@
click=
"$emit('chat')"
>
<div
class=
"self-center mr-4 flex-shrink-0"
>
<img
v-if=
"!is
Staff
"
v-if=
"!is
User
"
class=
"w-10 h-10 rounded-md object-cover"
src=
"@/assets/icons/avatar.png"
alt=
"avatar"
...
...
@@ -26,6 +23,6 @@
defineEmits
([
"chat"
]);
defineProps
({
displayName
:
String
,
is
Staff
:
Boolean
,
is
User
:
Boolean
,
});
</
script
>
src/views/withMenu/AddressBook/AddressBookList.vue
View file @
109f1693
...
...
@@ -3,6 +3,7 @@
<AddressBookItem
v-for=
"target in list"
:display-name=
"target.displayName"
:is-user=
"isUser"
@
chat=
"
$router.push(
{
name: 'Chat',
...
...
@@ -22,7 +23,7 @@ import { staffGetUsers } from "@/service/StaffService";
import
UserService
from
"@/service/UserService"
;
import
{
eRole
}
from
"@/types/roleType"
;
import
{
getUserMsg
}
from
"@/utils/userMsg"
;
import
{
reactive
,
ref
}
from
"@vue/reactivity"
;
import
{
computed
,
reactive
,
ref
}
from
"@vue/reactivity"
;
import
{
List
}
from
"vant"
;
import
{
iContactPerson
}
from
"@/types/chat/index"
;
import
{
getDisplayNamesFromAddress
}
from
"@/utils/displayName"
;
...
...
@@ -39,6 +40,10 @@ const state = reactive({
isEmpty
:
false
,
});
const
isUser
=
computed
(()
=>
{
return
getUserMsg
()?.
role2
===
eRole
.
user
;
});
async
function
staffLoadCustoms
()
{
const
ret
=
await
staffGetUsers
({
is_desc
:
true
,
...
...
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