<!--components/time-quantum/index.wxml-->
|
<van-cell class="my-cell required" title="开始时间" >
|
<view bindtap="showStartDatePopup">{{startTime||'选择计划开始时间'}}<text class="iconfont icon-xiangxiazhankai"></text></view>
|
<van-popup
|
show="{{isShowStartDatePopup}}"
|
position="bottom"
|
custom-style="height: 50%;"
|
bind:close="onStartDatePopupClose"
|
>
|
<van-datetime-picker
|
type="datetime"
|
value="{{ startDate }}"
|
min-date="{{ minStartDate }}"
|
max-date="{{ maxStartDate }}"
|
formatter="{{ formatter }}"
|
bind:input="onInputStartDate"
|
bind:confirm="onEnterStartDate"
|
bind:cancel="onCancelStartDate"
|
/>
|
</van-popup>
|
<view class="font-size-12 error" wx:if="{{startTimeError}}">
|
{{startTimeError}}
|
</view>
|
</van-cell>
|
<van-cell class="my-cell required" title="结束时间" >
|
<view wx:if="{{startTime}}" bindtap="showEndDatePopup">{{endTime||'选择计划结束时间'}}<text class="iconfont icon-xiangxiazhankai"></text></view>
|
<van-popup
|
show="{{isShowEndDatePopup}}"
|
position="bottom"
|
custom-style="height: 50%;"
|
bind:close="onEndDatePopupClose"
|
>
|
<van-datetime-picker
|
type="datetime"
|
value="{{ endDate }}"
|
min-date="{{ minEndDate }}"
|
max-date="{{ maxEndDate }}"
|
formatter="{{ formatter }}"
|
bind:input="onInputEndDate"
|
bind:confirm="onEnterEndDate"
|
bind:cancel="onCancelEndDate"
|
/>
|
</van-popup>
|
|
<view class="font-size-12 error" wx:if="{{endTimeError}}">
|
{{endTimeError}}
|
</view>
|
</van-cell>
|