From 73ebd1375a60697e257b6582444bec09813be3db Mon Sep 17 00:00:00 2001
From: taoshihan <630892807@qq.com>
Date: Mon, 28 Nov 2022 23:20:08 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=83=85=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/css/common.css | 6 +++++-
static/js/chat-main.js | 13 +++----------
static/templates/chat_main.html | 6 +++---
3 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/static/css/common.css b/static/css/common.css
index 34d8787..34cdba4 100644
--- a/static/css/common.css
+++ b/static/css/common.css
@@ -46,6 +46,7 @@
bottom: 0px;
z-index: 999;
}
+
.faceBox{
width: 100%;
background: #fff;
@@ -311,7 +312,10 @@ a{color: #07a9fe;text-decoration: none;}
background: #fff;
border-top: 1px solid #e5e5e5;
}
-
+.kefuFuncBox .faceBox{
+ position: absolute;
+ bottom:100px;
+}
.kefuFolderBtn{vertical-align: middle;}
.visitorReply{
font-size: 14px;
diff --git a/static/js/chat-main.js b/static/js/chat-main.js
index 21da004..982aeac 100644
--- a/static/js/chat-main.js
+++ b/static/js/chat-main.js
@@ -55,6 +55,7 @@ var app=new Vue({
replyTitle:"",
ipBlacks:[],
sendDisabled:false,
+ showFaceIcon:false,
},
methods: {
//跳转
@@ -542,15 +543,7 @@ var app=new Vue({
$.each(faceTitles, function (index, item) {
_this.face.push({"name":item,"path":faces[item]});
});
- $(".faceBtn").click(function(){
- var status=$('.faceBox').css("display");
- if(status=="block"){
- $('.faceBox').hide();
- }else{
- $('.faceBox').show();
- }
- return false;
- });
+
});
});
var _hmt = _hmt || [];
@@ -563,7 +556,7 @@ var app=new Vue({
},
//表情点击事件
faceIconClick(index){
- $('.faceBox').hide();
+ this.showFaceIcon=false;
this.messageContent+="face"+this.face[index].name;
},
//上传图片
diff --git a/static/templates/chat_main.html b/static/templates/chat_main.html
index 5aef9f9..519bd9a 100644
--- a/static/templates/chat_main.html
+++ b/static/templates/chat_main.html
@@ -8,7 +8,7 @@
-
+