searchRecords.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--pages/searchRecords/searchRecords.wxml 检索记录-->
  2. <navBar></navBar>
  3. <van-notify id="van-notify" />
  4. <view class="searchRecords">
  5. <view class="head">
  6. <text>检索记录</text>
  7. </view>
  8. </view>
  9. <my-scroll-view triggered="{{triggered}}" load="{{load}}" hasMore="{{hasMore}}" bindonRefresh="onRefresh" bindloadMore="loadMore" customStyle="height: calc(100vh - 300rpx)">
  10. <view wx:if="{{tableData.length>0}}" class="main searchRecords">
  11. <block wx:for="{{tableData}}" wx:key="index">
  12. <myCard edit="{{false}}" menu="{{menu}}" data="{{item}}" index="{{index}}" bindvalue='clickMenu'>
  13. <view slot="head_left" class="head_left">
  14. <van-tag round color="#3f395c">{{index+ 1}}</van-tag>
  15. <wux-ellipsis class="head_left_title" wx:if="{{item.productId}}" direction="end" content="{{ item.productName }}"/>
  16. </view>
  17. <view slot="head_right">
  18. {{item.searchTime}}
  19. </view>
  20. <view>
  21. <swiper indicator-dots="{{true}}"
  22. autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
  23. <block wx:if="{{item.productFiles && item.productFiles.length>0}}" >
  24. <swiper-item wx:for="{{item.productFiles}}" wx:for-item="img" wx:key="index">
  25. <image src="{{imgHttp+img}}" class="slide-image" mode="aspectFit"/>
  26. </swiper-item>
  27. </block>
  28. <swiper-item wx:else>
  29. <image class="slide-image" src="/static/image/empty.gif" mode="aspectFit"/>
  30. </swiper-item>
  31. </swiper>
  32. </view>
  33. <view wx:if="{{ item.searchCondition }}">
  34. <wux-ellipsis direction="end" content="检索内容:{{ item.searchCondition }}"/>
  35. </view>
  36. </myCard>
  37. </block>
  38. </view>
  39. <van-empty wx:else description="暂无数据" />
  40. </my-scroll-view>