<!--index.wxml-->
<view class='wrapper'>
<drop-down navItems="{{navItem}}" activeType="{{activeType}}" activeDist="{{activeDist}}" exhiNum="{{exhiNum}}" class="drop-con" bind:closeMask="onIsclose" bind:activeItem="getActiveItem" style="height:{{isShow?'100%':'0'}}"></drop-down>
<view class='container'>
  <view class='nav-con'>
    <view class='yuezhan-nav'>
      <view class="search-navbar">
        <component-search></component-search>
      </view>
      <view class="yuezhan-navbar">
        <view bindtap='to_search' class='nav-tag nav-active'>{{locationName}}
          <text class='iconfont iconpaixuxialacaidan'></text>
        </view>
        <view class='nav-right'>
          <view bindtap='showDrop' data-id='dist' data-test='{{activeDist}}' class='nav-tag'>{{activeDist}}
            <text data-id='dist' class='iconfont iconpaixuxialacaidan'></text>
          </view>
          <view bindtap='showDrop' data-id='type' data-test='{{activeType}}' class='nav-tag'>{{activeType}}
            <text data-id='type' class='iconfont iconpaixuxialacaidan'></text>
          </view>
        </view>
      </view>
    </view>
  </view>

  <view class='fdkz-card-warpper'>
    <navigator hover-class='none' url="{{item.hasProduct ? ('../wv_page/index?link='+item.product.link+'&id='+item.id+'&imageUrl='+item.imageUrl):('../zl_detail/index?id='+item.id+'&imageUrl='+item.imageUrl)}}" wx:for="{{exhibitionList}}" wx:key="index" class='fdkz-card'>
      <view class='fdkz-card-img'>
        <view wx:if="{{item.statusText}}" class="fdkz-card-tag {{item.statusText == '即将开始' ? 'fdkz-card-tag-start' : ''}} {{item.statusText == '已结束' ? 'fdkz-card-tag-end' : ''}}">
          <text class='fdkz-card-tag-txt'>{{item.statusText}}</text>
        </view>
        <image src="{{imgServer+item.imageUrl||defaultImg}}" mode="aspectFill" class='item-img'></image>
      </view>
      <view class='fdkz-card-info'>
        <view class='fdkz-card-info-title'>
          <view class='title-txt'>
            {{item.name}}
          </view>
        </view>
        <view class='fdkz-card-info-date'>
          <view class='date-txt'>{{item.pavilionName}}</view>
          <view class='changguan_title'>
            <text class='iconfont iconweizhi'> {{item.distance||0}} km</text>
          </view>
        </view>
        <text></text>
      </view>
    </navigator>
  </view>

  <view class="weui-loadmore" wx:if="{{loading}}">
    <view class="weui-loading"></view>
    <view class="weui-loadmore__tips">正在加载</view>
  </view>
  <view class='noDataClass' hidden='{{exhibitionList.length>0||loading}}'>
    <image class='no_exhibitionImg' mode='aspectFit' src='{{noExhibitionImg}}'></image>
    <view class="tips">
      暂无展会信息
    </view>
    <view class='locationBtn' wx:if='{{getLocationBtn&&activeIndex==1}}'>
      <button type="warn" open-type='openSetting'>获取地理位置</button>
    </view>
  </view>

</view>

<view wx:if="{{showConfirm}}" class='comfirmDialog'>
  <view class='comfirmDialog_content'>
    <view class='comfirmDialog_content_tip'>
      <text>此处需要请求您的位置，请授予我们请求权限~</text>
    </view>
    <button type="warn" open-type='openSetting' bindopensetting="closeDialog">确定</button>
  </view>
</view>

  <view class='hot-search-con' wx:if="{{exhiNum <= 3 }}">
    <view class='hot-search'>
      <view class='hot-search-title'>
        <text class='hot-search-title-txt'>热门推荐</text>
      </view>
      <!-- <view class='hot-tag'>
        <text wx:for="{{keyword}}" wx:key="index" bindtap='keywordSearch' data-keyword='{{item.dataValue}}' class='hot-tag-item'>{{item.dataValue}}</text>
      </view> -->
      <view class='componentList'>
        <block wx:for="{{ExhibitionPopular}}" wx:key="index">
            <component-list
              hasProduct="{{item.hasProduct}}"
              hasPay="{{item.hasPay}}"
              sceneId="{{item.id}}"
              imageUrl="{{item.imageUrl}}"
              name="{{item.name}}"
              pavilionName="{{item.pavilionName}}"
              statusTextDesp="{{item.statusTextDesp}}"
              distance="{{item.distance}}"
              online="{{item.online}}"
              scenePv="{{item.pv}}"
              link="{{item.product.showLink}}"
            ></component-list>
          </block>
      </view>
    </view>
  </view>
</view>