lunc-calendar.wxml 2.6 KB

1
  1. <view class="lunc-calendar"><view class="header"><block wx:if="{{showChangeBtn&&!isshowPrev}}"><text class="head-icon head-pre-month nocheck"></text></block><block wx:if="{{showChangeBtn&&isshowPrev}}"><text data-event-opts="{{[['tap',[['changeMonthOrWeek',['prev']]]]]}}" class="head-icon head-pre-month" bindtap="__e"></text></block><text class="head-month">{{selDate.year+'年'+(selDate.month<10?'0'+selDate.month:selDate.month)+'月'}}</text><block wx:if="{{showChangeBtn}}"><text data-event-opts="{{[['tap',[['changeMonthOrWeek',['next']]]]]}}" class="head-icon head-next-month" bindtap="__e"></text></block><block wx:if="{{showToday}}"><text data-event-opts="{{[['tap',[['goToday',['$event']]]]]}}" class="go-to-today" bindtap="__e">今天</text></block></view><view class="{{['week-area',firstDayOfWeek=='sunday'?'week-tit':'']}}"><block wx:for="{{weekArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><text class="week-font">{{getWeekType+''+item}}</text></block></view><swiper class="calendar-data" style="{{'height:'+(shrinkType?'112rpx':'532rpx')+';'}}" current="{{shrinkType?tranCurrent:tranIndex}}" circular="{{true}}" duration="{{tranDuration}}" data-event-opts="{{[['change',[['swiperChange',['$event']]]],['animationfinish',[['swiperEndChange',['$event']]]]]}}" bindchange="__e" bindanimationfinish="__e"><block wx:for="{{$root.l2}}" wx:for-item="a" wx:for-index="i" wx:key="i"><swiper-item class="swiper-item swiper-prev-item"><block wx:if="{{showMonthBg}}"><text class="month-bg">{{getMontBg}}</text></block><view class="{{['month-days',shrinkType?'item-week':'']}}"><block wx:for="{{a.l1}}" wx:for-item="b" wx:for-index="j" wx:key="j"><view class="week-days"><block wx:for="{{b.l0}}" wx:for-item="c" wx:for-index="k" wx:key="k"><view data-event-opts="{{[['tap',[['clickDay',['$0'],[[['getAllData','',i],['','',j],['','',k]]]]]]]}}" class="day" bindtap="__e"><view class="{{['day-info',c.$orig.dayClass,c.m0,c.$orig.dayType!='normal'&&'un-month',c.g0?'day-infoa':'']}}"><text class="day-solar">{{c.$orig.day}}</text><block wx:if="{{c.g1}}"><block wx:if="{{c.g2}}"><text class="day-sign"><block wx:if="{{c.$orig.isHoliday}}"><block>{{c.$orig.dayLunar}}</block></block><block wx:else><block>{{c.$orig.sign[0].title}}</block></block></text></block><block wx:else><text class="day-lunar">{{c.$orig.dayLunar}}</text></block></block></view></view></block></view></block></view></swiper-item></block></swiper><block wx:if="{{showShrink}}"><view data-event-opts="{{[['tap',[['changeShrink',['$event']]]]]}}" class="shrink" bindtap="__e"><image class="{{['shrink-img',shrinkType?'shrink-open':'shrink-close']}}" src="{{upimg}}"></image></view></block></view>