Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9faad642
authored
Sep 07, 2024
by
Lcp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能修复】商城:发送商品显示不全问题和打包后客服聊天表情缺失问题
parent
beaf533a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/views/mall/promotion/kefu/components/KeFuMessageList.vue
+1
-1
src/views/mall/promotion/kefu/components/tools/emoji.ts
+3
-2
No files found.
src/views/mall/promotion/kefu/components/KeFuMessageList.vue
View file @
9faad642
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<OrderItem
<OrderItem
v-if=
"KeFuMessageContentTypeEnum.ORDER === item.contentType"
v-if=
"KeFuMessageContentTypeEnum.ORDER === item.contentType"
:message=
"item"
:message=
"item"
class=
"max-w-
7
0%"
class=
"max-w-
10
0%"
/>
/>
</MessageItem>
</MessageItem>
</div>
</div>
...
...
src/views/mall/promotion/kefu/components/tools/emoji.ts
View file @
9faad642
...
@@ -66,7 +66,7 @@ export const useEmoji = () => {
...
@@ -66,7 +66,7 @@ export const useEmoji = () => {
)
)
for
(
const
path
in
pathList
)
{
for
(
const
path
in
pathList
)
{
const
imageModule
:
any
=
await
pathList
[
path
]()
const
imageModule
:
any
=
await
pathList
[
path
]()
emojiPathList
.
value
.
push
(
imageModule
.
default
)
emojiPathList
.
value
.
push
(
{
path
:
path
,
src
:
imageModule
.
default
}
)
}
}
}
}
...
@@ -116,7 +116,8 @@ export const useEmoji = () => {
...
@@ -116,7 +116,8 @@ export const useEmoji = () => {
function
getEmojiFileByName
(
name
:
string
)
{
function
getEmojiFileByName
(
name
:
string
)
{
for
(
const
emoji
of
emojiList
)
{
for
(
const
emoji
of
emojiList
)
{
if
(
emoji
.
name
===
name
)
{
if
(
emoji
.
name
===
name
)
{
return
emojiPathList
.
value
.
find
((
item
:
string
)
=>
item
.
indexOf
(
emoji
.
file
)
>
-
1
)
const
emojiPath
=
emojiPathList
.
value
.
find
((
item
:
{
path
:
string
,
src
:
string
})
=>
item
.
path
.
indexOf
(
emoji
.
file
)
>
-
1
)
return
emojiPath
?
emojiPath
.
src
:
undefined
}
}
}
}
return
false
return
false
...
...
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