|
@@ -314,19 +314,17 @@ Page({ |
|
@@ -314,19 +314,17 @@ Page({ |
|
314
|
this.selectComponent('#as').show(e.detail.seller);
|
314
|
this.selectComponent('#as').show(e.detail.seller);
|
|
315
|
}
|
315
|
}
|
|
316
|
},
|
316
|
},
|
|
|
|
317
|
+ scrollTop:0,
|
|
317
|
scrollEvent(e){
|
318
|
scrollEvent(e){
|
|
318
|
if(this.hasScrollToIng)return;
|
319
|
if(this.hasScrollToIng)return;
|
|
319
|
- let idx=0
|
|
|
|
320
|
- if(e.detail.scrollTop>20){
|
|
|
|
321
|
- idx=parseInt(e.detail.scrollTop/182)
|
|
|
|
322
|
- let ms=(e.detail.scrollTop%(182*(idx>0?idx:1)))>80?1:0;
|
|
|
|
323
|
- idx+=ms;
|
|
|
|
324
|
- }
|
320
|
+ //console.log(e.detail.scrollTop)
|
|
|
|
321
|
+ this.scrollTop=e.detail.scrollTop
|
|
325
|
this.debounce(()=>{
|
322
|
this.debounce(()=>{
|
|
326
|
- this.scrollEventActive(idx)
|
323
|
+ this.scrollEventActive()
|
|
327
|
},300)
|
324
|
},300)
|
|
328
|
},
|
325
|
},
|
|
329
|
- scrollEventActive(idx){
|
326
|
+ scrollEventActive(){
|
|
|
|
327
|
+ let idx=parseInt(this.scrollTop/170)
|
|
330
|
if(this.sellers[idx]){
|
328
|
if(this.sellers[idx]){
|
|
331
|
//this.activeSellerID=this.sellers[idx].id
|
329
|
//this.activeSellerID=this.sellers[idx].id
|
|
332
|
this.markertap({markerId:this.sellers[idx].id},false)
|
330
|
this.markertap({markerId:this.sellers[idx].id},false)
|