Skip to content

Commit ef56489

Browse files
committed
【功能修复】商城:发送商品显示不全问题和打包后客服聊天表情缺失问题
1 parent d12c4dc commit ef56489

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/views/mall/promotion/kefu/components/KeFuMessageList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
423423
424424
// 消息气泡
425425
.kefu-message {
426-
color: #A9A9A9;
426+
color: #a9a9a9;
427427
border-radius: 5px;
428-
box-shadow: 3px 3px 5px rgba(220,220,220, 0.1);
428+
box-shadow: 3px 3px 5px rgba(220, 220, 220, 0.1);
429429
padding: 5px 10px;
430430
width: auto;
431431
max-width: 50%;

src/views/mall/promotion/kefu/components/tools/emoji.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const useEmoji = () => {
6666
)
6767
for (const path in pathList) {
6868
const imageModule: any = await pathList[path]()
69-
emojiPathList.value.push({path: path, src: imageModule.default})
69+
emojiPathList.value.push({ path: path, src: imageModule.default })
7070
}
7171
}
7272

@@ -116,8 +116,10 @@ export const useEmoji = () => {
116116
function getEmojiFileByName(name: string) {
117117
for (const emoji of emojiList) {
118118
if (emoji.name === name) {
119-
const emojiPath = emojiPathList.value.find((item: {path:string,src:string}) => item.path.indexOf(emoji.file) > -1)
120-
return emojiPath?emojiPath.src:undefined
119+
const emojiPath = emojiPathList.value.find(
120+
(item: { path: string; src: string }) => item.path.indexOf(emoji.file) > -1
121+
)
122+
return emojiPath ? emojiPath.src : undefined
121123
}
122124
}
123125
return false

0 commit comments

Comments
 (0)