<!--pages/yuezhan/search/index.wxml-->
<view class='container'>
  <view class='top-nav'>
    <!-- <view class='search-con'>
      <view class='search-bar'>
        <text class='iconfont icon-search fix-icon-search'></text>
        <input placeholder="输入关键词" class='search-input' focus="{{focus}}" />
      </view>
    </view> -->
    <view class='yuezhan-con'>
      <view class='yuezhan-nav'>
        <view class="yuezhan-navbar">
          <block wx:for="{{tabs}}" wx:key="index">
            <view id="{{index}}" class="nav-item {{index==activeIndex?'nav-item_on':''}}" bindtap='tabClick'>
              <view class="nav-item_txt">
                {{item}}
              </view>
            </view>
            <view class="navbar__slider" style="width:{{100/tabs.length}}%; left: {{activeIndex * (100/tabs.length)}}%; ">
              <view class='navbar_slider-item'></view>
            </view>
          </block>
        </view>
      </view>
    </view>
  </view>
  <view hidden="{{activeIndex!=0}}">
    <view class="weui-tab__panel">
      <view wx:if="{{locationName}}" class='fdkk-cells'>
        <view class='weui-cell'>
          <view class='weui-cell__bd'>当前城市</view>
        </view>
      </view>
      <view class='city_box_con'>
        <view class='city_box {{cityAction == locationName ? "current_box" : "" }}' bindtap='clickItem' data-name='{{locationName}}'>
          <view>{{locationName||"北京"}}</view>
          <view class='city_box_dec'>
            <text class='city_box_dec_num' >{{exhibitionNum||0}}</text>个展览</view>
        </view>
      </view>

      <view class='fdkk-cells'>
        <view class='weui-cell'>
          <view class='weui-cell__bd'>在展城市</view>
        </view>
      </view>
      <view class='city_box_con'>
        <view class='city_box {{cityAction == item[0] ? "current_box" : "" }} ' wx:for="{{domesticCityList}}" bindtap='clickItem' data-name='{{item[0]}}' wx:key="index">
          <view>{{item[0]}}</view>
          <view class='city_box_dec'>
            <text class='city_box_dec_num'>{{item[1]}}</text>个展览</view>
        </view>
      </view>
    </view>
  </view>
  <view hidden="{{activeIndex!=1}}">
    <view class="weui-tab__panel">
      <view class='fdkk-cells'>
        <view class='weui-cell'>
          <view class='weui-cell__bd'>在展城市</view>
        </view>
      </view>
      <view class='city_box_con'>
        <view class='city_box {{cityAction == item[0] ? "current_box" : "" }} 'wx:for="{{internationalCity}}" bindtap='clickItem' data-name='{{item[0]}}' wx:key="index">
          <view>{{item[0]}}</view>
          <view class='city_box_dec'>
            <text class='city_box_dec_num'>{{item[1]}}</text>个展览</view>
        </view>
      </view>
    </view>
  </view>
</view>