search.wxml
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<view class="search-container" style="min-height:{{windowHeight}}px;">
<view class="top-search">
<view class="input-bg"></view>
<input class="search-input" value="{{query}}" confirm-type="search" placeholder="{{placeholder ? placeholder : '店内潮品搜一下'}}"
bindconfirm="confirmQuery" bindinput="bindQueryInput"
placeholder-class="placeholder" focus="{{isSearch}}"/>
<image class="icon" src="../../../static/images/search@2x.png"></image>
</view>
<view class="recent-keys" wx:if="{{recentKeys.length > 0 && !searched}}">
<view class="title">最近搜索
<image class="delete" src="../../../static/images/delete.png" bindtap="deleteRecent"></image></view>
<view class="keys">
<text wx:for="{{recentKeys}}" wx:key="{{item}}"
class="key" bindtap="searchRecent" data-key="{{item}}">{{item}}</text>
</view>
</view>
<view hidden="{{!searched}}">
<view class="fixed-filter">
<product-list-filter bind:sortchange="sortChange"></product-list-filter>
</view>
<view class="no-res" wx:if="{{!productList.length}}">
<image class="no-res-img" src="https://cdn.yoho.cn/yoho-brand-shop/assets/img/product/no-search-icon.png"></image>
<view class="no-res-txt">未搜索到任何相关商品</view>
</view>
<view wx:if="{{productList.length > 0}}" class="product-list">
<view class="activity-title" wx:if="{{activityTitle}}">
<text>{{activityTitle}}</text>
</view>
<product-list list="{{productList}}"
show-loading="{{showLoading}}"
show-no-more="{{showNoMore}}">
</product-list>
</view>
</view>
<copyright wx:if="{{searched}}" class="copy-right"></copyright>
<quick-navigation show-back-top="{{showBackTop}}" bindbacktop="backTop"></quick-navigation>
</view>