Skip to content

Commit 64e2ddf

Browse files
author
puhui999
committed
【功能完善】商城: 客服整体的每个区域的线框优化
1 parent 90c7180 commit 64e2ddf

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

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

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,19 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
374374
<style lang="scss" scoped>
375375
.kefu {
376376
background-color: #fff;
377+
position: relative;
377378
width: calc(100% - 300px - 260px);
378-
border-left: var(--el-border-color) solid 1px;
379+
380+
&::after {
381+
content: '';
382+
position: absolute;
383+
top: 0;
384+
left: 0;
385+
width: 1px; /* 实际宽度 */
386+
height: 100%;
387+
background-color: var(--el-border-color);
388+
transform: scaleX(0.3); /* 缩小宽度 */
389+
}
379390
380391
.kefu-header {
381392
background: #fbfbfb;
@@ -463,12 +474,23 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
463474
}
464475
465476
.kefu-footer {
477+
position: relative;
466478
display: flex;
467479
flex-direction: column;
468480
height: auto;
469481
margin: 0;
470482
padding: 0;
471-
border-top: var(--el-border-color) solid 1px;
483+
484+
&::before {
485+
content: '';
486+
position: absolute;
487+
top: 0;
488+
left: 0;
489+
width: 100%;
490+
height: 1px; /* 初始宽度 */
491+
background-color: var(--el-border-color);
492+
transform: scaleY(0.3); /* 缩小视觉高度 */
493+
}
472494
473495
.chat-tools {
474496
width: 100%;

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,20 @@ const getUserData = async () => {
165165

166166
<style lang="scss" scoped>
167167
.kefu {
168+
position: relative;
168169
width: 300px !important;
169170
background-color: #fff;
170-
border-left: var(--el-border-color) solid 1px;
171+
172+
&::after {
173+
content: '';
174+
position: absolute;
175+
top: 0;
176+
left: 0;
177+
width: 1px; /* 实际宽度 */
178+
height: 100%;
179+
background-color: var(--el-border-color);
180+
transform: scaleX(0.3); /* 缩小宽度 */
181+
}
171182
172183
&-header {
173184
background: #fbfbfb;

0 commit comments

Comments
 (0)