Skip to content

Commit 7a666e2

Browse files
committed
优化后台界面效果
1 parent 5086979 commit 7a666e2

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

static/css/common.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,8 @@ a{color: #07a9fe;text-decoration: none;}
309309
.chatBoxMe .chatContent:before{border-left-color: rgb(152,225,101);border-right:none;right: -5px;left: auto;}
310310
.chatBoxMe .el-col-3{float: right;text-align: right;}
311311
.chatBoxMe .chatUser{text-align: right}
312-
.chatArea{float: left;width: 85%;margin: 4px 0 0 4px;}
313-
.chatArea .el-textarea__inner{padding: 1px 5px}
314312
.btnArea{width: 10%;float: right;}
315-
@media screen and (max-width: 500px) {
316-
body{background: #fff}
317-
.chatCenter{border: none;box-shadow:none;margin-top: 0px;}
318-
.chatArea {width: 70%;}
319-
.btnArea{width: 20%;}
320-
}
313+
321314

322315
.chatTitle{height: 30px;line-height: 30px;color: #1989fa}
323316
.chatBoxSend{
@@ -378,6 +371,7 @@ a{color: #07a9fe;text-decoration: none;}
378371
display: flex;
379372
align-items: center;
380373
color: #7e7e7e;
374+
height: 35px;
381375
}
382376
.iconBtnsBox .iconBtn{
383377
margin-right: 10px;
@@ -388,12 +382,13 @@ a{color: #07a9fe;text-decoration: none;}
388382

389383
.kefuFuncBox{
390384
position: absolute;
385+
height: 135px;
391386
bottom: 0px;
392387
width: 100%;
393-
padding-bottom: 10px;
394388
background: #fff;
389+
border-top: 1px solid #e5e5e5;
395390
}
396-
.kefuFuncBox .el-textarea{width: 99%;}
391+
397392
.kefuFolderBtn{vertical-align: middle;}
398393
.visitorReply{
399394
font-size: 14px;
@@ -408,6 +403,7 @@ a{color: #07a9fe;text-decoration: none;}
408403
}
409404
.iconBtnsBox .kefuSendBtn{
410405
margin-left: auto;
406+
margin-right: 2px;
411407
}
412408
.clear{clear:both;}
413409

static/templates/chat_main.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
.chatBoxMe .el-col-3{float: right;text-align: right;}
2929
.chatBoxMe .chatUser{text-align: right}
30-
.chatBox{width: 100%;height:calc(100% - 130px);;overflow-y: auto;overflow-x: hidden;}
30+
.chatBox{width: 100%;height:calc(100% - 170px);;overflow-y: auto;overflow-x: hidden;}
3131
.chatTime{text-align: center;color: #bbb;margin: 5px 0;font-size: 12px;}
3232
</style>
3333
</head>
@@ -121,15 +121,15 @@
121121
<div class="iconBtn el-icon-picture" id="uploadImg" v-on:click="uploadImg('/uploadimg')" style="font-size: 24px;"></div>
122122
</el-tooltip>
123123
<el-tooltip content="上传附件" placement="top">
124-
<div class="iconBtn el-icon-upload" id="uploadFile" v-on:click="uploadFile('/2/uploadFile')" style="font-size: 26px;"></div>
124+
<div class="iconBtn el-icon-upload" id="uploadFile" v-on:click="uploadFile('/uploadfile')" style="font-size: 26px;"></div>
125125
</el-tooltip>
126126
<el-tooltip content="消息记录" placement="top">
127127
<div class="iconBtn el-icon-chat-line-round" v-on:click="getMesssagesByVisitorId(visitor.visitor_id,true)" style="font-size: 24px;"></div>
128128
</el-tooltip>
129129
<el-button class="kefuSendBtn" :disabled="sendDisabled" size="mini" type="primary" v-on:click="chatToUser">发送</el-button>
130130
</div>
131131
<div class="clear"></div>
132-
<el-input type="textarea" class="chatArea" v-model="messageContent" v-on:keyup.enter.native="chatToUser" placeholder="请输入内容"></el-input>
132+
<el-input type="textarea" :rows="4" class="chatArea" v-model="messageContent" v-on:keyup.enter.native="chatToUser" placeholder="请输入内容"></el-input>
133133
</div>
134134

135135
</div>

static/templates/chat_page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</div>
7070
</div>
7171
<div class="chatArticle">
72-
<h3 class="hotQuestionTitle"><img src="/static/images/fire.svg" class="fire">热门问题
72+
<h3 class="hotQuestionTitle"><img src="/static/images/fire.svg" class="fire">公告通知
7373
</h3>
7474
</div>
7575

0 commit comments

Comments
 (0)