<!--pages/task/index/index.wxml-->
<title-bar title="工作任务"></title-bar>
<!-- 筛选 -->
<scroll-view scroll-x class="bg-white nav">
  <view class="flex text-center">
    <view class="cu-item flex-sub {{index==curTab?'text-blue cur':''}}" wx:for="{{tabs}}" wx:key catchtap="tabSelect" data-index="{{index}}">
      {{item.lab}}
    </view>
  </view>
</scroll-view>
<!-- 搜索 -->
<view class="cu-bar search">
  <view class="search-form round">
    <text class="cuIcon-search"></text>
    <input type="text" placeholder="请输入关键字" confirm-type="search"></input>
  </view>
</view>
<view class="filter">
  <picker mode="date" value="{{dateFilter}}" bindchange="bindDateChange">
    <view class="picker">
      开始时间: {{dateFilter}}
    </view>
  </picker>
  <view class="line"></view>
  <picker mode="date" value="{{dateFilter}}" bindchange="bindDateChange">
    <view class="picker">
      结束时间: {{dateFilter}}
    </view>
  </picker>
</view>
<scroll-view refresher-enabled scroll-y style="height: calc(100vh - 280rpx - {{topBarH}}px);">
  <!-- 列表 -->
  <view class="item-bg" wx:for="{{list}}">
    <view catchtap="toDetail" data-item="{{item}}" class="item">
      <view class="head h-div v-center">
        <view class="single"></view>
        <view wx:if="{{item.type == 0}}" class="title ellipsis">常规工作</view>
        <view wx:if="{{item.type == 1}}" class="title ellipsis">督办工作</view>
      </view>
      <view class="tv">关于某某某某某某某某某某某项工作的任务要求,关于某某某某某某某某工作的任务要求。
      </view>
      <image class="bottom-img" src="/images/task/icon-bottom-line.png" mode="aspectFill" />
    </view>
  </view>
  <view class="space"></view>
</scroll-view>