Skip to content

Commit ce3380f

Browse files
author
puhui999
committed
【功能完善】商城客服: 消息样式调整
1 parent 40d7f57 commit ce3380f

File tree

3 files changed

+21
-47
lines changed

3 files changed

+21
-47
lines changed

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<el-aside class="kefu-conversation-aside p-10px h-100%" width="260px">
2+
<el-aside class="kefu p-5px h-100%" width="260px">
33
<div class="color-[#999] font-bold my-10px">会话记录({{ conversationList.length }})</div>
44
<div
55
v-for="item in conversationList"
@@ -180,14 +180,13 @@ watch(showRightMenu, (val) => {
180180
</script>
181181

182182
<style lang="scss" scoped>
183-
.kefu-conversation-aside {
183+
.kefu {
184184
background-color: #fff;
185185
186186
&-conversation {
187187
height: 60px;
188-
padding: 10px;
189188
//background-color: #fff;
190-
transition: border-left 0.05s ease-in-out; /* 设置过渡效果 */
189+
//transition: border-left 0.05s ease-in-out; /* 设置过渡效果 */
191190
192191
.username {
193192
min-width: 0;
@@ -208,14 +207,10 @@ watch(showRightMenu, (val) => {
208207
}
209208
}
210209
211-
.active {
212-
//border-left: 5px #96afea solid;
213-
background-color: rgba(128, 128, 128, 0.5); // 透明色,暗黑模式下也能体现
214-
border-radius: 8px;
215-
}
216-
210+
.active,
217211
.pinned {
218212
background-color: rgba(128, 128, 128, 0.5); // 透明色,暗黑模式下也能体现
213+
border-radius: 8px;
219214
}
220215
221216
.right-menu-ul {

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

Lines changed: 14 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -408,59 +408,38 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
408408
justify-content: flex-start;
409409
410410
.kefu-message {
411-
margin-left: 20px;
412-
position: relative;
413-
414-
&::before {
415-
content: '';
416-
width: 10px;
417-
height: 10px;
418-
left: -19px;
419-
top: calc(50% - 10px);
420-
position: absolute;
421-
border-left: 5px solid transparent;
422-
border-bottom: 5px solid transparent;
423-
border-top: 5px solid transparent;
424-
border-right: 5px solid var(--app-content-bg-color);
425-
}
411+
background-color: rgb(245, 245, 245);
412+
margin-left: 10px;
413+
margin-top: 18px;
414+
border-top-right-radius: 10px;
415+
border-bottom-right-radius: 10px;
416+
border-bottom-left-radius: 10px;
426417
}
427418
}
428419
429420
.ss-row-right {
430421
justify-content: flex-end;
431422
432423
.kefu-message {
433-
margin-right: 20px;
434-
position: relative;
435-
436-
&::after {
437-
content: '';
438-
width: 10px;
439-
height: 10px;
440-
right: -19px;
441-
top: calc(50% - 10px);
442-
position: absolute;
443-
border-left: 5px solid var(--app-content-bg-color);
444-
border-bottom: 5px solid transparent;
445-
border-top: 5px solid transparent;
446-
border-right: 5px solid transparent;
447-
}
424+
background-color: rgb(206, 223, 255);
425+
margin-right: 10px;
426+
margin-top: 18px;
427+
border-top-left-radius: 10px;
428+
border-bottom-right-radius: 10px;
429+
border-bottom-left-radius: 10px;
448430
}
449431
}
450432
451433
// 消息气泡
452434
.kefu-message {
453-
color: #a9a9a9;
454-
border-radius: 5px;
455-
box-shadow: 3px 3px 5px rgba(220, 220, 220, 0.1);
435+
color: #414141;
436+
font-weight: 500;
456437
padding: 5px 10px;
457438
width: auto;
458439
max-width: 50%;
459440
text-align: left;
460441
display: inline-block !important;
461-
position: relative;
462442
word-break: break-all;
463-
background-color: var(--app-content-bg-color);
464443
transition: all 0.2s;
465444
466445
&:hover {

src/views/mall/promotion/kefu/components/member/MemberInfo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const handleScroll = debounce(() => {
142142
left: 0;
143143
right: 0;
144144
bottom: 0; /* 覆盖整个元素 */
145-
border-bottom: 2px solid black; /* 边框样式 */
145+
border-bottom: 2px solid rgba(128, 128, 128, 0.5); /* 边框样式 */
146146
pointer-events: none; /* 确保点击事件不会被伪元素拦截 */
147147
}
148148
@@ -153,7 +153,7 @@ const handleScroll = debounce(() => {
153153
left: 0;
154154
right: 0;
155155
bottom: 0; /* 覆盖整个元素 */
156-
border-bottom: 2px solid black; /* 边框样式 */
156+
border-bottom: 2px solid rgba(128, 128, 128, 0.5); /* 边框样式 */
157157
pointer-events: none; /* 确保点击事件不会被伪元素拦截 */
158158
}
159159
}

0 commit comments

Comments
 (0)