Commit 73d0d5bb by zhangquan

Merge branch 'v3.0' of http://192.168.3.233:8090/saas_plus/store-assistant into feat_v3.0

2 parents 58980f87 2f83e596
...@@ -29,10 +29,8 @@ Component({ ...@@ -29,10 +29,8 @@ Component({
lifetimes:{ lifetimes:{
ready: function (){ ready: function (){
wx.$eventbus.on('evt_page_scroll',(e)=>{ wx.$eventbus.on('evt_page_scroll',(e)=>{
// console.log(e)
wx.$util.getViewInfo('.header',async (res)=> { 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') let prodArr = await this.getHeight('.prod-wrap')
heightTop += prodArr[0].height heightTop += prodArr[0].height
let imgArr = await this.getHeight('.img-item') let imgArr = await this.getHeight('.img-item')
...@@ -97,7 +95,7 @@ Component({ ...@@ -97,7 +95,7 @@ Component({
}) })
this.data.throttle = true this.data.throttle = true
wx.$util.getViewInfo('.header',async (res)=> { 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') let prodArr = await this.getHeight('.prod-wrap')
heightTop += prodArr[0].height heightTop += prodArr[0].height
let imgArr = await this.getHeight('.img-item') 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!