piano.wxml 1.1 KB

123456789101112131415161718192021222324252627
  1. <view class="container">
  2. <!-- 时间筛选 -->
  3. <selectDate bind:getDates="getDates" beginDate="{{beginDate}}" endDate="{{endDate}}"></selectDate>
  4. <!-- end -->
  5. <view class="piano-list">
  6. <view class="piano-box" wx:for="{{list}}" wx:key="index">
  7. <view class="piano-detail">
  8. <view class="piano-title">{{item.pianoName}}</view>
  9. <view class="addr">{{item.orgName}}</view>
  10. <view class="piano-time">{{item.visitDate}} {{item.beginTime}} ~ {{item.endTime}}</view>
  11. </view>
  12. <view>
  13. <view class="piano-date">
  14. {{item.createdDate}}
  15. </view>
  16. <view class="class-status" wx:if="{{item.attend == 0}}">已预约</view>
  17. <view class="class-status" wx:if="{{item.attend == 1}}">已点名</view>
  18. <view class="class-status" wx:if="{{item.attend == 2}}">已缺勤</view>
  19. <view class="class-btn" bindtap="doCancel" data-id="{{item.id}}" wx:if="{{item.cancelFlag}}">取消预约</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="getPiano" bindtap="getPiano">去预约</view>
  24. <view class="loading">{{loading}}</view>
  25. </view>