12345678910111213141516171819202122232425262728293031323334353637383940 |
- <view class="calendar">
- <view class="title flex">
- <view class="flex">
- <!-- <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>
- <view class="icon" bindtap="lastMonth" style="transform:rotate(180deg);">
- <view class="iconfont icon-playfill"></view>
- </view>
- <view class="icon" bindtap="nextMonth">
- <view class="iconfont icon-playfill"></view>
- </view> -->
- <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>
- </view>
- <!-- <view catchtap="openChange" class="flex open">
- <view>{{open?"收起":"展开"}}</view>
- <view style="margin-left:6rpx;font-size:20rpx" class="iconfont icon-{{open?'fold':'unfold'}}"></view>
- </view> -->
- </view>
- <!-- 日历头部 -->
- <view class="flex-around calendar-week">
- <view class="view">日</view>
- <view class="view">一</view>
- <view class="view">二</view>
- <view class="view">三</view>
- <view class="view">四</view>
- <view class="view">五</view>
- <view class="view">六</view>
- </view>
- <!-- (item.year === selectDay.year && item.month === selectDay.month && item.day === selectDay.day) ? 'selectDate':'subtitleColor' -->
- <!-- 日历主体 -->
- <view class="flex-start flex-wrap calendar-main">
- <view wx:for="{{dateList}}" wx:key="dateList" class="day">
- <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}}">
- {{item.day}}
- </view>
- <view class="spot" wx:if="{{(presellOpen!=0 && item.actNum>0) || (presellOpen==0 && (item.actNum>0 || item.waitActNum>0))}}"></view>
- </view>
- </view>
- </view>
|