search.wxml
6.3 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!-- 搜索输入框的遮罩层 -->
<view class="searchregister" wx:if="{{searchshow}}" catchtouchmove='true'>
<view class="cannodataimg" wx:if="{{searchlist.length==0}}">
<image src="/img/wushuju.png"></image>
</view>
<block wx:else>
<view class="searchitem" wx:for="{{searchlist}}" wx:key='' bindtap="searchlist" data-name="{{item.name}}">
<view class="searchitemleft">
<view class="searimg">
<image src="{{url}}aicon_04@2x.png"></image>
</view>
<view class="searchtitle">{{item.name}}</view>
</view>
<view class="iconfont icon-jiantou listrow "></view>
</view>
</block>
</view>
<view class="searchhead">
<view class="searchheaditem {{select==1?'selectactive':''}}" data-id="1" bindtap="select">酒品</view>
<view class="searchheaditem {{select==2?'selectactive':''}}" data-id="2" bindtap="select">品牌</view>
<view class="searchheaditem {{select==3?'selectactive':''}}" data-id="3" bindtap="select">酒企</view>
</view>
<view class="searchtent">
<view class="searchtentleft">
<view class="searimg">
<image src="{{url}}aicon_04@2x.png"></image>
</view>
<view class="searcontent">
<input placeholder='搜索酒品/品牌/酒企' placeholder-class='searcontent' bindinput="enterword" value="{{keyword}}" />
</view>
<view class="closeimg" bindtap="clear">
<image src="{{url}}aicon_07x.png"></image>
</view>
</view>
<view class="searchtentr" bindtap="clear">取消</view>
</view>
<view class="searchrecord" wx:if="{{recordshow}}">
<view class="textbox">
<view class="seahead">
<view class="searword" wx:for="{{list}}" wx:key="" bindtap="enterwine" data-id="{{item.id}}" wx:if="{{select==1}}">{{item.name}}</view>
<view class="searword" wx:for="{{list}}" wx:key="" bindtap="enterpinpai" data-id="{{item.id}}" wx:if="{{select==2}}">{{item.name}}</view>
<view class="searword" wx:for="{{list}}" wx:key="" bindtap="enterjiuqi" data-id="{{item.id}}" wx:if="{{select==3}}">{{item.name}}</view>
</view>
<view class="historyrecord">
<view class="hisimg">
<image src="{{url}}aicon_05x.png"></image>
</view>
<view class="hisword">历史记录</view>
</view>
<view class="seahead" wx:if="{{history.length!=0}}">
<view class="searword" wx:for="{{history}}" wx:key='' bindtap="searchhistory" data-keyword="{{item.keyword}}">{{item.keyword}}</view>
</view>
<view class="historyrecord">
<view class="hisimg">
<image src="{{url}}aicon_06x.png"></image>
</view>
<view class="hisword">猜你喜欢</view>
</view>
<view class="seahead">
<view class="searword" wx:for="{{favorite}}" wx:key='' wx:key="" bindtap="enterwine" data-id="{{item.id}}" wx:if="{{select==1}}">{{item.name}}</view>
<view class="searword" wx:for="{{favorite}}" wx:key='' wx:key="" bindtap="enterpinpai" data-id="{{item.id}}" wx:if="{{select==2}}">{{item.name}}</view>
<view class="searword" wx:for="{{favorite}}" wx:key='' wx:key="" bindtap="enterjiuqi" data-id="{{item.id}}" wx:if="{{select==3}}">{{item.name}}</view>
</view>
</view>
</view>
<view class="nodataimg" wx:if="{{searchlistarr.length==0&&searchlist==true}}">
<image src="/img/wushuju.png"></image>
</view>
<view wx:else>
<view class="searchresult" wx:if="{{searchlist}}">
<view class="jiupin" wx:if="{{select==1}}">
<view class="searchitem" wx:for="{{searchlistarr}}" wx:key='' bindtap="jumpbrand" data-id="{{item.id}}">
<view class="searchitemleft">
<view class="itemleftimg">
<image src="{{item.logo}}"></image>
</view>
<view class="itemiddle">
<view class="itemidelename">{{item.name}}</view>
<view class="nambottom">
<text class="namebottomitem">{{item.degree_name}}</text>
<text class="namebottomitem">{{item.odor_name}}</text>
<text class="namebottomitem">{{item.price}}</text>
<text class="namebottomitem">{{item.ml}}</text>
</view>
</view>
</view>
<view class="starimg" catchtap="collect" data-id="{{item.id}}">
<image src="{{url}}aicon_10x.png" wx:if="{{item.is_favorite==1}}"></image>
<image src="{{url}}aicon_09x.png" wx:else></image>
</view>
</view>
</view>
<view class="brand" wx:if="{{select==2}}">
<view class="searchitem" wx:for="{{searchlistarr}}" wx:key='' bindtap="jumpbrand" data-id="{{item.id}}">
<view class="searchitemleft">
<view class="branditemleftimg">
<image src="{{item.logo}}"></image>
</view>
<view class="itemiddle">
<view class="itemidelename">{{item.name}}</view>
<view class="nambottom">
<text class="namebottomitem">{{item.sort_name}}</text>
<text class="namebottomitem">{{item.country}}</text>
<text class="namebottomitem">{{item.city}}</text>
<text class="namebottomitem">{{item.odor_name}}</text>
</view>
</view>
</view>
<view class="starimg" catchtap="collect" data-id="{{item.id}}">
<image src="{{url}}aicon_10x.png" wx:if="{{item.is_favorite==1}}"></image>
<image src="{{url}}aicon_09x.png" wx:else></image>
</view>
</view>
</view>
<view class="brand" wx:if="{{select==3}}">
<view class="searchitem" wx:for="{{searchlistarr}}" wx:key='' bindtap="jumpcompany" data-id="{{item.id}}">
<view class="searchitemleft">
<view class="jiuqiimg">
<image src="{{item.logo}}"></image>
</view>
<view class="itemiddle">
<view class="itemidelename">{{item.name}}</view>
<view class="nambottom">
<text class="namebottomitem">{{item.country}}</text>
<text class="namebottomitem">{{item.city}}</text>
<text class="namebottomitem">{{item.sort_name}}</text>
<text class="namebottomitem">{{item.concern_count}}关注</text>
</view>
</view>
</view>
<view class="atten" wx:if="{{item.is_concern==1}}" data-id="{{item.id}}" catchtap="attention">取消关注</view>
<view class="atten" data-id="{{item.id}}" wx:else catchtap="attention">关注</view>
</view>
</view>
</view>
</view>