<!-- packageC/Myshaky/sort/sort.wxml -->
<view class="topBox">
  <view class="searchBox">
    <view class="searchDizhi" catchtap="goDw">
      <icon class="iconfont icon-service_n" style="  margin-top: -5rpx;"></icon>
      <view class="city">{{city}}</view>
      <van-icon name='arrow-down'></van-icon>
    </view>
    <view class="searchInput" catchtap="goSearch">
      <icon class="iconfont icon-sousuo fontOne"></icon>
      <input placeholder="搜索你喜欢的活动" class="inputTitle" bindinput="inpText" disabled="true"></input>
    </view>
    <!-- <view class="bbtn" bindtap="goSearch">搜索</view> -->
  </view>
  <view class="listBox" wx:if="{{categories.length > 1}}">
    <view class="listLeft">
      <scroll-view class="swiperBox" scroll-x='true' style="width:662rpx" scroll-into-view="{{toView}}">
        <view class="a1" wx:for='{{categories}}' wx:key="index" id="item{{index}}">
          <view class="lis" id="{{item.sort}}" data-kid='{{item.id}}' data-ind="{{index}}" bindtap="tapNav" >
            {{item.calssify_title}}
            <view class="line" wx:if='{{curr == index}}'></view>
          </view>
        </view>
      </scroll-view>
    </view>
    <view class="listDown" bindtap="changeNow">
      <van-icon name='arrow-up' size="44rpx" wx:if='{{upNow}}'></van-icon>
      <van-icon name='arrow-down' size="44rpx" wx:else></van-icon>
    </view>
  </view>
  <view class="box-down" wx:if='{{upNow}}'>
    <view class="boxList">
      <view class="boxLi" wx:for='{{categories}}' id="{{item.id}}" catchtap="insearchCurr" data-item="{{item}}">
        {{item.calssify_title}}
      </view>
    </view>
    <view class="mbox"></view>
  </view>
</view>
<view class="{{categories.length > 1?'bottomBox':'two_bottomBox'}}">
  <view class='loveList' wx:for="{{listData}}" wx:key='index' id="{{item.id}}" bindtap="goxq">
    <view class='listLefts'>
      <image mode="aspectFill" src="{{item.thumb}}"></image>
      <!-- 报名状态 -->
      <view class='listStatus' wx:if="{{nowTime > item.registration_time && nowTime < item.registration_end_time}}">
        报名中
      </view>
      <view class='listStatus' wx:if="{{nowTime < item.registration_time }}">待开始</view>
      <view class='listStatus' wx:if="{{nowTime > item.registration_end_time}}">报名结束</view>
    </view>
    <view class='listRight'>
      <view class='dy'>
        <view class='de'>{{item.title}}</view>
        <view class='listTime'>
          <icon class='iconfont icon-service_j fontTwo'></icon>
          <view class='listext'>{{item.start_time}}开始</view>
        </view>
        <view class='ds'>
          <view wx:if="{{item.cash != '0.00'}}">
            <view class='ds1'>￥</view>
            <view class='ds2'>{{item.cash}}</view>
          </view>
          <view wx:else>
            <view>免费</view>
          </view>
          <view class='dsi'>
            <view class='dw'>{{item.city_name}}</view>
            <view class='dq'>|</view>
            <view class='dl'>{{item.address}}</view>
          </view>
        </view>
      </view>
    </view>
  </view>
  <view wx:if="{{listData.length == 0}}" class="LoveStatus" >
    暂无活动
  </view>
</view>