<!-- <wxs module="filter" src="tool.wxs"></wxs> -->
<view class='wrap'>
    <view>
        <view class='date-show'>
            <image src='/images/jiantou-left.png' bindtap='lastMonth' mode='aspectFit'></image>
            <view>{{year}}年{{month}}月</view>
            <image src='/images/jiantou.png' bindtap='nextMonth' mode='aspectFit'></image>
        </view>
    </view>
    <view class='header'>
        <view wx:for='{{date}}' class='{{(index == todayIndex) && isTodayWeek ? "weekMark" : ""}}'>{{item}}<view></view></view>
    </view>
    <view class='date-box'>
        <view wx:for='{{dateArr}}' class='{{isToday == item.isToday ? "nowDay" : ""}}' data-date='{{item.isToday}}'>
            <view class='date-head'>
                <view bindtap="check" data-year='{{year}}' data-month='{{month}}' data-day="{{item.dateNum}}">{{item.dateNum}}</view>
            </view>
            <!-- <view class='date-weight'>{{item.weight}}</view> -->
        </view>
    </view>
</view>
<view class="list">
  <block wx:for='{{dataList}}' wx:key='{{index}}'>
    <view class="line">
      <view class="line-top">
        <view class="line-ps" style="background:#3e61fd"></view>
        <view class="line-data">{{item.openTime}}</view>
        <view class="line-title">{{item.state==1?'归寝':'出寝'}}</view>
      </view>
      <view class="line-bottom">
        <image src="/images/dizhi.png"></image>
        <view>{{item.name}}</view>
      </view>
    </view>
  </block>
  <view class="nodata">{{dataList.length==0?'暂无数据':''}}</view>
</view>