提交 9c470b18 编写于 作者: huangwensu's avatar huangwensu

样式修改

上级 83334354
...@@ -503,40 +503,40 @@ export default { ...@@ -503,40 +503,40 @@ export default {
} }
} }
if (msg.type.toLowerCase() == "custom") { if (msg.type.toLowerCase() == "custom") {
content = JSON.parse(msg.content); content = JSON.parse(msg.content)
text = content.content; text = content.content
if (content.bizType == -1) { // 系统消息:消息由于违规未发送成功(可以不处理) if (content.bizType == -1) { // 系统消息:消息由于违规未发送成功(可以不处理)
showType = -1; showType = -1
text = content.content; text = content.content
} else if (content.bizType == 18) { // PDF } else if (content.bizType == 18) { // PDF
showType = 3; showType = 3
text = content.name; text = content.name
size = content.size; size = content.size
url = content.url; url = content.url
} else if (content.bizType == 19) { // 链接 } else if (content.bizType == 19) { // 链接
showType = 4; showType = 4
text = content.content; text = content.content
suffix = content.suffix; suffix = content.suffix
} else if(content.bizType == 22){ // 病例 } else if(content.bizType == 22){ // 病例
showType = 7; showType = 7
title = content.title; title = content.title
text = JSON.parse(content.content); text = JSON.parse(content.content)
} else if(content.bizType == 23) { // 预约时间 } else if(content.bizType == 23) { // 预约时间
showType = 8; showType = 8
title = content.title; title = content.title
text = JSON.parse(content.content); text = JSON.parse(content.content)
} else if(content.bizType == 24){ // 音视频与IM交互 } else if(content.bizType == 24){ // 音视频与IM交互
showType = 9; showType = 9
text = content.content; text = content.content
} else if(content.bizType == 25){ // 本次问诊结束 } else if(content.bizType == 25){ // 本次问诊结束
showType = 10; showType = 10
text = content.content; text = content.content
} else if(content.bizType == 26){ // 医生建议 } else if(content.bizType == 26){ // 医生建议
showType = 11; showType = 11
title = content.title; title = content.title
text = content.content; text = content.content
}else { }else {
showType = 5; showType = 5
} }
} else if( msg.type.toLowerCase() == "image" || msg.type.toLowerCase() == "picture") { // 图片 } else if( msg.type.toLowerCase() == "image" || msg.type.toLowerCase() == "picture") { // 图片
content = JSON.parse(msg.content); content = JSON.parse(msg.content);
...@@ -545,21 +545,21 @@ export default { ...@@ -545,21 +545,21 @@ export default {
showType = 2; showType = 2;
this.imgSizeHandleNew(msg, content.w, content.h); this.imgSizeHandleNew(msg, content.w, content.h);
}else if(msg.type.toLowerCase() == "audio") { // 语音 }else if(msg.type.toLowerCase() == "audio") { // 语音
content = JSON.parse(msg.content); content = JSON.parse(msg.content)
url = content.url; url = content.url
showType = 6 showType = 6
} else { } else {
showType = 1; // 文本 showType = 1 // 文本
text = msg.content; text = msg.content
} }
msg.title = title; msg.title = title
msg.text = text; msg.text = text
msg.showType = showType; msg.showType = showType
msg.suffix = suffix; msg.suffix = suffix
msg.size = size; msg.size = size
msg.url = url; msg.url = url
msg.sessionFlag = false; msg.sessionFlag = false
cMessageList.push(msg); cMessageList.push(msg)
}); });
if (directFlag === 1) { if (directFlag === 1) {
......
...@@ -3,119 +3,11 @@ ...@@ -3,119 +3,11 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
// min-width: 1200px; // min-width: 1200px;
background: none !important; background: none !important;
font-size: 14px; font-size: 14px;
.left {
display: none;
width: 270px;
// padding: 0 25px 15px;
border-right: 2px solid #f5f5f5;
.l-header {
display: flex;
flex-direction: row;
height: 52px;
justify-content: space-between;
align-items: center;
padding: 0 12px 0 25px;
p {
display: flex;
flex-direction: row;
align-items: center;
color: #0d9078;
cursor: pointer;
img {
width: 16px;
height: 16px;
margin-right: 4px;
}
span {
font-size: 14px;
color: #0d9078;
}
}
// & > span:first-child {
// font-size: 14px;
// }
// & > span:last-child {
// color: #0d9078;
// cursor: pointer;
// }
}
.c-num {
padding: 0 25px;
height: 40px;
line-height: 40px;
font-size: 12px;
background: #fffbe6;
}
.session-list {
width: 100%;
height: 100%;
overflow: scroll;
& > .item {
width: 100%;
display: flex;
height: 72px;
flex-direction: row;
align-items: center;
padding: 0 12px 0 25px;
cursor: pointer;
.img-wrapper {
// position: relative;
// top: 0;
// left: 0;
width: 24px;
height: 24px;
margin-right: 10px;
img {
width: 100%;
height: 100%;
border-radius: 20px;
}
}
& > .desc {
flex: 1;
.top {
display: flex;
flex-direction: row;
justify-content: space-between;
.name {
}
}
.bottom {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: #999999;
.num {
display: inline-block;
min-width: 16px;
padding: 2px 4px;
border-radius: 8px;
text-align: center;
color: #ffffff;
background: #ff4d4f;
}
& > img {
display: block;
width: 15px;
height: 15px;
padding: 2px 0 2px 4px;
}
}
}
&.current {
background: #f8f9fa;
}
}
}
}
.center { .center {
margin-left: 240px; margin-left: 10%;
margin-right: 240px; margin-right: 10%;
flex: 1; flex: 1;
background: #fff; background: #fff;
.c-header { .c-header {
...@@ -504,12 +396,6 @@ ...@@ -504,12 +396,6 @@
} }
} }
} }
.right {
display: none;
width: 240px;
border-left: 2px solid #f5f5f5;
overflow: scroll;
}
background: #fff; background: #fff;
.time { .time {
color: #999999; color: #999999;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册