<view class="all-date">
  <view class="data-tier" catchTap="onClose"></view>
  <view class="date-header {{isShow?'showPop':''}}" >
    <view class="flex-box selectDateType">
      <view data-index="1" class="{{dateIndex == 1 ? 'dateActive':''}} flex-1" catchTap="activeDate">月</view>
      <view data-index="2" class="{{dateIndex == 2 ? 'dateActive':''}} flex-1" catchTap="activeDate">日</view>
    </view>
    <view class="data-main">
        <block a:if="{{dateIndex==1}}">
            <text class="dateVal" onTap="selectDate">{{month}}</text>
        </block>
        <block a:else>
            <view class="flex-box flex-center-center">
               <text class="dateVal" onTap="selectDay">{{startDay}}</text>
               <text class="fontColorT" style="margin:0 20rpx;">至</text>
               <text class="dateVal" onTap="selectDay2">{{endDay}}</text>
            </view>
        </block>
    </view>
    <view class="flex-box date-btn">
      <view class="flex-1" catchTap="onClose">取消</view>
      <view class="flex-1" catchTap="onConfirm">确定</view>
    </view>
  </view>
  <view class="meng" catchTap="onClose"></view>
</view>