<view class="fixed-top">
  <view class="fixed-tab">
    <view class="tab-box {{venueType == '' ? 'active' : ''}}" bindtap="changeVenueType" data-id="">
      <image src="../../images/venueall.png"></image>
      <view class="tab-title">全部</view>
    </view>
    <view class="tab-box {{item.dictionaryId == venueType  ? 'active' : ''}}" wx:for="{{venueTypeList}}" wx:key="index" bindtap="changeVenueType" data-id="{{item.dictionaryId}}">
      <image src="{{venueUrl}}{{imgRoute}}{{item.dictionaryIcon}}"></image>
      <view class="tab-title">{{item.dictionaryName}}</view>
    </view>
  </view>
  <view class="select-tab">
    <view class="select-box {{orderKey == '' ? 'active' : ''}}" bindtap="changeVenuesOrderBy" data-becheck="">
      默认排序
    </view>
    <view class="select-box {{orderKey == 'apart' ? 'active' : ''}}" bindtap="changeVenuesOrderBy" data-becheck="apart">
      离我最近
    </view>
    <view class="select-box {{orderKey == 'timeDesc' ? 'active' : ''}}" bindtap="changeVenuesOrderBy" data-becheck="timeDesc">
      最新发布
    </view>
    <view class="select-box" bindtap="selectArea" wx:if="{{venueArea == ''}}">
      选择区域
    </view>
    <view class="select-box" bindtap="selectArea" wx:if="{{venueArea != ''}}">
      {{areaName}}
    </view>
  </view>
</view>
<view class="venue">
  <view class="venue-box" wx:for="{{venuesList}}" wx:key="index" bindtap="goDetail" data-id="{{item.venuesInfoId}}">
    <view class="venue-img">
      <image src="{{venueUrl}}{{imgRoute}}{{item.venuePanorama}}"></image>
    </view>
    <view class="venue-info">
      <view class="name-distance">
        <view class="name">{{item.venueName}}</view>
        <view class="distance">距离:{{item.apart == '0' ? '未知' : item.apart}}</view>
      </view>
      <view class="time">营业时间:{{item.businessHours}}</view>
    </view>
  </view>
</view>
<view class="select-area" wx:if="{{selectingArea}}">
  <view class="area-container">
    <view class="area-box {{'' == venueArea?'active': ''}}" bindtap="loadAll">全部</view>
    <view class="area-box {{item.areaId == venueArea?'active': ''}}" wx:for="{{areaList}}" wx:key="index" data-area="{{item.areaId}}" data-areaName="{{item.areaName}}" bindtap="changeArea">{{item.areaName}}</view>
  </view>
</view>