<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 data-index="3" class="{{dateIndex == '3' ? 'dateActive':''}} flex-1" catchTap="activeDate">月</view>
    </view>
    <view class="data-main">
        <block a:if="{{dateIndex=='1'}}">
              <picker onChange="selectYear" value="{{yearIndex}}" range="{{yearArr}}">
                  <view class="dateVal">{{yearArr[yearIndex]}}</view>
              </picker>
            <!-- <text class="dateVal" onTap="selectYear">{{year}}</text> -->
        </block>
        <block a:if="{{dateIndex=='3'}}">
            <text class="dateVal" onTap="selectDate">{{month}}</text>
        </block>
        <block a:if="{{dateIndex=='2'}}">
            <view class="flex-box flex-center-center">
               <picker onChange="selectYear2" value="{{jdYearIndex}}" range="{{yearArr}}">
                  <view class="dateVal">{{yearArr[jdYearIndex]}}</view>
              </picker>
               <!-- <text class="dateVal" onTap="selectDay">{{jdYear}}</text> -->
               <text class="fontColorT" style="margin:0 20rpx;">--</text>
               <picker onChange="setjdji" value="{{jdji}}" range="{{jdArr}}">
                  <view class="dateVal">{{jdArr[jdji]}}</view>
               </picker>
               <!-- <text class="dateVal" onTap="selectDay2">{{jdji}}</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>