Skip to content

Commit d9b4c59

Browse files
committed
客服输入框界面
1 parent a890dec commit d9b4c59

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

static/css/common.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,11 @@ a{color: #07a9fe;text-decoration: none;}
331331
color:#007aff;
332332
cursor: pointer;
333333
}
334-
.iconBtnsBox .kefuSendBtn{
335-
margin-left: auto;
336-
margin-right: 2px;
334+
.kefuSendBtn{
335+
position: absolute;
336+
right: 10px;
337+
bottom: 10px;
338+
z-index: 2;
337339
}
338340
.clear{clear:both;}
339341

@@ -504,7 +506,10 @@ a{color: #07a9fe;text-decoration: none;}
504506
line-height: 23px;
505507
color: #666;
506508
}
507-
/* 定义滚动条的宽度、高度和背景色 */
509+
.chatArea .el-textarea__inner{
510+
border: none;
511+
}
512+
/* 定义滚动条的宽度、高度和背景色 */
508513
::-webkit-scrollbar {
509514
width: 8px;
510515
height: 10px;

static/templates/chat_main.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<link rel="stylesheet" href="/static/css/common.css?v=dgftr65ujhfg">
1212
<script src="/assets/js/functions.js"></script>
1313
<script src="/assets/js/reconnecting-websocket.min.js"></script>
14+
<link rel="stylesheet" href="/static/css/icon/iconfont.css?v=fgjlgfda"/>
1415
<style>
1516
html, body {overflow:hidden;height: 100%;padding: 0;margin: 0;background-color: #f5f5f5;}
1617
.el-row{width:100%}
@@ -114,7 +115,7 @@
114115
<div class="clear"></div>
115116
</div>
116117
<el-tooltip content="发送表情" placement="top">
117-
<div class="iconBtn faceBtn el-icon-s-shop" style="font-size: 24px;" @click.stop="showFaceIcon==true?showFaceIcon=false:showFaceIcon=true"></div>
118+
<div class="iconBtn iconfont icon-xiaolian" style="font-size: 24px;" @click.stop="showFaceIcon==true?showFaceIcon=false:showFaceIcon=true"></div>
118119
</el-tooltip>
119120

120121
<el-tooltip content="上传图片" placement="top">
@@ -126,10 +127,11 @@
126127
<el-tooltip content="消息记录" placement="top">
127128
<div class="iconBtn el-icon-chat-line-round" v-on:click="getMesssagesByVisitorId(visitor.visitor_id,true)" style="font-size: 24px;"></div>
128129
</el-tooltip>
129-
<el-button class="kefuSendBtn" :disabled="sendDisabled" size="mini" type="primary" v-on:click="chatToUser">发送</el-button>
130+
130131
</div>
131132
<div class="clear"></div>
132-
<el-input type="textarea" :rows="4" class="chatArea" v-model="messageContent" v-on:keyup.enter.native="chatToUser" placeholder="请输入内容"></el-input>
133+
<el-button class="kefuSendBtn" :disabled="sendDisabled" size="mini" type="primary" v-on:click="chatToUser">发送</el-button>
134+
<el-input type="textarea" :autosize="{ minRows: 8, maxRows: 12}" class="chatArea" v-model="messageContent" v-on:keyup.enter.native="chatToUser" placeholder="请输入内容"></el-input>
133135
</div>
134136

135137
</div>

0 commit comments

Comments
 (0)