diff --git a/static/html/chat_page.html b/static/html/chat_page.html
index 4cb3f36..ef2b80d 100644
--- a/static/html/chat_page.html
+++ b/static/html/chat_page.html
@@ -55,7 +55,7 @@
-
+
![]()
diff --git a/static/js/chat-page.js b/static/js/chat-page.js
index ae3cfa4..0f3e540 100644
--- a/static/js/chat-page.js
+++ b/static/js/chat-page.js
@@ -256,6 +256,20 @@ new Vue({
}
});
},
+ //软键盘问题
+ textareaFocus:function(){
+ if(/Android|webOS|iPhone|iPad|BlackBerry/i.test(navigator.userAgent)) {
+ $('body').scrollTop($("body")[0].scrollHeight);
+ $(".chatContext").css("margin-bottom","1px");
+ $(".chatBoxSend").css("position","static");
+ }
+ },
+ textareaBlur:function(){
+ if(/Android|webOS|iPhone|iPad|BlackBerry/i.test(navigator.userAgent)) {
+ $(".chatContext").css("margin-bottom","105px");
+ $(".chatBoxSend").css("position","fixed");
+ }
+ },
//获取日期
getNowDate : function() {// 获取日期
var d = new Date(new Date());