This commit is contained in:
zongzhimin
2018-04-11 14:17:05 +08:00
parent f5c287ed0d
commit aecad0be45
27 changed files with 1868 additions and 588 deletions
+13
View File
@@ -95,6 +95,7 @@ $.config = {router: false}
<script type="text/javascript" src="../../js/plus.info.js" ></script>
<script type="text/javascript" src="../../js/common.js" ></script>
<script type="text/javascript" src="../../js/login/thirdLogin.js" ></script>
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
<script>
new Vue({
@@ -159,6 +160,18 @@ new Vue({
}
}
});
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
window.onresize=function(){
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
plus.webview.currentWebview().setStyle({
height:originalHeight
});
}
}
</script>
</body>