active.wxml 1.4 KB
<view class='index_newbox'>

  <view class='tabbar'>
    <view class='tabbar_item' data-id='1' bindtap='clicktab'>
      <picker range='{{city_arr}}' bindchange='selecteCtiy'>
        <view class="title {{clickIndex?'titleActive':''}}">
          {{city}}
        </view>
      </picker>
    </view>
    <view class='tabbar_item' data-id='2' bindtap='clicktab'>
      <picker range='{{class_arr}}' bindchange='selecteClass'>
        <view class="title {{clickIndexs?'titleActive':''}}">
          {{category}}
        </view>
      </picker>
    </view>
  </view>
  <view>
    <view class='new_box'>
      <navigator class='new_cell' wx:for='{{activity}}' wx:key url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
        <view class='new_cellmain'>
          <view class='new_img'>
            <image src='{{item.thumbnail}}' mode="aspectFill"> </image>
          </view>
          <view class='new_title'>{{item.activity_name}}</view>
          <view class='title_box'>
            <view class='wz_box'>
              <image src='/imgs/dizhi@2x.png' />
              <text>{{item.province_name}}</text>
            </view>
            <view class='word'>{{item.type_name}}</view>
          </view>
          <view>{{item.time}}</view>
        </view>
      </navigator>
       <view class='empty' wx:if='{{activity.length == 0}}'>暂无数据,请去添加</view>
    </view>
  </view>
</view>