<!--pages/clock/clock-tongji/calendar/calendar.wxml-->
<wxs src="./calendar.wxs" module="calendar"></wxs>
<view class='calendar'>
  <view class="title">
    <view class='title-item' wx:for="{{weeks}}" wx:key="index">
      <text>{{item}}</text>
    </view>
  </view>
  <view class="calendar-content">
    <view class='calendar-item {{item.current ? "":"text-gray"}} {{selectedIndex === index ? "text-red":""}}'
      wx:for="{{calendarDays}}" wx:key="index" data-index='{{index}}' bindtap='clickDate'>
      <text>{{item.date}}</text>
      <block wx:if="{{item.current}}">
        <view class="point {{calendar.getClass(list[item.date - 1])}}"></view>
      </block>
    </view>
  </view>

</view>