search.wxml
2.2 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
<!--pages/search/search.wxml-->
<view class="container">
<view class="search_center" catchtap="goSearch">
<!-- <view class="real_search_center">
<view class="searchIcon">
<image src="/images/01-02/sousuo.png"></image>
</view>
<input class="weui-input" auto-focus placeholder="搜索" bindinput="getKeyWord" placeholder-class="placeholder" bindconfirm="search"/>
<view class="searchIcon" bindtap="cancel">
<image src="/images/01-02/quxiao.png"></image>
</view>
</view>
<view class="search_right" catchtap="unsearch">取消</view> -->
<van-search value="{{keyWord}}" placeholder="请输入搜索关键词" shape="round" show-action bind:search="search"
bind:cancel="onCancel" bind:change="onChange" />
</view>
<!-- 搜索历史 -->
<view class="searchHistory" wx:if="{{searchBox}}">
<view class="searchTitle">
<view class="title">历史搜索</view>
<view class="noData" wx:if="{{labelArray==[]}}">
暂无搜索记录哦~
</view>
<view class="delIcon" bindtap="delSearch">
<image src="/images/01-02/del.png"></image>
</view>
</view>
<view class="searchLable">
<view wx:for="{{labelArray}}" class="lableBox" catchtap="historyClick" data-index="{{index}}">
{{item}}
</view>
</view>
</view>
<!-- 猜你喜欢 -->
<view style=" width:750rpx,height:16rpx,background:red" class="middleLine"></view>
<view class="like">
<view class="titleMain">
<view class="icon"></view>
<view class="title">{{title}}</view>
</view>
<view class="listTable">
<view class="listSon" wx:for="{{list}}" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
<view class="listPic">
<image src="{{item.goodsImg}}"></image>
</view>
<view class="listTitle">{{item.goodsName}}</view>
<view class="collect">{{item.goodsAttributes}}</view>
<view class="discount">
<view class="discountPic">
¥{{item.goodsPrice}}
</view>
</view>
</view>
</view>
<view class="bottomHint" wx:if="{{bottomHint}}">
我是有底线的~
</view>
</view>
</view>