Commit 3855a551ec96893dd314e7b71112009c87920fd5

Authored by vking
1 parent 73120e4a

new 2.0

... ... @@ -9,7 +9,7 @@
<block wx:else="">{{multiArray[0][multiIndex[0]]}}</block>
<view class="more view"></view>
</view>
<block wx:for="{{tags}}" wx:key="tags.key">
<block wx:for="{{tags}}" wx:key="tagskey">
<view class="view cu-tag round {{item.active?'bg-blue light':''}}"
bindtap="tagsChange"
data-id="{{item.id}}">{{item.name}}</view>
... ...
... ... @@ -30,7 +30,7 @@
</view>
<view class="view flex align-center justify-between margin-top-sm reserve-view">
<view class="view rooms flex-treble flex" style="overflow-x: auto">
<block wx:for="{{seller.class}}" wx:key="se-class">
<block wx:for="{{seller.class}}" wx:key="seclass">
<view class="cu-tag round line-blue text-blue view">{{item.name}}</view>
</block>
<view class="cu-tag round line-white text-blue view cu-tag-end"></view>
... ...
... ... @@ -186,6 +186,7 @@ Page({
this.sellers=res.data.list
this.makeMarker();
this.makeSellers();
this.debounce(this.makeDefMarker,300)
}
})
... ... @@ -248,6 +249,11 @@ Page({
sellers:this.sellers,
})
},
makeDefMarker(){
if(!this.activeSellerID && this.data.markers.length>0){
this.markertap({markerId:this.data.markers[0].id})
}
},
markertap(e){
if(!e.markerId || e.markerId=='local') return;
let markers=this.data.markers
... ...