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)

        })


      },


点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部
0.086805s