测试软键盘遮挡问题

pull/23/head
taoshihan1991 3 years ago
parent baba0ad38b
commit 5e6e787a16

@ -76,5 +76,5 @@
var LANG=checkLang(); var LANG=checkLang();
</script> </script>
<script src="/static/js/chat-lang.js?v=1.0.0"></script> <script src="/static/js/chat-lang.js?v=1.0.0"></script>
<script src="/static/js/chat-page.js?v=1.0.1"></script> <script src="/static/js/chat-page.js?v=1.0.3"></script>
</html> </html>

@ -318,11 +318,12 @@ new Vue({
$(window).resize(function(){ $(window).resize(function(){
var docheight = $(window).height(); /*唤起键盘时当前窗口高度*/ var docheight = $(window).height(); /*唤起键盘时当前窗口高度*/
console.log(docheight,windheight); console.log(docheight,windheight);
if(docheight < windheight){ /*当唤起键盘高度小于未唤起键盘高度时执行*/ _this.scrollBottom();
$(".chatBoxSend").css("position","static"); // if(docheight < windheight){ /*当唤起键盘高度小于未唤起键盘高度时执行*/
}else{ // $(".chatBoxSend").css("position","static");
$(".chatBoxSend").css("position","fixed"); // }else{
} // $(".chatBoxSend").css("position","fixed");
// }
}); });
}); });
}, },

Loading…
Cancel
Save