You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
2.8 KiB
50 lines
2.8 KiB
<!--pages/home/about/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">搜索</view>
|
|
</cu-custom>
|
|
|
|
<view class="bg-white">
|
|
<free-input value="{{form.name}}" placeholder="请输入关键字" extreaWord="搜索" bind:focus="onFocusChange" bind:blur="onBlurChange" focus="{{focus}}" close="{{true}}" bind:extrea="onSearchList"></free-input>
|
|
</view>
|
|
<view class="bg-white" style="height:90rpx;border-bottom:2rpx solid #f3f3f3" wx:if="{{!focus || rearchStringList.length == 0}}">
|
|
<wux-tabi tab-data="{{tabList}}" tab-index="{{tabIndex}}" line-height="{{3}}" scroll="{{false}}" bind:change="onTabChange"></wux-tabi>
|
|
</view>
|
|
<view class="bg-white" wx:if="{{focus}}">
|
|
<view class="cu-form-group" style="min-height:80rpx" wx:if="{{rearchStringList.length}}">
|
|
<view class="action" style="color:black">搜索历史</view>
|
|
<text class="cuIcon-delete" style="font-size: 17px" bindtap="clearHistory"></text>
|
|
</view>
|
|
<view class="flex flex-wrap" style="padding: 0rpx 20rpx 30rpx 20rpx" wx:if="{{rearchStringList.length}}">
|
|
<view class="padding-xs" wx:for-item="item" wx:for="{{rearchStringList}}" wx:key="index">
|
|
<view class="cu-tag round" style="padding:18rpx 24rpx" data-index="{{index}}" bindtap="tagClick">{{item}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:else>
|
|
<view class="flex flex-column flex-center" wx:if="{{loading}}" style="height:{{height -90}}rpx">
|
|
<view class="load-spinner text-gray" />
|
|
<view class="text-empty" style="margin-top:48rpx">加载中...</view>
|
|
</view>
|
|
<view class="list-empty" wx:elif="{{!taskList.length}}" style="height:{{height -90}}rpx">
|
|
<image class="img-empty" src="/assets/image/list_empty.png"></image>
|
|
<view class="text-empty">暂无数据</view>
|
|
</view>
|
|
<scroll-view scroll-y scroll-top="{{top}}" style="height:{{height - 90}}rpx;" wx:else bindscrolltolower="fetchTaskList">
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{taskList}}" wx:key="pageIndex">
|
|
<view class="bg-white" style="padding:0rpx 32rpx" wx:if="{{pageIndex>0}}">
|
|
<view style="height:2rpx;background-color:#f3f3f3"></view>
|
|
</view>
|
|
<view wx:for="{{pageItem}}" wx:key="index">
|
|
<agent-item item="{{item}}" keyword="{{form.name}}" wx:if="{{tabIndex == 0}}"></agent-item>
|
|
<moment-item item="{{item}}" keyword="{{form.name}}" wx:elif="{{tabIndex == 1}}"></moment-item>
|
|
<order-item item="{{item}}" keyword="{{form.name}}" wx:elif="{{tabIndex == 2}}"></order-item>
|
|
<info-item item="{{item}}" keyword="{{form.name}}" wx:else></info-item>
|
|
</view>
|
|
</view>
|
|
<!--加载更多的UI-->
|
|
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">
|
|
<van-loading type="spinner" size="16" wx:if="{{!finished}}" />
|
|
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
|
|
</van-divider>
|
|
</scroll-view>
|
|
</view>
|