From 86556436113543ef05070d8f6ea0bfac517c212f Mon Sep 17 00:00:00 2001 From: "630892807@qq.com" <630892807@qq.com> Date: Sun, 14 Mar 2021 20:40:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=9A=E5=8A=A8=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/js/chat-page.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 0908828..4171766 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -266,8 +266,12 @@ new Vue({ }, textareaBlur:function(){ if(/Android|webOS|iPhone|iPad|BlackBerry/i.test(navigator.userAgent)) { - $(".chatContext").css("margin-bottom","105px"); - $(".chatBoxSend").css("position","fixed"); + var chatBoxSendObj=$(".chatBoxSend"); + var chatContextObj=$(".chatContext"); + if(chatBoxSendObj.css("position")!="fixed"){ + chatContextObj.css("margin-bottom","105px"); + chatBoxSendObj.css("position","fixed"); + } } }, //获取日期