Commit 3855a551ec96893dd314e7b71112009c87920fd5

Authored by vking
1 parent 73120e4a

new 2.0

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <block wx:else="">{{multiArray[0][multiIndex[0]]}}</block> 9 <block wx:else="">{{multiArray[0][multiIndex[0]]}}</block>
10 <view class="more view"></view> 10 <view class="more view"></view>
11 </view> 11 </view>
12 - <block wx:for="{{tags}}" wx:key="tags.key"> 12 + <block wx:for="{{tags}}" wx:key="tagskey">
13 <view class="view cu-tag round {{item.active?'bg-blue light':''}}" 13 <view class="view cu-tag round {{item.active?'bg-blue light':''}}"
14 bindtap="tagsChange" 14 bindtap="tagsChange"
15 data-id="{{item.id}}">{{item.name}}</view> 15 data-id="{{item.id}}">{{item.name}}</view>
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 </view> 30 </view>
31 <view class="view flex align-center justify-between margin-top-sm reserve-view"> 31 <view class="view flex align-center justify-between margin-top-sm reserve-view">
32 <view class="view rooms flex-treble flex" style="overflow-x: auto"> 32 <view class="view rooms flex-treble flex" style="overflow-x: auto">
33 - <block wx:for="{{seller.class}}" wx:key="se-class"> 33 + <block wx:for="{{seller.class}}" wx:key="seclass">
34 <view class="cu-tag round line-blue text-blue view">{{item.name}}</view> 34 <view class="cu-tag round line-blue text-blue view">{{item.name}}</view>
35 </block> 35 </block>
36 <view class="cu-tag round line-white text-blue view cu-tag-end"></view> 36 <view class="cu-tag round line-white text-blue view cu-tag-end"></view>
@@ -186,6 +186,7 @@ Page({ @@ -186,6 +186,7 @@ Page({
186 this.sellers=res.data.list 186 this.sellers=res.data.list
187 this.makeMarker(); 187 this.makeMarker();
188 this.makeSellers(); 188 this.makeSellers();
  189 + this.debounce(this.makeDefMarker,300)
189 } 190 }
190 }) 191 })
191 192
@@ -248,6 +249,11 @@ Page({ @@ -248,6 +249,11 @@ Page({
248 sellers:this.sellers, 249 sellers:this.sellers,
249 }) 250 })
250 }, 251 },
  252 + makeDefMarker(){
  253 + if(!this.activeSellerID && this.data.markers.length>0){
  254 + this.markertap({markerId:this.data.markers[0].id})
  255 + }
  256 + },
251 markertap(e){ 257 markertap(e){
252 if(!e.markerId || e.markerId=='local') return; 258 if(!e.markerId || e.markerId=='local') return;
253 let markers=this.data.markers 259 let markers=this.data.markers