|
...
|
...
|
@@ -144,6 +144,11 @@ Page({ |
|
|
|
this.mapCtx = wx.createMapContext('map')
|
|
|
|
}
|
|
|
|
if(!this.mapCtx) return;
|
|
|
|
this.mapCtx.getScale({
|
|
|
|
success: (res) => {
|
|
|
|
this.mapScale = res.scale;
|
|
|
|
},
|
|
|
|
})
|
|
|
|
this.mapCtx.getRegion({
|
|
|
|
success: (res) => {
|
|
|
|
if (res.southwest.latitude) {
|
|
...
|
...
|
@@ -160,6 +165,7 @@ Page({ |
|
|
|
console.log('getSellers',this.mapScale,this.mapData)
|
|
|
|
this.setData({
|
|
|
|
hasLoading:true,
|
|
|
|
scrollSellerID:'',//清理,滚到顶
|
|
|
|
})
|
|
|
|
let param = {
|
|
|
|
lat: this.user.latitude == def_latitude ? '' : this.user.latitude,
|
|
...
|
...
|
@@ -190,6 +196,7 @@ Page({ |
|
|
|
this.hasFilterData=true
|
|
|
|
}
|
|
|
|
this.param = param;
|
|
|
|
this.activeSellerID='';
|
|
|
|
App.Customer.SellerList(param).then(async res => {
|
|
|
|
if (res.ret == 200) {
|
|
|
|
this.hasSellers=res.data.flag
|
|
...
|
...
|
@@ -353,7 +360,8 @@ Page({ |
|
|
|
},
|
|
|
|
scrollTop:0,
|
|
|
|
scrollEvent(e){
|
|
|
|
console.log(e.detail.scrollTop)
|
|
|
|
if(this.mapScale<12) return;
|
|
|
|
//console.log(e.detail.scrollTop)
|
|
|
|
this.scrollTop=e.detail.scrollTop
|
|
|
|
if(this.hasScrollToIng)return;
|
|
|
|
this.debounce(()=>{
|
|
...
|
...
|
@@ -366,7 +374,7 @@ Page({ |
|
|
|
if(po>80){
|
|
|
|
idx+=1;
|
|
|
|
}
|
|
|
|
console.log(idx,po)
|
|
|
|
//console.log(idx,po)
|
|
|
|
if(this.sellers[idx]){
|
|
|
|
//this.activeSellerID=this.sellers[idx].id
|
|
|
|
this.markertap({markerId:this.sellers[idx].id},false)
|
...
|
...
|
|