26 lines
1000 B
Plaintext
26 lines
1000 B
Plaintext
<!--components/calendarWeek/index.wxml-->
|
|
<!-- 日历 -->
|
|
<view class="date-choose shrink border-bottom10">
|
|
|
|
<picker mode="date" bindchange="tiaotime"><view class="data-month">{{dateYear}}{{dateMonth}}</view></picker>
|
|
<swiper class="date-choose-swiper" circular="true" indicator-dots="{{false}}" current="{{swiperCurrent}}" bindchange="dateSwiperChange">
|
|
<block wx:for="{{dateList}}" wx:for-item="date" wx:key="date.id">
|
|
<swiper-item class="swiper-item">
|
|
<view class="weekday">
|
|
<block wx:for-item="weekday" wx:for="{{dateListArray}}" wx:key="{{index}}">
|
|
<text class="week">{{weekday}}</text>
|
|
</block>
|
|
</view>
|
|
<view class="dateday">
|
|
<block wx:for="{{date.days}}" wx:for-item="day" wx:key="{{day.id}}">
|
|
<!-- <view>{{day.ids}}</view> -->
|
|
<view class="day" id="{{day.id}}" bindtap="chooseDate" >
|
|
<text class="{{dateCurrentStr==day.id?'active':''}}{{today==day.id?' reds':''}}" >{{day.day}}</text>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
</view>
|
|
<!-- 日历 --> |