<van-tabs sticky color='var(--assist)' title-active-color='var(--assist)' bind:change="tabsClick" title-inactive-color='#999'>
    <van-tab title="一事一报" />
    <van-tab title="一事多报" />
    <!-- <van-tab title="提报管理" /> -->
</van-tabs>
<van-dropdown-menu active-color='var(--assist)' class="dropdown">
    <van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bindchange='dropdownChange1' bindtap="Dateclick" />
    <van-dropdown-item value="{{ value2 }}" options="{{ option2 }}" bindchange='dropdownChange2' />
</van-dropdown-menu>
<van-action-sheet show="{{  timeRangeShow }}" bind:close='timeRangeClose'>
    <view class="detePickerHeader">
        <text catchtap="toSeeAll">所有日期</text>
        <view class="type" catchtap="selectDateType">
            <view class="option {{whereType.value=='begdate'?'active-op':''}}" data-name="begdate">
                <view data-name="begdate">开始</view>
                <view data-name="begdate" class="time">{{whereType.list.begdate||'开始时间'}}</view>
            </view>
            <view class="option {{whereType.value=='enddate'?'active-op':''}}" data-name="enddate">
                <view data-name="enddate">结束</view>
                <view data-name="enddate" class="time">{{whereType.list.enddate||'结束时间'}}</view>
            </view>
        </view>
        <text catchtap="determineScope">确定</text>
    </view>
    <My_datePicker bind:getDate='getDate' />
</van-action-sheet>
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view style="height: 10rpx;" />
    <view class="unread">总共{{total}}个</view>
    <navigator url="#" class="my-card item" wx:for="{{list}}" data-item="{{item}}" bindtap="toDetails">
        <view class="first-line">
            <view class="line-1">{{item.title}}</view>
            <text wx:if="{{item.ishistory=='0'}}" style="color: #FA8C16;" class="time">进行中</text>
            <text wx:else class="time">已结束</text>
        </view>
        <view class="state">
            <view class="explian">
                <view>有效期：{{item.begdate}} ~ {{item.enddate}}</view>
                <view>已提报：{{item.submitcount}}</view>
            </view>
            <view class="but">
                <van-button wx:if="{{item.isRead==1}}" custom-class='base'>已读</van-button>
                <van-button wx:else custom-class='base unread'>未读</van-button>
            </view>
        </view>
    </navigator>
    <My_empty wx:if="{{!list.length}}" />
    <view style="height: 80px;" />
</Yl_ListBox>