<!--pages/searchRecords/searchRecords.wxml 检索记录-->
<navBar></navBar>
<van-notify id="van-notify" />

<view class="searchRecords">
  <view class="head">
    <text>检索记录</text>
  </view>
</view>
<my-scroll-view triggered="{{triggered}}" load="{{load}}" hasMore="{{hasMore}}" bindonRefresh="onRefresh" bindloadMore="loadMore" customStyle="height: calc(100vh - 300rpx)">
  <view  wx:if="{{tableData.length>0}}" class="main searchRecords">
    <block wx:for="{{tableData}}" wx:key="index">
      <myCard edit="{{false}}" menu="{{menu}}" data="{{item}}" index="{{index}}" bindvalue='clickMenu'>
        <view slot="head_left" class="head_left">
          <van-tag round color="#3f395c">{{index+ 1}}</van-tag>  
          <wux-ellipsis defaultExpanded="{{false}}" expandText="展开" collapseText="收起" wux-class="ellipsis" class="head_left_title" wx:if="{{item.productId}}" direction="end" content="{{ item.productName }}"/>
        </view>
        <view slot="head_right">
          {{item.searchTime}}
        </view>
        <view>
          <swiper indicator-dots="{{true}}"
          autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
          <block wx:if="{{item.productFiles && item.productFiles.length>0}}" >
            <swiper-item wx:for="{{item.productFiles}}" wx:for-item="img" wx:key="index">
              <image src="{{imgHttp+img}}" class="slide-image" mode="aspectFit"/>  
            </swiper-item>
          </block>
          <swiper-item wx:else>
            <image  class="slide-image" src="/static/image/empty.gif" mode="aspectFit"/>
          </swiper-item>
        </swiper>
        </view>
        <view wx:if="{{ item.searchCondition }}">
          <wux-ellipsis defaultExpanded="{{false}}" expandText="展开" collapseText="收起" wux-class="ellipsis" direction="end" content="检索内容：{{ item.searchCondition }}"/>
        </view>
      </myCard>
    </block>
  </view>
  <van-empty wx:else description="暂无数据" />
  </my-scroll-view>

