<popup show="{{isShow}}" position="bottom" disableScroll="{{ true }}" onClose="cancel">
  <view class="adc-datetime-picker">
    <view class="title">请选择起止日期</view>
    <view class="range">
      <view onTap="switchTab" data-index="{{0}}" class="range-item {{ tabIndex === 0 ? 'activity' : ''}}">{{startTime ? `${startTime}` : '开始日期'}}</view>
      <view onTap="switchTab" data-index="{{1}}" class="range-item {{ tabIndex === 1 ? 'activity' : ''}}">{{endTime ? `${endTime}`: '结束日期'}}</view>
    </view>

    <mas-adc-picker
    a:if="{{tabIndex === 0}}"
      columns="{{columns}}"
      onChange="changeHandle"
    />
    <mas-adc-picker
    a:if="{{tabIndex === 1}}"
      columns="{{columns}}"
      onChange="changeHandle"
    />
    <view a:if="{{hint}}" class="tip">{{hint}}</view>
    <view a:if="{{errorText}}" class="tip error">{{errorText}}</view>
    <view class="buttons">
      <button catchTap="cancel" class="btn cancel" data-type="rest">取消</button>
      <view style="width: 30rpx"></view>
      <button catchTap="confirm" class="btn save">确定</button>
    </view>
  </view>
</popup>
