...
|
...
|
@@ -157,6 +157,27 @@ |
|
|
popup("登录成功")
|
|
|
}
|
|
|
})
|
|
|
//苹果input自动下滑兼容
|
|
|
$("input").blur(function(){
|
|
|
setTimeout(function() {
|
|
|
var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
|
window.scrollTo(0, Math.max(scrollHeight - 1, 0));
|
|
|
}, 300);
|
|
|
})
|
|
|
//聚焦监听
|
|
|
$('input').focus(function() {
|
|
|
if((/Android/gi).test(navigator.userAgent)) {
|
|
|
window.addEventListener('resize', function() {
|
|
|
if(document.activeElement.tagName == 'INPUT' ||
|
|
|
document.activeElement.tagName == 'TEXTAREA') {
|
|
|
window.setTimeout(function() {
|
|
|
document.activeElement.scrollIntoViewIfNeeded();
|
|
|
}, 0);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|