myAppointment.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--pages/myAppointment/myAppointment.wxml-->
  2. <view class="myappoint-content">
  3. <view class="nav-header ittflex">
  4. <view class="nav-item nav-all ittflex {{navItemActive == '0' ? 'nav-item-active' : ''}}" bindtap="handleChangeNav" data-index="0">全部</view>
  5. <view class="nav-item nav-wait ittflex {{navItemActive == '1' ? 'nav-item-active' : ''}}" bindtap="handleChangeNav" data-index="1">待服务</view>
  6. <view class="nav-item nav-done ittflex {{navItemActive == '2' ? 'nav-item-active' : ''}}" bindtap="handleChangeNav" data-index="2">已完成</view>
  7. </view>
  8. <block wx:if="{{appointmentList.length == 0}}">
  9. <view class="nodate" >
  10. <van-empty description="暂无数据" />
  11. </view>
  12. </block>
  13. <block wx:else>
  14. <view wx:for="{{appointmentList}}" wx:key="index" class="data-item">
  15. <view class="top date ittflex-jcb">
  16. <text class="top-date">
  17. <text class="app-str">{{item.appointmentTimeStr}}</text>
  18. <text wx:if="{{item.duration == 1}}">08:30-12:00</text>
  19. <text wx:if="{{item.duration == 2}}">12:30-17:00</text>
  20. <text wx:if="{{item.duration == 3}}">18:30-21:30</text>
  21. </text>
  22. <!-- status 1 待服务,2,3 已取消 4: 已完成 5.超时 -->
  23. <text class="status s-wait" wx:if="{{item.status == 1}}">待服务</text>
  24. <text class="status s-done" wx:if="{{item.status == 4}}">已完成</text>
  25. <text class="status s-cancel" wx:if="{{item.status == 2 || item.status == 3}}">已取消</text>
  26. <text class="status s-done" wx:if="{{item.status == 5}}">超时</text>
  27. </view>
  28. <view class="center info">
  29. <view class="username info-item">
  30. <text>预约账号:</text>
  31. <text>{{globalDataUserName}}</text>
  32. </view>
  33. <view class="order-time info-item">
  34. <text>下单时间:</text>
  35. <text>{{item.addTime}}</text>
  36. </view>
  37. <view class="order-time info-item" wx:if="{{item.status == 4}}">
  38. <text>完成时间:</text>
  39. <text>{{item.finishTime}}</text>
  40. </view>
  41. <view class="order-time info-item" wx:if="{{item.status == 2 || item.status == 3}}">
  42. <text>取消时间:</text>
  43. <text>{{item.finishTime}}</text>
  44. </view>
  45. </view>
  46. <view class="bototm actions" wx:if="{{item.status == 1}}">
  47. <button class="action-btn submit-btn itt-btn" bindtap="handleScanCode">去核销</button>
  48. <button class="action-btn cancels-btn" bindtap="handleCancel" data-id="{{item.id}}">取消</button>
  49. </view>
  50. </view>
  51. </block>
  52. </view>