myWork.wxml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!--pages/myWork/myWork.wxml 我的工单-->
  2. <navBar></navBar>
  3. <van-notify id="van-notify" />
  4. <wux-refresher
  5. id="wux-refresher"
  6. bind:pulling="onPulling"
  7. bind:refresh="onRefresh"
  8. scrollTop="{{scrollTop}}"
  9. >
  10. <view class="myWork">
  11. <view class="head">
  12. <text>检索记录</text>
  13. </view>
  14. <scroll-view wx:if="{{tableData.length>0}}" type="list" scroll-y class="main">
  15. <block wx:for="{{tableData}}" wx:key="index">
  16. <myCard>
  17. <view slot="head_left">
  18. {{index}}{{item.name}}
  19. </view>
  20. <view slot="head_right">
  21. {{item.status}}
  22. </view>
  23. <view>
  24. content
  25. </view>
  26. </myCard>
  27. </block>
  28. <view class="loadData" wx:if="{{total && tableData.length>0}}">
  29. <view wx:if="{{total>tableData.length}}" bind:tap="loadMore">加载更多</view>
  30. <wux-spin wux-class="spin" size="small" wx:elif="{{loading}}"/>
  31. <view wx:elif="total>10">没有更多了</view>
  32. </view>
  33. </scroll-view>
  34. <van-empty wx:else description="暂无数据" />
  35. </view>
  36. </wux-refresher>