<!--packageE/member/component/month/month.wxml-->
<view class="month">
  <view class="monthHeader">
    <icon class="iconfont icon-back" catchtap="prevYear"></icon>
    <view class="year">{{currentSelectedYear}}年</view>
    <icon class="iconfont icon-back" catchtap="nextYear" wx:if="{{currentSelectedYear!=maxYear}}"
      style="display:inline-block;transform:rotate(180deg);"></icon>
  </view>
  <view class="monthContainer">
    <view class="monthItem" wx:for="{{monthList}}" wx:key="key" wx:if="{{monthList}}">
      <view class="span"
        class="{{item.enabled==true ? 'enabled' : ''}}{{ item.num==currentMonth && currentSelectedYear==currentYear ? 'active' : ''}}"
        catchtap="selectedMonth" data-item="{{item}}">{{item.num}}月</view>
    </view>
  </view>
</view>