<!--pages/duty/index/index.wxml-->
<title-bar title="工作日志"></title-bar>
<!-- tab菜单 -->
<scroll-view scroll-x class="bg-white nav">
  <view class="flex text-center">
    <view class="cu-item flex-sub {{index==currentIndex?'text-blue cur':''}}" wx:for="{{tabs}}" wx:key catchtap="tabSelect" data-index="{{index}}">
      {{item.lab}}
    </view>
  </view>
</scroll-view>
<scroll-view scroll-y style="height: calc(100vh - 90rpx - {{topBarH}}px);" refresher-enabled bindrefresherrefresh="refresh" bindscrolltolower="getList" lower-threshold="300" refresher-triggered="{{freshIng}}">
  <picker wx:if="{{currentIndex!=0}}" mode="date" value="{{dateFilter}}" bindchange="bindDateChange">
    <view class="picker">
      选择时间: {{dateFilter}}
    </view>
  </picker>
  <view catchtap="toDetail" data-item="{{item}}" class="item h-div" wx:for="{{list}}">
    <view class="content">
      <view class="title">{{item.title}}</view>
      <view class="des">{{item.detail}}</view>
      <view class="time">时间：{{item.createTime}}</view>
    </view>
  </view>
  <empty wx:if="{{list.length==0}}" />
  <view class="space"></view>
</scroll-view>