quick.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="container">
  3. <view class="orders-switch">
  4. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  5. <view class="txt">未服务</view>
  6. </view>
  7. <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  8. <view class="txt">已服务</view>
  9. </view>
  10. <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
  11. <view class="txt">已取消</view>
  12. </view>
  13. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  14. <view class="txt">全部工单</view>
  15. </view>
  16. </view>
  17. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  18. <view class="c">
  19. <text>还没有服务工单呢</text>
  20. <view style="display:flex;margin-top:30rpx">
  21. <button class="btn" style="margin:0 auto" bindtap="goProblemAdd">手动报备问题</button>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="orders">
  26. <view class='order' wx:for="{{orderList}}" wx:for-item="item" wx:key="item">
  27. <view class="h">
  28. <view class="l">预约时间:{{item.bookTime}}</view>
  29. <view class="r">{{item.status}}</view>
  30. </view>
  31. <view class="goods">
  32. <view class="info">
  33. <text class="name">服务地址:{{item.address}}</text>
  34. <text class="number">工单编号:{{item.bookTradeNo}}</text>
  35. <text class="number" decode="{{true}}">客户名称:{{item.userName}} &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 手机:{{item.userPhone}}</text>
  36. </view>
  37. </view>
  38. <view class="order-item-operate">
  39. <view class="order-item-result"></view>
  40. <view class="order-operate-wrapper">
  41. <view catchtap="goProblemAdd" data-id='{{item.bookTradeNo}}'>问题报备</view>
  42. <!-- <view catchtap="payOrder">联系客户</view> -->
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>