登录页面-防止软键盘弹出所引起的定位问题
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
/**服务端地址**/
|
/**服务端地址**/
|
||||||
//var BASE_PATH = "http://192.168.10.128:8084";
|
//var BASE_PATH = "http://192.168.10.128:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
var BASE_PATH = "http://192.168.10.47:8086";
|
||||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
//var BASE_PATH = "http://192.168.10.47:8086";
|
||||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||||
var BASE_PATH = "http://192.168.10.53:8084";
|
//var BASE_PATH = "http://192.168.10.53:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||||
/**是否显示过启动页面**/
|
/**是否显示过启动页面**/
|
||||||
var lauchFlag = false;
|
var lauchFlag = false;
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
/* 公用 */
|
/* 公用 */
|
||||||
[v-cloak]{display:none;}
|
|
||||||
*{font-size:16px;font-family:arial,"华文细黑";}
|
*{font-size:16px;font-family:arial,"华文细黑";}
|
||||||
ul li{list-style:none;}
|
ul li{list-style:none;}
|
||||||
img{display:block;}
|
img{display:block;}
|
||||||
@@ -849,7 +848,7 @@ input::-webkit-input-placeholder{
|
|||||||
.topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;}
|
.topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;}
|
||||||
|
|
||||||
/* 广告 */
|
/* 广告 */
|
||||||
.ad{display:block;border-top:solid 0.5rem #f3f3f3;border-bottom:solid 0.5rem #f3f3f3;}
|
.ad{display:block;border-bottom:solid 0.5rem #f3f3f3;}
|
||||||
.ad img{width:100%;}
|
.ad img{width:100%;}
|
||||||
|
|
||||||
/* 图表 */
|
/* 图表 */
|
||||||
@@ -1300,14 +1299,15 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
|
|
||||||
/* 引导页 */
|
/* 引导页 */
|
||||||
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
|
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
|
||||||
.swiper-slide img.guideImg01{width:90%;margin:0 auto;margin-top:7.4rem;}
|
.swiper-slide img{margin:0 auto;margin-top:7rem;}
|
||||||
.swiper-slide img.guideImg02{width:85%;margin:0 auto;margin-top:7rem;}
|
.swiper-slide img.guideImg01{width:90%;}
|
||||||
.swiper-slide img.guideImg03{width:55%;margin:0 auto;margin-top:8rem;}
|
.swiper-slide img.guideImg02{width:85%;}
|
||||||
|
.swiper-slide img.guideImg03{width:55%;}
|
||||||
.swiper-slide div{position:absolute;bottom:5rem;width:100%;}
|
.swiper-slide div{position:absolute;bottom:5rem;width:100%;}
|
||||||
.swiper-slide p{text-align:center;}
|
.swiper-slide p{text-align:center;padding:0 1rem;}
|
||||||
.swiper-slide p label{font-size:1rem;}
|
.swiper-slide p label{font-size:1rem;}
|
||||||
.swiper-slide p small{font-size:0.7rem;color:#999;}
|
.swiper-slide p small{font-size:0.7rem;color:#999;}
|
||||||
.swiper-slide div.content-block{bottom:1.5rem;}
|
.swiper-slide div.content-block{bottom:0.5rem;}
|
||||||
.swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;}
|
.swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;}
|
||||||
.swiper-pagination-bullet{width:10px;height:10px;background:#D7D7D7;opacity:1;}
|
.swiper-pagination-bullet{width:10px;height:10px;background:#D7D7D7;opacity:1;}
|
||||||
.swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;}
|
.swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;}
|
||||||
@@ -1386,6 +1386,7 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
}
|
}
|
||||||
@media(max-width:320px){
|
@media(max-width:320px){
|
||||||
.list-block .item-title span.c3a{max-width:112px;}
|
.list-block .item-title span.c3a{max-width:112px;}
|
||||||
|
.list-block .item-title label{max-width:100px;}
|
||||||
label.spacing01{margin-right:11px;}
|
label.spacing01{margin-right:11px;}
|
||||||
label.spacing02{margin-right:12px;}
|
label.spacing02{margin-right:12px;}
|
||||||
.priceInfo div div span{width:125px;}
|
.priceInfo div div span{width:125px;}
|
||||||
@@ -1405,6 +1406,9 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
@media(min-height:750px){
|
@media(min-height:750px){
|
||||||
.bar-tab{bottom:1.7rem;}
|
.bar-tab{bottom:1.7rem;}
|
||||||
.bar-tab ~ .content{bottom:4.2rem;}
|
.bar-tab ~ .content{bottom:4.2rem;}
|
||||||
|
.swiper-slide div{bottom:12rem;}
|
||||||
|
.swiper-slide div.content-block{bottom:5rem;}
|
||||||
|
.swiper-container-horizontal>.swiper-pagination{bottom:4rem;}
|
||||||
}
|
}
|
||||||
@media only screen and (-webkit-min-device-pixel-ratio:2){
|
@media only screen and (-webkit-min-device-pixel-ratio:2){
|
||||||
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ html:not(.watch-active-state) .theme label.label-radio:active,
|
|||||||
.priceRecovery .col-50 .button.theme{background:none;border-color:#F18D00;color:#F18D00;}
|
.priceRecovery .col-50 .button.theme{background:none;border-color:#F18D00;color:#F18D00;}
|
||||||
|
|
||||||
.page > header.bar.theme{background:#F18D00;}
|
.page > header.bar.theme{background:#F18D00;}
|
||||||
|
.bar .button-nav:active{color:#F18D00;}
|
||||||
.bar-nav.theme .icon.icon-left{color:#fff;}
|
.bar-nav.theme .icon.icon-left{color:#fff;}
|
||||||
|
|
||||||
.bar .button-link.theme{background:none;color:#F18D00;}
|
.bar .button-link.theme{background:none;color:#F18D00;}
|
||||||
@@ -243,6 +244,7 @@ html:not(.watch-active-state) .theme label.label-radio:active,
|
|||||||
.buttons-row.theme{background:none;}
|
.buttons-row.theme{background:none;}
|
||||||
.buttons-row.theme .button{border-color:#D7D7D7;color:#999;}
|
.buttons-row.theme .button{border-color:#D7D7D7;color:#999;}
|
||||||
.buttons-row.theme .button.active{background:none;border-color:#F18D00;color:#F18D00;}
|
.buttons-row.theme .button.active{background:none;border-color:#F18D00;color:#F18D00;}
|
||||||
|
.buttons-row01.theme .button{color:#333;}
|
||||||
|
|
||||||
.selectBox div.theme{background:none;}
|
.selectBox div.theme{background:none;}
|
||||||
.selectBox div.theme.active{color:#F18D00;}
|
.selectBox div.theme.active{color:#F18D00;}
|
||||||
|
|||||||
@@ -1546,7 +1546,8 @@
|
|||||||
"views/rent/rent.html",
|
"views/rent/rent.html",
|
||||||
"views/district/detail.html",
|
"views/district/detail.html",
|
||||||
"views/house/houseList.html",
|
"views/house/houseList.html",
|
||||||
"views/house/cityDetail.html"
|
"views/house/cityDetail.html",
|
||||||
|
"views/intelligentHouse/index.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
},
|
},
|
||||||
@@ -1570,7 +1571,8 @@
|
|||||||
"/views/user/bindingMobile.html"
|
"/views/user/bindingMobile.html"
|
||||||
],
|
],
|
||||||
"refer": [
|
"refer": [
|
||||||
"views/user/passLogin.html"
|
"views/user/passLogin.html",
|
||||||
|
"views/user/bindingMobile.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
},
|
},
|
||||||
@@ -1710,7 +1712,8 @@
|
|||||||
"views/house/cityDetail.html": {
|
"views/house/cityDetail.html": {
|
||||||
"resources": [],
|
"resources": [],
|
||||||
"refer": [
|
"refer": [
|
||||||
"views/user/codeSms.html"
|
"views/user/codeSms.html",
|
||||||
|
"views/district/detail.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
},
|
},
|
||||||
@@ -1735,6 +1738,28 @@
|
|||||||
"views/setting/agreement.html"
|
"views/setting/agreement.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
|
},
|
||||||
|
"views/intelligentHouse/index.html": {
|
||||||
|
"resources": [],
|
||||||
|
"refer": [
|
||||||
|
"views/intelligentHouse/mapDetail.html"
|
||||||
|
],
|
||||||
|
"priority": 0
|
||||||
|
},
|
||||||
|
"views/intelligentHouse/mapDetail.html": {
|
||||||
|
"resources": [],
|
||||||
|
"refer": [
|
||||||
|
"views/intelligentHouse/aroundDetail.html"
|
||||||
|
],
|
||||||
|
"priority": 0
|
||||||
|
},
|
||||||
|
"views/house/detail.html": {
|
||||||
|
"resources": [],
|
||||||
|
"refer": [
|
||||||
|
"views/rent/rentManager.html",
|
||||||
|
"views/loan/loanInfo.html"
|
||||||
|
],
|
||||||
|
"priority": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"idle": {
|
"idle": {
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="baseInfo" class="list-block">
|
<div id="baseInfo" class="list-block mb05">
|
||||||
<base-info-component></base-info-component>
|
<base-info-component></base-info-component>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,8 @@
|
|||||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
|
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.list-block ul:before{height:0;}
|
||||||
.priceRecovery + .list-block ul:after{height:0;}
|
.priceRecovery + .list-block ul:after{height:0;}
|
||||||
.theme {
|
|
||||||
background-color: #F18D00;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -27,7 +25,7 @@
|
|||||||
|
|
||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav barBorder">
|
||||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
@@ -89,7 +87,7 @@
|
|||||||
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list-block media-list">
|
<div class="list-block media-list mb05">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<div class="item-content">
|
<div class="item-content">
|
||||||
|
|||||||
@@ -12,7 +12,9 @@
|
|||||||
<link rel="stylesheet" href="../../css/sm.css">
|
<link rel="stylesheet" href="../../css/sm.css">
|
||||||
<link rel="stylesheet" href="../../css/main.css">
|
<link rel="stylesheet" href="../../css/main.css">
|
||||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||||
|
<style>
|
||||||
|
html,body{height:auto;}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -120,18 +122,19 @@ function openView() {
|
|||||||
clicked(BASE_PATH + '/user/agreement',true)
|
clicked(BASE_PATH + '/user/agreement',true)
|
||||||
}
|
}
|
||||||
|
|
||||||
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
/* 防止软键盘弹出所引起的定位问题 */
|
||||||
window.onresize=function(){
|
var winHeight = $(window).height(); // 获取当前页面高度
|
||||||
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
|
$(window).resize(function(){
|
||||||
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
var thisHeight = $(this).height();
|
||||||
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
|
if(winHeight - thisHeight > 50){
|
||||||
if(window.viewsPage=="codeSms"){
|
//当软键盘弹出,在这里面操作
|
||||||
plus.webview.currentWebview().setStyle({
|
$(".loginMode").hide();
|
||||||
height:originalHeight
|
}else{
|
||||||
});
|
//当软键盘收起,在此处操作
|
||||||
}
|
$(".loginMode").show();
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -162,17 +162,19 @@ new Vue({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
/* 防止软键盘弹出所引起的定位问题 */
|
||||||
window.onresize=function(){
|
var winHeight = $(window).height(); // 获取当前页面高度
|
||||||
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
|
$(window).resize(function(){
|
||||||
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
var thisHeight = $(this).height();
|
||||||
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
|
if(winHeight - thisHeight > 50){
|
||||||
plus.webview.currentWebview().setStyle({
|
//当软键盘弹出,在这里面操作
|
||||||
height:originalHeight
|
$(".loginMode").hide();
|
||||||
});
|
}else{
|
||||||
|
//当软键盘收起,在此处操作
|
||||||
|
$(".loginMode").show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user