applet.miniprograms/components/calendarWeek/calendarWeek.wxml

37 lines
1.6 KiB
Plaintext

<!--components/calendarWeek/calendarWeek.wxml-->
<view class="date-choose shrink border-bottom10">
<picker mode="date" bindchange="tiaotime">
<view class="data-month">{{dateYear}}{{dateMonth}}</view>
</picker>
<view class="weekday">
<block wx:for-item="weekday" wx:for="{{dateListArray}}" wx:key="{{index}}">
<text class="week">{{weekday}}</text>
</block>
</view>
<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="dateday">
<block wx:for="{{date.days}}" wx:for-item="day" wx:key="{{day.id}}">
<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 class="policyList">
<view class="policy-item" wx:for="{{forumList}}" wx:key="item" data-id="{{item.postId}}" bindtap="bindPolicyList">
<van-cell-group>
<van-cell title="课程" value="课程" />
<van-cell title="上课时间" value="{{item.lastReplyTime}}" />
<van-cell title="教室" value="{{item.jiaoshi}}" />
<van-cell title="教室" value="{{item.teachter}}" />
</van-cell-group>
</view>
<!-- 到底提示 -->
<view class="noMore" wx:if="{{noMore}}">到底了哟~~~</view>
</view>
</view>