|
...
|
...
|
@@ -32,6 +32,7 @@ Page({ |
|
|
|
scrollIntoView:'',
|
|
|
|
suggestion:{},
|
|
|
|
hasSuggestion:false,
|
|
|
|
current:0,
|
|
|
|
},
|
|
|
|
transverseViewHeight:transverseViewHeight,//横向滚动高度,苹果要比安卓多20
|
|
|
|
//qqmapsdk:null,
|
|
...
|
...
|
@@ -267,7 +268,8 @@ Page({ |
|
|
|
console.log(e)
|
|
|
|
let markers=this.data.markers;
|
|
|
|
let bl=1.2;
|
|
|
|
markers.forEach(m=>{
|
|
|
|
let current=0;
|
|
|
|
markers.forEach((m,i)=>{
|
|
|
|
m.iconPath=m.iconPath.replace('/cates-active/','/cates/')
|
|
|
|
m.zIndex=m.zIndexBak
|
|
|
|
if(m.width==20*bl){
|
|
...
|
...
|
@@ -279,6 +281,7 @@ Page({ |
|
|
|
m.height=7;
|
|
|
|
}
|
|
|
|
if(m.id==e.markerId){
|
|
|
|
current=i;
|
|
|
|
if(m.width==20){
|
|
|
|
m.width=20*bl;
|
|
|
|
m.height=25*bl;
|
|
...
|
...
|
@@ -295,6 +298,7 @@ Page({ |
|
|
|
};
|
|
|
|
if(flag){
|
|
|
|
obj.scrollIntoView='seller-'+e.markerId;
|
|
|
|
obj.current=current
|
|
|
|
}
|
|
|
|
this.setData(obj)
|
|
|
|
},
|
|
...
|
...
|
@@ -469,6 +473,13 @@ Page({ |
|
|
|
setTimeout(function(){
|
|
|
|
that.getClassNameFlag=true;
|
|
|
|
},300)
|
|
|
|
|
|
|
|
},
|
|
|
|
bindtransition(e){
|
|
|
|
console.log(e.detail.current);
|
|
|
|
let i=e.detail.current
|
|
|
|
this.activeSellerID=this.sellers[i];
|
|
|
|
this.markertap({
|
|
|
|
markerId:this.sellers[i].id
|
|
|
|
},false)
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|