72

parent 799f9ee1
......@@ -117,13 +117,6 @@
this.changeAge(this.contentData.age)
let that = this
// console.log(document.documentElement.clientWidth)
// console.log(Number(document.documentElement.clientWidth.replace('px','')))
// if(sessionStorage.getItem('orientationchange')==1){
// console.log(sessionStorage.getItem('orientationchange'))
// this.orientationchange=true;
// }else{
// this.orientationchange=false;
// }
if(document.documentElement.clientWidth>document.documentElement.clientHeight){
this.orientationchange=true;
}else{
......@@ -136,20 +129,15 @@
let height = document.documentElement.clientHeight
let t = setTimeout(function(){
if(width<height){
// sessionStorage.setItem('orientationchange', 1);
that.orientationchange=true;
// console.log(that.orientationchange)
clearTimeout(t)
// return
}else{
// sessionStorage.setItem('orientationchange', 0);
that.orientationchange=false;
// console.log(that.orientationchange)
clearTimeout(t)
// return
}
},100)
// console.log(137)
// debugger
},false);
},
......
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