uni-calendar-item.wxml 3.0 KB

1
  1. <view data-event-opts="{{[['tap',[['choiceDate',['$0'],['weeks']]]]]}}" class="{{['uni-calendar-item__weeks-box data-v-dca89f40',(weeks.disable)?'uni-calendar-item--disable':'',(calendar.fullDate===weeks.fullDate&&weeks.isDay)?'uni-calendar-item--isDay':'',(calendar.fullDate===weeks.fullDate&&!weeks.isDay)?'uni-calendar-item--checked':'',(weeks.beforeMultiple)?'uni-calendar-item--before-checked':'',(weeks.multiple)?'uni-calendar-item--multiple':'',(weeks.afterMultiple)?'uni-calendar-item--after-checked':'']}}" bindtap="__e"><view class="uni-calendar-item__weeks-box-item data-v-dca89f40"><block wx:if="{{selected&&weeks.extraInfo}}"><text class="uni-calendar-item__weeks-box-circle data-v-dca89f40"></text></block><text class="{{['uni-calendar-item__weeks-box-text data-v-dca89f40',(weeks.isDay)?'uni-calendar-item--isDay-text':'',(calendar.fullDate===weeks.fullDate&&weeks.isDay)?'uni-calendar-item--isDay':'',(calendar.fullDate===weeks.fullDate&&!weeks.isDay)?'uni-calendar-item--checked':'',(weeks.beforeMultiple)?'uni-calendar-item--before-checked':'',(weeks.multiple)?'uni-calendar-item--multiple':'',(weeks.afterMultiple)?'uni-calendar-item--after-checked':'',(weeks.disable)?'uni-calendar-item--disable':'']}}">{{weeks.date}}</text><block wx:if="{{!lunar&&!weeks.extraInfo&&weeks.isDay}}"><text class="{{['uni-calendar-item__weeks-lunar-text data-v-dca89f40',(weeks.isDay)?'uni-calendar-item--isDay-text':'',(calendar.fullDate===weeks.fullDate&&weeks.isDay)?'uni-calendar-item--isDay':'',(calendar.fullDate===weeks.fullDate&&!weeks.isDay)?'uni-calendar-item--checked':'',(weeks.beforeMultiple)?'uni-calendar-item--before-checked':'',(weeks.multiple)?'uni-calendar-item--multiple':'',(weeks.afterMultiple)?'uni-calendar-item--after-checked':'']}}">{{todayText}}</text></block><block wx:if="{{lunar&&!weeks.extraInfo}}"><text class="{{['uni-calendar-item__weeks-lunar-text data-v-dca89f40',(weeks.isDay)?'uni-calendar-item--isDay-text':'',(calendar.fullDate===weeks.fullDate&&weeks.isDay)?'uni-calendar-item--isDay':'',(calendar.fullDate===weeks.fullDate&&!weeks.isDay)?'uni-calendar-item--checked':'',(weeks.beforeMultiple)?'uni-calendar-item--before-checked':'',(weeks.multiple)?'uni-calendar-item--multiple':'',(weeks.afterMultiple)?'uni-calendar-item--after-checked':'',(weeks.disable)?'uni-calendar-item--disable':'']}}">{{weeks.isDay?todayText:weeks.lunar.IDayCn==='初一'?weeks.lunar.IMonthCn:weeks.lunar.IDayCn}}</text></block><block wx:if="{{weeks.extraInfo&&weeks.extraInfo.info}}"><text class="{{['uni-calendar-item__weeks-lunar-text data-v-dca89f40',(weeks.extraInfo.info)?'uni-calendar-item--extra':'',(weeks.isDay)?'uni-calendar-item--isDay-text':'',(calendar.fullDate===weeks.fullDate&&weeks.isDay)?'uni-calendar-item--isDay':'',(calendar.fullDate===weeks.fullDate&&!weeks.isDay)?'uni-calendar-item--checked':'',(weeks.beforeMultiple)?'uni-calendar-item--before-checked':'',(weeks.multiple)?'uni-calendar-item--multiple':'',(weeks.afterMultiple)?'uni-calendar-item--after-checked':'',(weeks.disable)?'uni-calendar-item--disable':'']}}">{{weeks.extraInfo.info}}</text></block></view></view>