init
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<!--component/calendar/calendar.wxml-->
|
||||
|
||||
|
||||
<view class="main">
|
||||
<view class="current-time">
|
||||
<view class="pre" bindtap="prevMonth"><</view>
|
||||
<view class="time">{{nowYear}}-{{nowMonth}}</view>
|
||||
<view class="next" bindtap="nextMonth">></view>
|
||||
</view>
|
||||
<view class="calendar-week">
|
||||
<view class="weekday" wx:for="{{ calendarWeek }}" wx:key="index" data-item='{{item}}'>{{item}}</view>
|
||||
</view>
|
||||
<!-- wx:if="{{isShow}}" -->
|
||||
<view style="position:relative;" wx:if="{{isShow}}">
|
||||
<swiper style="height:{{isShow?(swiperHeight+5)+'px':'95rpx'}};" current="{{calendarPageIndex}}" circular="{{true}}" bindchange="changeSwiper" bindanimationfinish="transitionStop" >
|
||||
<block wx:for="{{calendarAllList}}" wx:for-item="arrItem" wx:for-index="arrIndex" wx:key="arrIndex">
|
||||
<swiper-item class="swiper-item">
|
||||
<view class="day-box {{calendarPageIndex==arrIndex?'currentBox':''}}">
|
||||
<!-- item.week == 6 || item.week == 0 -->
|
||||
<block wx:for="{{arrItem.list}}" wx:key="index">
|
||||
<view catchtap="selectDay" data-arr_item="{{arrItem}}" data-item="{{item}}" data-index="{{index}}" class="day-item {{ item.isLastMon || item.isNextMon ? 'disable':''}}" >
|
||||
<view class="{{currentSelectDate===item.date?'select_on':''}}">{{ item.isNow?'今天': item.day }}</view>
|
||||
<view class="{{item.isClock==1?'clockTrue':(item.isLastMon || item.isNextMon || item.isClock==0 ?'':'clockFalse')}}"></view>
|
||||
<!-- <view class="{{item.isClock==1?'clockTrue':(item.isClock==2?'':(item.isLastMon || item.isNextMon?'':'clockFalse'))}}"></view> -->
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
|
||||
</swiper>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view wx:else style="height:95rpx">
|
||||
<view class="day-box">
|
||||
<block wx:for="{{showFalseList}}" wx:key="index">
|
||||
<view class="day-item {{ item.isLastMon || item.isNextMon ? 'disable':''}}" >
|
||||
<view catchtap="selectWeekDay" data-item="{{item}}" class="{{currentSelectDate===item.date?'select_on':''}}">{{ item.isNow?'今天': item.day }}</view>
|
||||
<view class="{{item.isClock==1?'clockTrue':(item.isLastMon || item.isNextMon || item.isClock==0 ?'':'clockFalse')}}"></view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="splitLine">
|
||||
<view class="toShowBtn" wx:if="{{!isShow}}" catchtap="changeShowStatus">
|
||||
<view class="bottom-arrow1"></view>
|
||||
<view class="bottom-arrow2"></view>
|
||||
</view>
|
||||
<view class="toShowBtn toHideBtn" wx:else catchtap="changeShowStatus">
|
||||
<view class="bottom-arrow1"></view>
|
||||
<view class="bottom-arrow2"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 40rpx;" catchtap="changeShowStatus"></view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user