Commit 2f83e596 by 前端

Merge branch 'zq_dev_3.0' into 'v3.0'

分享吸顶优化

See merge request !133
2 parents 77674756 48f1002c
......@@ -29,10 +29,8 @@ Component({
lifetimes:{
ready: function (){
wx.$eventbus.on('evt_page_scroll',(e)=>{
// console.log(e)
wx.$util.getViewInfo('.header',async (res)=> {
let heightTop = res.height
let heightTop = this.data.isShare ? 0 : (res?.height || 0)
let prodArr = await this.getHeight('.prod-wrap')
heightTop += prodArr[0].height
let imgArr = await this.getHeight('.img-item')
......@@ -97,7 +95,7 @@ Component({
})
this.data.throttle = true
wx.$util.getViewInfo('.header',async (res)=> {
let heightTop = res.height
let heightTop = this.data.isShare ? 0 : (res?.height || 0)
let prodArr = await this.getHeight('.prod-wrap')
heightTop += prodArr[0].height
let imgArr = await this.getHeight('.img-item')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!