<popup show="{{show}}" disableScroll onClose="onPopupClose">
  <view class="date-picker-content">
    <view class="content-show">
      <view class="show-item show-item-left {{tapIndex === 'startTime' ? 'show-item-active' : ''}}" onTap="onTapTimeIndex" data-type="startTime">
        <view>开始于</view>
        <view class="show-item-time">{{startTime}}</view>
      </view>
      <view class="show-item show-item-right {{tapIndex !== 'startTime' ? 'show-item-active' : ''}}" onTap="onTapTimeIndex" data-type="endTime">
        <view>结束于</view>
        <view class="show-item-time">{{endTime}}</view>
      </view>
    </view>
    <view class="content-change">
      <picker-view  value="{{tapIndex==='startTime'?startValue:endValue}}" onChange="onPickerChange">
        <picker-view-column>
          <view a:for="{{years}}" a:key="{{index}}">{{item}}</view>
        </picker-view-column>
        <picker-view-column>
          <view a:for="{{months}}" a:key="{{index}}">{{item}}</view>
        </picker-view-column>
      </picker-view>
    </view>
    <view a:if="{{showAttentionOne}}" class="content-attention">最长可查找时间跨度6个月的记录</view>
    <view a:if="{{showAttentionTwo}}" class="content-attention">结束时间不能早于开始时间</view>
    <view a:if="{{!showAttentionOne && !showAttentionTwo}}" class="content-normal"></view>
    <view class='content-btn'>
      <button class="btn-primary" onTap="onReset">重置</button>
      <button class="btn-primary" onTap="onSure" type="primary">确定</button>
    </view>
  </view>
</popup>
