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 @@ - +