handleScroll() {
this.$nextTick(()=>{
let isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
//this.$refs.left.clientHeight<= this.$refs.right.clientHeight window.scrollY > 180 ||
if ( isMobile || this.screenWidth < 1200 || this.$refs.ttest.getBoundingClientRect().top<=window.innerHeight-110 || this.$refs.left.clientHeight<= this.$refs.right.clientHeight) {
this.isSticky = false
} else {
this.isSticky = true
}
// console.log('111',this.$refs.ttest.getBoundingClientRect().top,window.innerHeight)
})
},

发表评论 取消回复