|
...
|
...
|
@@ -314,19 +314,17 @@ Page({ |
|
|
|
this.selectComponent('#as').show(e.detail.seller);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
scrollTop:0,
|
|
|
|
scrollEvent(e){
|
|
|
|
if(this.hasScrollToIng)return;
|
|
|
|
let idx=0
|
|
|
|
if(e.detail.scrollTop>20){
|
|
|
|
idx=parseInt(e.detail.scrollTop/182)
|
|
|
|
let ms=(e.detail.scrollTop%(182*(idx>0?idx:1)))>80?1:0;
|
|
|
|
idx+=ms;
|
|
|
|
}
|
|
|
|
//console.log(e.detail.scrollTop)
|
|
|
|
this.scrollTop=e.detail.scrollTop
|
|
|
|
this.debounce(()=>{
|
|
|
|
this.scrollEventActive(idx)
|
|
|
|
this.scrollEventActive()
|
|
|
|
},300)
|
|
|
|
},
|
|
|
|
scrollEventActive(idx){
|
|
|
|
scrollEventActive(){
|
|
|
|
let idx=parseInt(this.scrollTop/170)
|
|
|
|
if(this.sellers[idx]){
|
|
|
|
//this.activeSellerID=this.sellers[idx].id
|
|
|
|
this.markertap({markerId:this.sellers[idx].id},false)
|
...
|
...
|
|