Commit 151e13b12b8eb0c18a5a7531ba3814c70bd0eb0f

Authored by wangfan
1 parent a21a073a

地图优化

... ... @@ -36,6 +36,7 @@ Page({
suggestion:{},
hasSuggestion:false,
current:0,
hasSellers:false,
},
hasSellerConcat:hasSellerConcat,
transverseViewHeight:transverseViewHeight,//横向滚动高度,苹果要比安卓多20
... ... @@ -441,7 +442,9 @@ Page({
console.log('接口报错了');
}
this.sellersNow=now_sid;
let obj={}
let obj={
hasSellers:now_sid.length>0
}
if(this.hasSellerConcat){
obj.markers=this.data.markers.concat(markers);
}else{
... ... @@ -501,7 +504,10 @@ Page({
//let pos=DA.gcj02towgs84(suggestion.longitude,suggestion.latitude)
map.latitude=suggestion.latitude
map.longitude=suggestion.longitude
this.sellersIds=[]
this.sellers=[]
this.setData({
markers:[],
suggestion:suggestion,
hasSuggestion:true,
map:map,
... ...
... ... @@ -49,8 +49,8 @@
indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"
interval="2000" duration="500"
previous-margin="{{20}}px" next-margin="{{20}}px"
current="{{current}}" bindchange="bindtransition">
<block wx:for="{{markers}}" wx:key="markers.key">
current="{{current}}" bindchange="bindtransition" hidden="{{!hasSellers}}">
<block wx:for="{{markers}}" wx:key="markers.key" >
<swiper-item bindtap="gotoDetail" data-sid="{{item.id}}" wx:if="{{item.display!='none'}}">
<view class="seller" id="seller-{{item.id}}">
<sb-tr seller="{{item.seller}}" hasActivity="{{true}}"></sb-tr>
... ...