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.
77 lines
4.2 KiB
77 lines
4.2 KiB
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">搜索</view>
|
|
</cu-custom>
|
|
|
|
<view class="bg-white">
|
|
<free-input value="{{form.searchKey}}" placeholder="请输入关键字" extreaWord="搜索" focus="{{focus}}" close="{{true}}" bind:focus="onFocusChange" bind:confirm="onSearchList" bind:extrea="onSearchList"></free-input>
|
|
</view>
|
|
<view class="bg-white" style="height:90rpx;border-bottom:2rpx solid #f3f3f3" wx:if="{{!focus || searchList.length == 0}}">
|
|
<wux-tabi tab-data="{{tabList}}" tab-index="{{tabIndex}}" disable="{{requesting || loading}}" scroll="{{false}}" bind:change="onTabChange"/>
|
|
</view>
|
|
<view class="bg-white" wx:if="{{focus && searchList.length}}">
|
|
<view class="cu-form-group" style="min-height:80rpx">
|
|
<view class="action" style="color:black">搜索历史</view>
|
|
<text class="cuIcon-delete" style="font-size: 17px" bindtap="clearHistory"></text>
|
|
</view>
|
|
<view id="keybord" class="flex flex-wrap" style="padding: 0rpx 20rpx 30rpx 20rpx;">
|
|
<view class="padding-xs" style="height: 68rpx;" wx:for-item="item" wx:for="{{searchList}}" wx:key="index">
|
|
<view class="cu-tag" style="padding:18rpx 24rpx;border-radius: 6rpx" data-index="{{index}}" bindtap="tagClick">{{item}}</view>
|
|
</view>
|
|
<view class="padding-xs" style="height: 68rpx;" wx:if="{{keyIndex}}">
|
|
<view class="cu-tag" style="padding:0rpx 12rpx;border-radius: 6rpx" bindtap="flodKeybord">
|
|
<text class="cuIcon-{{keyIndex == 1 ? 'unfold' : 'fold'}}" style="font-size: 32rpx;"></text>
|
|
</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 class="bg-white flex flex-center" style="height: 80rpx;padding: 0rpx 32rpx;" wx:if="{{tabIndex == 1}}">
|
|
<view style="width: 30%;">纸厂名称</view>
|
|
<view style="width: 30%;">涨跌幅</view>
|
|
<view style="width: 20%;">车辆排队</view>
|
|
<view style="width: 16%;">起扣点</view>
|
|
<view style="min-width: 48rpx;height: 24rpx;"><text></text></view>
|
|
</view>
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{taskList}}" wx:key="pageIndex">
|
|
<view wx:for="{{pageItem}}" wx:key="index">
|
|
<view style="height:16rpx" wx:if="{{ (tabIndex == 0 || tabIndex == 2) && (pageIndex != 0 || index != 0)}}"></view>
|
|
<view class="bg-white" style="padding: 0rpx 32rpx" wx:elif="{{tabIndex == 1 && (pageIndex != 0 || index != 0) }}">
|
|
<wux-divider show-text="{{ false }}"></wux-divider>
|
|
</view>
|
|
<agent-item item="{{item}}" keyword="{{form.searchKey}}" wx:if="{{tabIndex == 0}}"></agent-item>
|
|
<moment-item item="{{item}}" keyword="{{form.searchKey}}" wx:elif="{{tabIndex == 1}}"></moment-item>
|
|
<order-item item="{{item}}" keyword="{{form.searchKey}}" wx:elif="{{tabIndex == 2}}"></order-item>
|
|
<info-item item="{{item}}" keyword="{{form.searchKey}}" wx:else></info-item>
|
|
</view>
|
|
</view>
|
|
<!--加载更多的UI-->
|
|
<view wx:if="{{form.pageNum > 1}}" style="padding:20rpx">
|
|
<wux-divider>
|
|
<view class="loadmore">
|
|
<text class="icon--refresher" wx:if="{{!finished}}"></text>
|
|
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
|
|
</view>
|
|
</wux-divider>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
|
|
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
|
|
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ visible }}" mask="{{ true }}" bind:close="onClose">
|
|
<view class="wux-close" bindtap="onClose">
|
|
<text class="cuIcon-roundclose text-white" style="font-size:64rpx"></text>
|
|
</view>
|
|
<view class="wux-landscape__inner">
|
|
<wux-image width="{{604}}" height="{{806}}" nuit="{{'rpx'}}" src="/assets/popup/need-member.png" bind:click="onImageClick">
|
|
</wux-image>
|
|
</view>
|
|
</wux-popup>
|