add-date.wxml 2.21 KB
<!--pack-book/components/book/time/add-date.wxml-->
<wxs src="../../../../utils/util.wxs" module="util" />
<view class="tab flex-ll">
    <view class="item {{checked==0?'checked':''}}"
             bindtap="selectedValue" data-key="date" data-value="0">
        {{util.unixtoTime(list[0].time,"MM-DD DAY")}}
    </view>
    <view class="item {{checked==1?'checked':''}}"
             bindtap="selectedValue" data-key="date" data-value="1">
        {{util.unixtoTime(list[1].time,"MM-DD DAY")}}
    </view>
    <view class="item {{checked==2?'checked':''}} flex-lr"
          bindtap="calendarShow">
        <view style="width: 80%" class="item-text">{{checked==2?util.unixtoTime(list[2].time,"MM-DD"):'其他'}}</view>
        <image
                src="http://qn.colorcun.com/custom/lite-yd/image/date{{checked==2?'.selected':''}}.png"
                style="min-width: 36rpx;width: 36rpx;height: 36rpx; margin-right: 22rpx;"></image>
    </view>
</view>
<view class="calendar-mask" bindtap="calendarClose"
      style="height:{{calendarMask?'100%':0}};" wx:if="{{calendarMaskLoad}}">
    <view style="width: 100%; height:{{calendarMask?'100%':0}};overflow: hidden;position: relative;">
        <calendar catchtap="catchtap"
                  isTodaybtn="{{true}}" todaybtn_txt="回到今天"
                  custom="{{false}}"
                  switchover="{{['上一月','下个月']}}"
                  active-coloro="active-coloro"
                  active-colort="active-colort"
                  speciallist="{{speciallist}}"
                  txt_style="txt-style"
                  calendar-style="calendar"
                  header-style="calendar-header"
                  weektitle-style="weektitle-style"
                  restcolor-style="restcolor-style"
                  txt_type="cn-d"

                  datefont-style="datefont-style"
                  todaybtn-style="todaybtn-style"

                  bindnextMonth="nextMonth"
                  bindprevMonth="prevMonth"
                  bindselectDate="dateChange"
                  bindgotoday="gotoday"

                  prev="{{true||calendar.nextNum>0}}"
                  circle_show="{{false}}"
                  closelaststyle="{{true}}"
        ></calendar>
    </view>
</view>