
<view class="modular modular-pad">
	<view class="modal-label">
		<view class="calendar-view">
			<text class="left {{(selectDay.year<today.year ||(selectDay.year==today.year&&selectDay.month<=today.month))?'gray':''}}" bindtap="{{(selectDay.year<today.year ||(selectDay.year==today.year&&selectDay.month<=today.month))?'':'lastMonth'}}">上个月</text>
			<view class="center">{{selectDay.month+'月'}}</view>
			<text class="right" bindtap="nextMonth">下个月</text>
		</view>
		<!-- 新版 -->
		<view class="calendar">
			<!-- 日历头部 -->
			<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>
			<!-- 日历主体 -->
			<view class="flex-start flex-wrap calendar-main">
				<view wx:for="{{dateList}}" wx:key="dateList" class="day">
					<view class="bg {{item.dateString==today.dateStr?'subtitleColor':((item.year === selectDay.year && item.month === selectDay.month && item.day === selectDay.day) ? 'selectDate':(item.dateSecond>=todaySecond?'gray':'other-month'))}}" catchtap="{{(item.dateSecond>=todaySecond&&item.count&&item.count>0)?'selectChange':''}}" data-day="{{item.day}}" data-year="{{item.year}}" data-month="{{item.month}}" data-date-string="{{item.dateString}}">
						{{item.dateString==today.dateStr?'今天':item.day}}
						<view class="spot" wx:if="{{item.dateSecond>=todaySecond&&item.count&&item.count>0}}">{{item.count}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</view>
<!-- 推荐 -->
<view class="current-date" wx:if="{{activeData.length>0}}">
	<text>{{selectDay.month+'月'+selectDay.day+'日出发'}}</text>
	<view class="line"></view>
</view>
<view class="">
	<activity data="{{activeData}}" imgPath="{{imgPath}}" />
	<view class='noData' hidden='{{activeData.length > 0 ? true : false}}'><text class="icon icon-info"></text><text>~当前日期暂无活动~</text></view>
</view>