calendar.wxml
1.46 KB
<view class="calendar">
<view class="calendar-title flex-lr">
<view class="black-font font32r calendar-title-date">{{showYearMonth.showyear}}-{{showYearMonth.showmonth<10 ? '0'+showYearMonth.showmonth : showYearMonth.showmonth}}</view>
<view class="calendar-title-tab-list flex-rr">
<block wx:if="{{showprev}}">
<view class="calendar-title-tab-cover calendar-title-prev-cover" bindtap="prevmonth">
<view class="calendar-title-prev calendar-title-tab"></view>
</view>
</block>
<view class="calendar-title-tab-cover calendar-title-next-cover" bindtap="nextmonth">
<view class="calendar-title-next calendar-title-tab"></view>
</view>
</view>
</view>
<view class="calendar-week flex-lr">
<block wx:for="{{weeklist}}" wx:key="{{index}}">
<view class="week-single gray-font font28r flex-cc color-{{index%6}}">{{item.weekfont}}</view>
</block>
</view>
<view class="calendar-content">
<block wx:for="{{daylist}}" wx:for-item="itemlist" wx:for-index="indexlist" wx:key="{{indexlist}}">
<view class="calendar-week-day flex-lr">
<block wx:for="{{itemlist.list}}" wx:key="{{index}}">
<view class="{{item.overdate ? 'txt-e5e5e5' : ('font-font color-'+(index%6))}} calendar-day flex-cc font30r {{item.istoday ? 'today' : ''}} {{item.isselected ? 'bg-yellow white-font' : ''}}" data-date="{{item.date}}" catchtap="{{item.overdate ? '' : 'selectdate'}}">{{item.mark ? item.mark : item.day}}</view>
</block>
</view>
</block>
</view>
</view>