Commit c87602ca authored by zhangyanni's avatar zhangyanni

提交

parent 3476c47f
......@@ -37,6 +37,7 @@
export default {
name: "applyLogin",
data(){
var screenHeight = window.innerHeight;
return{
codehtml: "getCode",
yzCodeForm: {
......@@ -61,7 +62,7 @@
isEmailOrPhone:0,
outSideParams:window.location.href.split("?")?window.location.href.split("?")[1]:null,
labelPosition:"top",
isInput:0,
isInput:0
}
},
components:{
......@@ -76,6 +77,11 @@
registerType:Number,
activityId:""
},
computed:{
scrollHeight() {
return document.documentElement.scrollTop || document.body.scrollTop || 0;
}
},
methods:{
handleClose(data){
// document.getElementsByTagName("body")[0].style.overflow = "unset";
......@@ -95,9 +101,13 @@
handleFocus(data){
this.isInput = data;
setTimeout(() => {
document.getElementsByClassName("contentWrap")[0].style.bottom ='200px';
},300)
if(data==1){
setTimeout(() => {
document.getElementsByClassName("contentWrap")[0].style.bottom ='100px';
},300)
}else{
document.getElementsByClassName("contentWrap")[0].style.bottom =0;
}
},
......@@ -108,6 +118,7 @@
if(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){
globalMsg.$emit("scrollToTop");
}
window.scrollTo(0, Math.max(this.scrollHeight - 1, 0));
},
timeOutReturn(){
......@@ -270,7 +281,7 @@
}, 1000)
}
},
}
},
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment