会话存档

This commit is contained in:
liuye
2023-04-26 16:57:26 +08:00
parent b5b530d1d7
commit 16418ba1f5

View File

@@ -67,12 +67,12 @@
<div class="item item-right" v-else> <div class="item item-right" v-else>
<p class="time">2023-04-26 16:11:43</p> <p class="time">2023-04-26 16:11:43</p>
<div class="item-content-flex"> <div class="item-content-flex">
<img src="https://img1.baidu.com/it/u=413643897,2296924942&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500" alt="" class="user-img"> <i class="el-icon-warning"></i>
<div class="content"> <div class="content">
<span></span> <span></span>
<p>{{item.content}}</p> <p>{{item.content}}</p>
</div> </div>
<i class="el-icon-warning"></i> <img src="https://img1.baidu.com/it/u=413643897,2296924942&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500" alt="" class="user-img">
</div> </div>
</div> </div>
</div> </div>
@@ -118,11 +118,11 @@
}, },
current: 1, current: 1,
list: [ list: [
{type: 0, content: '123全部全部全部全部全部全部全部全部全部全部全部全部'}, {type: 0, content: '123全部全部全部全部全部全部全部全部全部全部全部全部右右右右123全部全部全部全部全部全部全部全部全部全部全部全部右右右右123全部全部全部全部全部全部全部全部全部全部全部全部右右右右123全部全部全部全部全部全部全部全部全部全部全部全部右右右右123全部全部全部全部全部全部全部全部全部全部全部全部右右右右123全部全部全部全部全部全部全部全部全部全部全部全部右右右右'},
{type: 1, content: '123'}, {type: 1, content: '123左左左左左左123左左左左左左123左左左左左左123左左左左左左123左左左左左左123左左左左左左123左左左左左左123左左左左左左123左左左左左左123左左左左左左'},
{type: 0, content: '456'}, {type: 0, content: '456右右右右'},
{type: 0, content: '123'}, {type: 0, content: '123右右右右'},
{type: 1, content: '123'}, {type: 1, content: '123左左左左'},
] ]
} }
}, },
@@ -328,65 +328,83 @@
color: #999; color: #999;
font-size: 14px; font-size: 14px;
line-height: 44px; line-height: 44px;
text-align: center;
} }
.item-content-flex { .item-content-flex {
display: flex; display: flex;
.user-img { .user-img {
width: 44px; width: 44px;
height: 44px; height: 44px;
border-radius: 50%;
margin-right: 8px; margin-right: 8px;
} }
.content { .content {
max-width: calc(100% - 144px); max-width: calc(100% - 144px);
position: relative; position: relative;
background-color: #f3f6f9;
span { span {
width: 0px; width: 0px;
height: 0px; height: 0px;
border: 10px solid transparent; border: 10px solid transparent;
position: absolute; position: absolute;
top: 20px; top: 50%;
margin-top: -10px;
} }
p { p {
display: inline-block; display: inline-block;
padding: 14px 54px 14px 32px; padding: 8px;
background-color: #fff; line-height: 28px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 32px; font-size: 16px;
color: #333; color: #333;
word-break: break-all; word-break: break-all;
} }
} }
.fail-icon { .el-icon-warning {
width: 32px; font-size: 32px;
height: 32px; color: #f46;
margin: auto 0 auto 24px; margin-top: 8px;
} }
} }
} }
.item-left { .item-left {
.content { .item-content-flex {
span { .user-img {
left: -18px; margin: 0 20px 0 0;
border-right-color: #fff; }
.content {
span {
left: -18px;
border-right-color: #f3f6f9;
}
}
.el-icon-warning {
margin-left: 16px;
} }
} }
} }
.item-right { .item-right {
width: 100%; width: 100%;
justify-content: right; justify-content: right;
.user-img { .item-content-flex {
margin: 0 0 0 20px; justify-content: end;
} .user-img {
.content { margin: 0 0 0 20px;
span {
border-left-color: #C7E7FE;
right: -18px;
} }
p { .content {
background-color: #C7E7FE; background-color: #90e287;
padding: 14px 32px 14px 54px; span {
border-left-color:#90e287;
right: -18px;
}
}
.el-icon-warning {
margin-right: 16px;
} }
} }
} }
} }
} }