index.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.now}}
  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. </view>
  43. </view>
  44. </t-pull-down-refresh>