lessonsList.wxml 1016 B

1234567891011121314151617181920
  1. <view class="lessons-container">
  2. <view class="lessons-view">
  3. <view class="lessons-box" wx:for="{{list}}" wx:key="index">
  4. <view class="lessons-type">1v1</view>
  5. <view class="lessons-title">小鹏钢琴课</view>
  6. <view wx:if="{{(index +1) % 2 == 0 }}" class="{{(index +1) % 2 == 0 ? 'lessons-flag' : ''}}">未补课</view>
  7. <view wx:if="{{(index +1) % 2 != 0 }}" class="{{(index +1) % 2 != 0 ? 'lessons-flag-ed' : ''}}">已补课</view>
  8. <view class="lessons-room">钢琴教室01</view>
  9. <view class="lessons-teacher">授课老师:张老师</view>
  10. <view class="lessons-date-box">
  11. <view class="lessons-beginDate">上课时间:2021-02-25 09:00</view>
  12. <view class="lessons-endDate">请假时间:2021-02-21 17:00</view>
  13. </view>
  14. <view class="lessons-btn-box">
  15. <view class="apply-btn" wx:if="{{(index +1) % 2 ==0}}">申请补课</view>
  16. <view class="more-btn" wx:else>查看详情</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>