|
|
|
<view class="calendar">
|
|
|
|
<view class="calendar-title flex-lr">
|
|
|
|
<view class="black-font font30r Semibold calendar-title-date">{{showYearMonth.showyear}}-{{showYearMonth.showmonth<10 ? '0'+showYearMonth.showmonth : showYearMonth.showmonth}}</view>
|
|
|
|
<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">
|
|
...
|
...
|
@@ -14,14 +14,14 @@ |
|
|
|
</view>
|
|
|
|
<view class="calendar-week flex-lr">
|
|
|
|
<block wx:for="{{weeklist}}" wx:key="{{index}}">
|
|
|
|
<view class="week-single gray-font font30r Semibold flex-cc">{{item.weekfont}}</view>
|
|
|
|
<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 ? 'gray-font' : 'font-font'}} calendar-day flex-cc font30r Semibold {{item.istoday ? 'today' : ''}} {{item.isselected ? 'bg-yellow white-font' : ''}}" data-date="{{item.date}}" catchtap="{{item.overdate ? '' : 'selectdate'}}">{{item.mark ? item.mark : item.day}}</view>
|
|
|
|
<view class="{{item.overdate ? 'gray-font' : ('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>
|
...
|
...
|
|