You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.0 KiB
1 lines
4.0 KiB
<block wx:if="{{calendarData.isShow}}"><view class="lotus-calendar-wrap" status="{{checkStatus}}"><view class="{{[calendarData.isShow?'lotus-calendar':'lotus-calendar lotus-calendar-out']}}"><view class="lotus-calendar-title">选择日期</view><view class="lotus-calendar-cur-bg-month">{{curMonth+1}}</view><view class="lotus-calendar-cur-date"><view class="lotus-calendar-center"><view class="lotus-calendar-month"><view data-event-opts="{{[['tap',[['clickPrevMonth',['$event']]]]]}}" class="lotus-calendar-prev" bindtap="__e">←</view><view data-event-opts="{{[['tap',[['setStauts',['showMonthFlag',true]]]]]}}" class="lotus-calendar-cur-text" style="{{(calendarData.monthStyle)}}" bindtap="__e">{{showCurMonth+"月"}}</view><view data-event-opts="{{[['tap',[['clickNextMonth',['$event']]]]]}}" class="lotus-calendar-next" bindtap="__e">→</view></view><view class="lotus-calendar-year"><view data-event-opts="{{[['tap',[['clickPrevYear',['$event']]]]]}}" class="lotus-calendar-prev" bindtap="__e">←</view><view data-event-opts="{{[['tap',[['setStauts',['showYearFlag',true]]]]]}}" class="lotus-calendar-cur-text" style="{{(calendarData.yearStyle)}}" bindtap="__e">{{curYear}}</view><view data-event-opts="{{[['tap',[['clickNextYear',['$event']]]]]}}" class="lotus-calendar-next" bindtap="__e">→</view></view></view></view><view class="lotus-calendar-week"><block wx:for="{{weekText}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="lotus-calendar-week-text lotus-calendar-week-range">{{''+item+''}}</view></block></view><view class="lotus-calendar-days"><block wx:for="{{totalDaysArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickTargetTime',['$0',index],[[['totalDaysArr','',index]]]]]]]}}" class="lotus-calendar-days-text" bindtap="__e"><block wx:if="{{item.type==0}}"><view class="{{[item.flag?'lotus-calendar-days-act':'lotus-calendar-days-gray']}}">{{item.day}}</view></block><block wx:if="{{item.type==1}}"><view class="{{[item.flag?'lotus-calendar-days-act':'']}}">{{item.day}}</view></block><block wx:if="{{item.type==2}}"><view class="{{[item.flag?'lotus-calendar-days-act':'']}}" style="{{(calendarData.dayStyle)}}">{{item.day}}</view></block></view></block></view><view class="lotus-calendar-result"><view class="lotus-calendar-result-time">{{selectTime}}</view><view data-event-opts="{{[['tap',[['confirmFn',['$event']]]]]}}" class="lotus-calendar-result-btn" bindtap="__e">确定</view></view></view><block wx:if="{{showMonthFlag}}"><view class="lotus-calendar-months"><view class="lotus-calendar-months-box"><block wx:for="{{monthArray}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="lotus-calendar-months-text" style="{{(item.flag&&calendarData.monthStyle)}}"><text data-event-opts="{{[['tap',[['setAct',['$0','month'],[[['monthArray','',index]]]]]]]}}" bindtap="__e">{{item.monthText}}</text></view></block></view></view></block><block wx:if="{{showYearFlag}}"><view class="lotus-calendar-months"><view class="lotus-calendar-year lotus-calendar-year2"><view data-event-opts="{{[['tap',[['yearRangeChanage',[-10]]]]]}}" class="lotus-calendar-prev" bindtap="__e">←</view><view data-event-opts="{{[['tap',[['setStauts',['showYearFlag',true]]]]]}}" class="lotus-calendar-cur-text" style="{{(calendarData.yearStyle)}}" bindtap="__e">{{curYear-10+"-"+curYear}}</view><view data-event-opts="{{[['tap',[['yearRangeChanage',[10]]]]]}}" class="lotus-calendar-next" bindtap="__e">→</view></view><view class="lotus-calendar-months-box" style="padding-top:20rpx;"><block wx:for="{{yearArray}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="lotus-calendar-months-text lotus-calendar-months-text2" style="{{(item.flag&&calendarData.monthStyle)}}"><text data-event-opts="{{[['tap',[['setAct',['$0','year'],[[['yearArray','',index]]]]]]]}}" bindtap="__e">{{item.y}}</text></view></block></view></view></block><block wx:if="{{calendarData.isShow}}"><view data-event-opts="{{[['tap',[['clickShowCalendar',['$event']]]]]}}" class="lotus-calendar-mask" bindtap="__e"></view></block></view></block>
|