1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!--pages/searchRecords/searchRecords.wxml 检索记录-->
- <navBar></navBar>
- <van-notify id="van-notify" />
- <wux-refresher
- id="wux-refresher"
- bind:pulling="onPulling"
- bind:refresh="onRefresh"
- scrollTop="{{scrollTop}}"
- >
- <view class="searchRecords">
- <view class="head">
- <text>检索记录</text>
- </view>
- <scroll-view wx:if="{{tableData.length>0}}" type="list" scroll-y class="main">
- <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 class="head_left_title" wx:if="{{item.productId}}" direction="end" content="{{ item.searchCondition }}"/>
- </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.productId}}">
- <wux-ellipsis direction="end" content="{{ item.searchCondition }}"/>
- </view>
- </myCard>
- </block>
- <view class="loadData" wx:if="{{total && tableData.length>0}}">
- <view wx:if="{{total>tableData.length}}" bind:tap="loadMore">加载更多</view>
- <wux-spin wux-class="spin" size="small" wx:elif="{{loading}}"/>
- <view wx:elif="{{total>10}}">没有更多了</view>
- </view>
- </scroll-view>
- <van-empty wx:else description="暂无数据" />
- </view>
- </wux-refresher>
|