searchRecords.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--pages/searchRecords/searchRecords.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="searchRecords">
  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 edit="{{false}}" menu="{{menu}}" data="{{item}}" index="{{index}}" bindvalue='clickMenu'>
  17. <view slot="head_left" class="head_left">
  18. <van-tag round color="#3f395c">{{index+ 1}}</van-tag>
  19. <wux-ellipsis class="head_left_title" wx:if="{{item.productId}}" direction="end" content="{{ item.searchCondition }}"/>
  20. </view>
  21. <view slot="head_right">
  22. {{item.searchTime}}
  23. </view>
  24. <view>
  25. <swiper indicator-dots="{{true}}"
  26. autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
  27. <block wx:if="{{item.productFiles && item.productFiles.length>0}}" >
  28. <swiper-item wx:for="{{item.productFiles}}" wx:for-item="img" wx:key="index">
  29. <image src="{{imgHttp+img}}" class="slide-image" mode="aspectFit"/>
  30. </swiper-item>
  31. </block>
  32. <swiper-item wx:else>
  33. <image class="slide-image" src="/static/image/empty.gif" mode="aspectFit"/>
  34. </swiper-item>
  35. </swiper>
  36. </view>
  37. <view wx:if="{{!item.productId}}">
  38. <wux-ellipsis direction="end" content="{{ item.searchCondition }}"/>
  39. </view>
  40. </myCard>
  41. </block>
  42. <view class="loadData" wx:if="{{total && tableData.length>0}}">
  43. <view wx:if="{{total>tableData.length}}" bind:tap="loadMore">加载更多</view>
  44. <wux-spin wux-class="spin" size="small" wx:elif="{{loading}}"/>
  45. <view wx:elif="{{total>10}}">没有更多了</view>
  46. </view>
  47. </scroll-view>
  48. <van-empty wx:else description="暂无数据" />
  49. </view>
  50. </wux-refresher>