piano.wxml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <view class="container">
  2. <!-- 时间筛选 -->
  3. <selectDate bind:getDates="getDates" beginDate="{{beginDate}}" endDate="{{endDate}}" typeFlag="{{true}}" toTop="{{-440}}" bind:changeType="changeType"></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-status" wx:if="{{item.attend == 3}}">已取消</view>
  20. <view class="class-btn" bindtap="doCancel" data-id="{{item.id}}" wx:if="{{item.cancelFlag && item.type == '1'}}">取消预约</view>
  21. <view class="class-btn cancelList" bindtap="doCancelQueue" data-id="{{item.id}}" wx:if="{{item.type == '2'}}">取消排队</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="getPiano" bindtap="getPiano">去预约</view>
  26. <view class="loading">{{loading}}</view>
  27. </view>