<!--index.wxml-->
<import src="../../common/component/wxParse/wxParse.wxml" />
<view class='container'>
  <view class='nav-con'>
    <view class='yuezhan-nav'>
      <view class="yuezhan-navbar">
        <!-- <block wx:for="{{navItem}}" wx:key="index">
          <view id='{{index}}' data-tag="{{item.tag}}" class="nav-item {{index==activeIndex?'nav-item_on':''}}" bindtap='tabClick'>
            {{item.title}}
          </view>
        </block> -->
        <!-- <text class='iconfont icon-search' bindtap='to_search'></text> -->
        <component-search></component-search>
      </view>
    </view>
  </view>
  <swiper wx:if="{{commodityImgs.length>0}}" class='swiper-style' circular="true" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
    <swiper-item wx:for="{{commodityImgs}}" bindtap='to_pay' data-description="{{item.url}}" data-pageType="{{item.pageType}}" data-urlType="{{item.urlType}}" data-hasProduct="{{item.hasProduct}}" data-hasPay="{{item.hasPay}}" data-imageUrl="{{item.imageUrl}}" data-relayUrl='{{item.relayUrl}}' data-url="{{item.url}}" data-id="{{item.id}}" wx:key="{{item.id}}" data-productLink="{{item.productLink || item.url}}">
      <image mode="aspectFill" src="{{imgServer+item.imageUrl||defaultImg}}" class="yuezhan-img" />
    </swiper-item>
  </swiper>
  <view class='yuezhan-navigator'>
    <view class='navigator-title'>推荐展览</view>
    <navigator hover-class='none' url="{{item.online ? ('../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||item.online}}" class="{{item.online == 1 ? 'new-fdkz-card-tag' : 'fdkz-card-tag'}}  {{item.statusText=='展览中'||item.statusText==''?'':item.statusText=='已结束'?'fdkz-card-tag-end':item.statusText=='热门'?'':'fdkz-card-tag_coming'}}">
          <text class='fdkz-card-tag-txt'>{{item.online == 1 ? '线上看展' : 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>
          <!-- <image wx:if="{{item.hasProduct}}" mode='widthFix' class='fdkzImg' src='{{testImg}}'></image> -->

          <!-- <navigator url='./index' hover-stop-propagation="true" hover-class='none' data-idx="{{index}}" data-type="{{item.hasCollect}}" data-id="{{item.id}}" class="iconfont icon-like {{item.hasCollect?'icon-like_active':''}}" catchtap='addLike' style='float:right'></navigator> -->
        </view>
        <view class='fdkz-card-info-date'>
          <view class='left'>
            <view class='date-txt'>{{item.pavilionName || ''}}</view>
            <view class='date-day'>{{item.online == 1 ? '' : (item.statusTextDesp || '')}}</view>
          </view>
          <view class='right'>
            <view class="date-icon iconfont  {{item.online == 0 ?'iconweizhi':'iconredu'}}"></view>
            <text class='distance'>{{item.online == 0 ? (item.distance || 0 )+' km' : item.pv }}</text>
          </view>
          <!-- <view class='changguan_title'>
            <text class='iconfont icon-comment'>   {{item.commentCount}}</text>
            <text class='iconfont icon-view'>   {{item.pv}}</text> -->
          <!-- <text class='iconfont icon-empty_like'>   {{item.collectionsCount}}</text> -->

          <!-- <text  data-idx="{{index}}" data-type="{{item.hasCollect}}" data-id="{{item.id}}" class="iconfont  {{item.hasCollect?'icon-like':'icon-empty_like'}}" >   {{item.collectionsCount}}</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>

  <view class="recommend" wx:if="{{showRecommend}}">
    <view class="recommendcon">
      <swiper class="sw" wx:if="{{bombList.length>0}}" circular="true" autoplay="{{false}}" interval="{{interval}}" duration="{{duration}}">
        <!-- <swiper-item class="sw-item" wx:for="{{bombList}}" bindtap='to_pay' data-description="{{item.description}}" data-pageType="{{item.pageType}}" data-urlType="{{item.urlType}}" data-hasProduct="{{item.hasProduct}}" data-hasPay="{{item.hasPay}}" data-imageUrl="{{item.imageUrl}}" data-relayUrl='{{relayUrl}}' data-url="{{item.url}}" data-id="{{item.id}}" wx:key="{{item.id}}" data-productLink="{{item.productLink}}"> -->
        <swiper-item class="sw-item" wx:for="{{bombList}}" bindtap='navigatorBomb' data-description="{{item.description}}" data-pageType="{{item.pageType}}" data-urlType="{{item.urlType}}" data-hasProduct="{{item.hasProduct}}" data-hasPay="{{item.hasPay}}" data-imageUrl="{{item.imageUrl}}" data-relayUrl='{{relayUrl}}' data-url="{{item.url}}" data-id="{{item.id}}" wx:key="{{item.id}}" data-productLink="{{item.productLink}}">
          <view class="sw-itemcon">
            <image mode="aspectFill" src="{{item.imageUrl||defaultImg}}" class="cover" />
            <view class="info">
              <view class="card-info-title"><text class="fdkz-card-name">{{item.name}}</text> <text class="tag fdkz-card-tag">精品</text></view>
              <text class="exhibition" wx:if="{{item.pavilionName}}">{{item.pavilionName}}</text>
            </view>
            <view class="go_view">去看展</view>
          </view>
        </swiper-item>
      </swiper>
      <image bindtap="hideRecommend" class="close" src="{{closeImg}}" mode="aspectFill" />
    </view>
  </view>
</view>