Sanakey
2021-07-09 3fc241d02fb8b671289de3d9d80bf848349c04d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--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>