searchpage.wxml
2.1 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<view class="search">
<view class="iconfont icon-sousuo" bindtap="searchcontent"></view>
<view class="enterword">
<!-- <input placeholder='搜索' class="searchword"></input> -->
<input placeholder='搜索' placeholder-class='placeholder_input' bindblur="beginsearch"></input>
</view>
</view>
<view class="hotsearchcontent">
<view class="hotsearch">热门搜索</view>
</view>
<view wx:if="{{searchlist.hot_search_list.length==0}}">暂无数据</view>
<view class="hotsearchlist" wx:else>
<view class="hotsearchlistitem" wx:for="{{searchlist.hot_search_list}}" wx:key="" bindtap="searchhot" data-hot="{{item.hot_words}}">{{item.hot_words}}</view>
</view>
<view class="hotsearchcontent">
<view class="historysearchname">
<view class="hotsearch">搜索历史</view>
<view class="clearhistory" bindtap="clearhistory">
<view class="hotsearch clear">清空历史纪录</view>
<view class="iconfont icon-shanchu" ></view>
</view>
</view>
<view class="nodata" wx:if="{{searchlist.history_search_list.length==0}}">暂无数据</view>
<view class="historysearchlist" wx:else>
<view class="historysearchlistitem" wx:for="{{searchlist.history_search_list}}" wx:key="" bindtap="searchhot" data-hot="{{item.keyword}}">{{item.keyword}}</view>
</view>
</view>
<!-- <view class="hotsearchcontent" >
<view class="historysearchname">
<view class="hotsearch">搜索结果</view>
</view>
<view class="nodata" wx:if="{{homelist.length==0}}">暂无数据</view>
<view class="projectlist" wx:else>
<view class="projectitem" bindtap="detail" data-id="{{item.id}}" wx:for="{{homelist}}" wx:key="">
<view class="projectitemtitle">{{item.goods_name}}</view>
<view class="projectitemimg">
<image src="{{item.thumbnail}}"></image>
</view>
<view class="projectsee">
<view class="projectnum">浏览{{item.hit_num}}</view>
<view class="projectmoney {{item.goods_price!='免费'?'moneynum':''}}">{{item.goods_price}}</view>
</view>
</view>
</view> -->
<!-- </view> -->