Commit be55d48a by xinla

--no commit message

1 parent 6c011b86
......@@ -88,7 +88,7 @@ export default {
</template>
<template v-else-if="message.msgType === 'revoke'">已撤回</template>
<template v-else-if="'image,emotion'.includes(message.msgType)">
<el-image style="width: 100px; height: 100px" :src="content" fit="fit" :preview-src-list="[content]"></el-image>
<el-image style="width: 100px" :src="content" fit="fit" :preview-src-list="[content]"></el-image>
</template>
<a v-else-if="'file'.includes(message.msgType)" class="msgtypefile">
<!-- :href="JSON.parse(this.message.contact).attachment"
......@@ -157,7 +157,7 @@ export default {
<div v-else-if="message.msgType === 'link'" class="msgtypecard">
<a target="_black" :href="content.link_url">
<div class="card-content fxbw">
<div style="flex: 1">
<div style="flex: 1; margin-right: 10px">
<div class="card--link-title">{{ content.title }}</div>
<div class="card--link-desc">{{ content.description }}</div>
</div>
......@@ -172,49 +172,54 @@ export default {
</template>
<style lang="scss" scoped>
.angle {
content: '';
display: inline-block;
position: absolute;
top: 8px;
width: 8px;
height: 8px;
background: #fff;
transform: rotate(45deg);
border: 1px solid #e1edfc;
z-index: 888;
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
}
.message {
max-width: 50%;
background-color: #fff;
// .angle {
// content: '';
// display: inline-block;
// position: absolute;
// top: 8px;
// width: 8px;
// height: 8px;
// background: #fff;
// transform: rotate(45deg);
// border: 1px solid #e1edfc;
// z-index: 888;
// box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
// }
.mes {
max-width: calc(100% - 24px);
position: relative;
padding: 10px;
padding: 15px;
line-height: 14px;
border-radius: 5px;
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
border: 1px solid #e1edfc;
color: #333;
border-radius: 12px;
// box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
// border: 1px solid #e1edfc;
display: inline-block;
word-break: break-all;
}
.message {
@extend .mes;
color: #333;
margin-left: 10px;
&::before {
@extend .angle;
left: -5px;
border-width: 0 0 1px 1px;
}
background-color: #fff;
border-top-left-radius: 0;
// &::before {
// @extend .angle;
// left: -5px;
// border-width: 0 0 1px 1px;
// }
}
.message-right {
@extend .message;
@extend .mes;
color: #fff;
margin-right: 10px;
&::before {
@extend .angle;
right: -5px;
border-width: 1px 1px 0 0;
}
background-color: var(--color);
border-top-right-radius: 0;
// &::before {
// @extend .angle;
// right: -5px !important;
// border-width: 1px 1px 0 0;
// }
}
.msgtypefile {
margin: 5px;
......@@ -230,7 +235,7 @@ export default {
.msgtypecard {
// width: 320px;
// height: 140px;
margin: 10px 5px;
// margin: 10px 5px;
border-radius: 8px;
-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 8px 0 rgba(0, 0, 0, 0.19);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 8px 0 rgba(0, 0, 0, 0.19);
......@@ -248,7 +253,7 @@ export default {
// text-indent: 10px;
color: #333;
.card--link-title {
font-size: 16px;
font-size: 15px;
font-weight: 500;
margin-bottom: 5px;
text-overflow: -o-ellipsis-lastline;
......@@ -262,16 +267,16 @@ export default {
-webkit-box-orient: vertical;
}
.card--link-desc {
font-size: 14px;
color: #aaa;
font-size: 13px;
color: #666;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
display: -webkit-box;
white-space: pre-wrap;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
}
......
......@@ -485,13 +485,13 @@
color: var(--font-black);
// border-radius: var(--border-radius-small);
}
.el-table__body-wrapper,
.el-table__fixed-body-wrapper {
tr {
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
height: 50px;
}
}
// .el-table__body-wrapper,
// .el-table__fixed-body-wrapper {
// tr {
// // box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
// height: 50px;
// }
// }
.el-table__body {
border-collapse: collapse;
}
......
......@@ -2,22 +2,16 @@
<div class="takecontent">
<ul>
<li v-for="(item, index) in data" :key="index">
<div class="mb15 my_header right" v-if="queryChat.fromId === item.fromId">
<span :style="{ color: item.action == 'send' ? 'var(--color)' : '#999' }">{{ item.msgTime }}</span>
<span class="ml10">{{ item.name }}</span>
<img v-if="item.avatar" class="image" style="margin-left: 10px" :src="item.avatar" />
<img v-else style="margin-left: 10px" src="../../../../assets/drainageCode/header.png" />
<div :class="['mb10', queryChat.fromId === item.fromId && 'ar']">
<span :class="['', queryChat.fromId === item.fromId && 'fr']" style="color: #4e5969">{{ item.name }}</span>
<span :style="{ color: item.action == 'send' ? '#86909C' : '#999', margin: '0 8px' }">
{{ item.msgTime }}
</span>
</div>
<div v-else class="mb15 my_header">
<img v-if="item.avatar" class="image" :src="item.avatar" />
<img v-else style="margin-right: 5px" src="../../../../assets/drainageCode/header.png" />
<span class="mr10">{{ item.name }}</span>
<span :style="{ color: item.action == 'send' ? 'var(--color)' : '#999' }">{{ item.msgTime }}</span>
</div>
<div class="right" v-if="queryChat.fromId === item.fromId">
<ChatContent :queryChat="queryChat" :message="item"></ChatContent>
</div>
<div v-else>
<div :class="['', queryChat.fromId === item.fromId && 'ar']">
<img
:class="['image', queryChat.fromId === item.fromId && 'fr']"
:src="item.avatar || require('../../../../assets/drainageCode/header.png')" />
<ChatContent :queryChat="queryChat" :message="item"></ChatContent>
</div>
</li>
......@@ -49,19 +43,13 @@ export default {
}
</script>
<style lang="scss" scoped>
.right {
display: flex;
justify-content: flex-end;
}
.my_header {
display: flex;
align-items: center;
}
.image {
width: 24px;
height: 24px;
border-radius: 50%;
margin-right: 5px;
width: 40px;
height: 40px;
vertical-align: top;
box-shadow: 0px 6px 8px 0px rgba(78, 89, 105, 0.3);
border-radius: 8px 8px 8px 8px;
border: 1px solid #ffffff;
}
.shabowbox {
position: fixed;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!