ren-calendar.wxml
1.5 KB
<view class="calendar-wrapper data-v-2e42c8f8"><block wx:if="{{headerBar}}"><view class="header data-v-2e42c8f8"><u-icon vue-id="32f55602-1" color="#969799" name="arrow-left" data-event-opts="{{[['^click',[['changeMonth',['pre']]]]]}}" bind:click="__e" class="data-v-2e42c8f8" bind:__l="__l"></u-icon><view class="dateText data-v-2e42c8f8">{{y+'年'+$root.m0+'月'}}</view><u-icon vue-id="32f55602-2" color="#969799" name="arrow-right" data-event-opts="{{[['^click',[['changeMonth',['next']]]]]}}" bind:click="__e" class="data-v-2e42c8f8" bind:__l="__l"></u-icon></view></block><view class="week data-v-2e42c8f8"><block wx:for="{{weekDay}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="week-day data-v-2e42c8f8">{{item}}</view></block></view><view class="{{['content','data-v-2e42c8f8',(!monthOpen)?'hide':'']}}" style="{{'height:'+(height)+';'}}"><view class="days data-v-2e42c8f8" style="{{'top:'+(positionTop+'rpx')+';'}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-2e42c8f8"><view data-event-opts="{{[['tap',[['selectOne',['$0','$event'],[[['dates','',index]]]]]]]}}" class="{{['day','data-v-2e42c8f8',(choose==item.$orig.year+'-'+item.$orig.month+'-'+item.$orig.date&&item.$orig.isCurM)?'choose':'',(!item.$orig.isCurM)?'nolm':'',(item.m1)?'today':'',(item.m2)?'isWorkDay':'']}}" bindtap="__e">{{''+item.m3+''}}</view><block wx:if="{{item.m4}}"><view class="markDay data-v-2e42c8f8"></view></block></view></block></view></view></view>