访客界面修改

master
taoshihan 2 years ago
parent 92a97d77eb
commit e8636fa975

@ -17,6 +17,10 @@
.el-menu--horizontal>.el-menu-item.is-active{
border-bottom: 3px solid #409EFF;
}
#app {
width: 100%;
height: 100%;
}
.chatBg .el-tabs__header{margin: 0;}
.faceBtn, .faceBtn:after, .faceBtn {
border: 1px solid;
@ -296,12 +300,13 @@
max-width: 800px;
margin:0 auto;
}
.chatCenter{
.chatCenter {
background: #fff;
max-width: 960px;
margin: 0 auto;
box-shadow: 2px 2px 6px rgba(0,0,0,.3);
border-top: none;
overflow: hidden;
width: 100%;
}
.chatContext{
width: 100%;
@ -316,7 +321,7 @@
/*margin-bottom: 80px;*/
}
.chatVisitorPage{
height: calc(100% - 100px);
height: calc(100% - 95px);
overflow-y: auto;
}
.chatVisitorPage .chatBox{
@ -333,10 +338,11 @@
.chatMainPage{
margin-top: 1px;
}
.chatContent{
.chatContent {
background-color: rgb(255,255,255);
color: #000;
border: 1px solid rgb(237,237,237);
min-height: 20px;
padding: 8px 15px;
word-break: break-all;
position: relative;
@ -345,39 +351,19 @@
line-height: 21px;
font-size: 14px;
}
.chatContent2 {
border-radius: 0px 8px 8px 8px;
padding: 10px 15px;
}
.chatBoxMe .chatContent2 {
border-radius: 8px 0px 8px 8px;
background-color: rgb(0, 145, 255);
color: rgb(255, 255, 255);
}
a{color: #07a9fe;text-decoration: none;}
.chatContent:before,.chatContent:after {
content: "";
display: block;
position: absolute;
width:0;
height: 0;
border: 6px solid transparent;
border-right-color: rgba(255,255,255,1);
left: -11px;
top: 10px;
z-index:1;
}
.chatContent:after {
left: -12px;
border-right-color: rgb(237,237,237);
z-index:0;
}
/*.chatContent:after {*/
/* content: '';*/
/* position: absolute;*/
/* left: -10px;*/
/* top: 13px;*/
/* width: 0;*/
/* height: 0;*/
/* border-style: dashed;*/
/* border-color: transparent;*/
/* overflow: hidden;*/
/* border-width: 10px;*/
/* border-top-style: solid;*/
/* border-top-color: rgb(255,255,255);*/
/*}*/
.chatBoxMe .chatContent{float: right;background-color: rgb(152,225,101);border: 1px solid rgb(145, 215, 96);}
.chatBoxMe .chatContent{float: right;}
.chatBoxMe .chatContent:after{border-left-color: rgba(152,225,101,1);border-right:none;left:auto;right: -5px;}
.chatBoxMe .chatContent:before{border-left-color: rgb(152,225,101);border-right:none;right: -5px;left: auto;}
.chatBoxMe .el-col-3{float: right;text-align: right;}
@ -470,40 +456,49 @@ a{color: #07a9fe;text-decoration: none;}
.chatEntTitle {
padding: 0 5px;
display: none;
width: 100%;
z-index: 9;
margin: 0 auto;
height: 50px;
line-height: 50px;
height: 70px;
overflow: hidden;
font-size: 14px;
font-size: 16px;
color: #fff;
overflow: hidden;
background-color: rgb(11 113 236);
background-image: url(../images/visitor_title_bg.png);
background-size: auto 72px;
background-position: center 0;
align-items: center;
justify-content: left;
display: none;
}
.chatEntTitleLogo{
margin-right: 5px;
.chatEntTitle span {
margin-right: 10px;
}
.chatEntTitle .el-badge__content.is-fixed.is-dot {
right: 17px;
bottom: -5px;
top: unset;
}
@media screen and (min-width: 900px) {
.chatCenter {
border-top: none;
border-bottom: none;
border-radius: 8px;
height: 94% !important;
position: absolute;
top: 18px;
left: 50%;
margin-left: -450px;
max-width: 900px;
max-height: 800px;
box-shadow: 0 2px 8px rgba(0,0,0,.15);
border-radius: 4px;
}
.chatVisitorPage{
height: calc(100% - 150px);
.chatVisitorPage {
height: calc(100% - 165px);
}
.chatEntTitle{display: flex;}
.chatEntTitleLogo {
margin-left: 15px;
}
.visitorBody {
display: flex;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-align: center;
align-items: center;
}
}
.visitorEditorArea{
margin: 0 5px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -24,6 +24,7 @@ new Vue({
noticeAvatar:"",
showIconBtns:false,
showFaceIcon:false,
isIframe:false,
},
methods: {
//初始化websocket

@ -22,19 +22,30 @@
<div id="app" class="chatCenter">
<template>
<!--客服代码-->
<div class="chatEntTitle">
<el-avatar class="chatEntTitleLogo" :size="35" src="/static/images/avator.jpg"></el-avatar>
<span>在线客服咨询</span>
<div class="chatEntTitle" v-show="!isIframe">
<el-badge type="success" is-dot class="item">
<el-avatar class="chatEntTitleLogo" :size="35" src="/static/images/1.jpg"></el-avatar>
</el-badge>
<div>
<div>智能在线客服系统</div>
</div>
</div>
<div class="chatContext chatVisitorPage">
<div class="chatBox">
<el-row :gutter="2" v-for="v in msgList" v-bind:class="{'chatBoxMe': v.is_kefu==true}">
<div class="chatTime" v-bind:class="{'chatTimeHide': v.show_time==false}"><span><{v.time}></span></div>
<el-col :span="3"><el-avatar shape="square" :size="36" :src="v.avator"></el-avatar></el-col>
<el-col :span="21">
<div class="chatUser"><{v.name}></div>
<div class="chatContent" v-html="v.content"></div>
</el-col>
<div v-if="v.is_kefu!=true" style="display: flex;">
<el-avatar style="margin-right:10px;flex-shrink: 0;" :size="36" :src="v.avator"></el-avatar>
<div class="chatMsgContent">
<div class="chatUser"><{v.name}></div>
<div class="chatContent chatContent2 replyContentBtn" v-html="v.content"></div>
</div>
</div>
<div class="kefuMe" v-if="v.is_kefu==true" style="display: flex;justify-content: flex-end;">
<div class="chatContent chatContent2 replyContentBtn" v-html="v.content"></div>
<el-avatar style="margin-left:10px;flex-shrink: 0;" :size="36" :src="v.avator"></el-avatar>
</div>
<div class="clear"></div>
</el-row>
</div>
@ -58,7 +69,7 @@
<div class="clear"></div>
</div>
<div class="footContact clear">
<a href="https://github.com/taoshihan1991/go-fly" target="_blank">智能在线客服系统版权所有 © 2020-2022</a>
<a href="" target="_blank">智能在线客服系统版权所有 © 2020-2022</a>
</div>
</div>
<!--//客服代码-->

@ -31,7 +31,7 @@
type="success"
effect="dark">
</el-alert>
<el-input style="margin-top:10px;" value="https://gofly.sopans.com/chatIndex?kefu_id=[客服用户名]"></el-input>
<el-input style="margin-top:10px;" value="/chatIndex?kefu_id=[客服用户名]"></el-input>
</el-tab-pane>
</el-tabs>
</el-main>

Loading…
Cancel
Save