eventCalendar.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class="calendar">
  2. <view class="title flex">
  3. <view class="flex">
  4. <!-- <picker value="{{selectDay.year+'-'+selectDay.month}}" bindchange="editMonth" mode="date" fields="month" class="year-month">{{selectDay.year}}.{{selectDay.month>9?selectDay.month:"0"+selectDay.month}}</picker>
  5. <view class="icon" bindtap="lastMonth" style="transform:rotate(180deg);">
  6. <view class="iconfont icon-playfill"></view>
  7. </view>
  8. <view class="icon" bindtap="nextMonth">
  9. <view class="iconfont icon-playfill"></view>
  10. </view> -->
  11. <view class="'monthList-item' {{(selectedMonth==index)?'selected-month':''}}" wx:for="{{monthList}}" wx:key="*this" data-index="{{index}}" data-item="{{item.date}}" bindtap="editMonth">{{item.month}}月</view>
  12. </view>
  13. <!-- <view catchtap="openChange" class="flex open">
  14. <view>{{open?"收起":"展开"}}</view>
  15. <view style="margin-left:6rpx;font-size:20rpx" class="iconfont icon-{{open?'fold':'unfold'}}"></view>
  16. </view> -->
  17. </view>
  18. <!-- 日历头部 -->
  19. <view class="flex-around calendar-week">
  20. <view class="view">日</view>
  21. <view class="view">一</view>
  22. <view class="view">二</view>
  23. <view class="view">三</view>
  24. <view class="view">四</view>
  25. <view class="view">五</view>
  26. <view class="view">六</view>
  27. </view>
  28. <!-- (item.year === selectDay.year && item.month === selectDay.month && item.day === selectDay.day) ? 'selectDate':'subtitleColor' -->
  29. <!-- 日历主体 -->
  30. <view class="flex-start flex-wrap calendar-main">
  31. <view wx:for="{{dateList}}" wx:key="dateList" class="day">
  32. <view class="bg {{(item.actNum!=undefined && item.waitActNum!=undefined)?((presellOpen!=0 && item.actNum>0) || (presellOpen==0 && (item.actNum>0 || item.waitActNum>0))?'subtitleColor':'gray'):'other-month'}} {{(item.year === selectDay.year && item.month === selectDay.month && item.day === selectDay.day) ? 'selectDate':''}}" catchtap="selectChange" data-actNum="{{item.actNum}}" data-waitActNum="{{item.waitActNum}}" data-day="{{item.day}}" data-year="{{item.year}}" data-month="{{item.month}}" data-date-string="{{item.dateString}}">
  33. {{item.day}}
  34. </view>
  35. <view class="spot" wx:if="{{(presellOpen!=0 && item.actNum>0) || (presellOpen==0 && (item.actNum>0 || item.waitActNum>0))}}"></view>
  36. </view>
  37. </view>
  38. </view>