index.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  2. <t-tab-panel label="待接单" value="0" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}"/>
  3. <t-tab-panel label="待开始" value="4" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}"/>
  4. <t-tab-panel label="暂停" value="1" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}"/>
  5. <t-tab-panel label="进行中" value="2" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}"/>
  6. <t-tab-panel label="已完成" value="3" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}"/>
  7. </t-tabs>
  8. <t-pull-down-refresh
  9. style="padding-bottom:60px"
  10. value="{{baseRefresh.value}}"
  11. loadingProps="{{loadingProps}}"
  12. loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}"
  13. bind:refresh="onPullDownRefresh"
  14. bind:scrolltolower="onReachBottom"
  15. >
  16. <view style="padding:10px">
  17. <view>
  18. <card wx:for="{{list}}" url="{{'/Eservice/workOrderDetail/index?id=' + item.sa_workorderid}}" wx:key="index">
  19. <view style="width: 40px;" slot="left">
  20. <view class="type">{{item.type}}</view>
  21. </view>
  22. <view style="flex:1" slot="content">
  23. <view>
  24. {{item.province}}{{item.city}}{{item.county}}{{item.address}}
  25. </view>
  26. <view class="colorInfo small">
  27. 指派日期:{{item.createdate}}
  28. </view>
  29. <view wx:if="{{item.status === '待接单'}}" class="colorInfo small">
  30. {{item.status}}
  31. </view>
  32. <view wx:if="{{item.status !== '待接单'}}" class="colorInfo small">
  33. 当前工序:{{item.curcontent}}
  34. </view>
  35. </view>
  36. <view class="flex-align-center" slot="right">
  37. <view class="colorInfo small">
  38. {{item.status}}
  39. </view>
  40. </view>
  41. </card>
  42. <t-empty wx:if="{{list.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="暂无工单" />
  43. </view>
  44. </view>
  45. </t-pull-down-refresh>