1
|
<!-- 搜索输入框的遮罩层 -->
|
1
|
<!-- 搜索输入框的遮罩层 -->
|
2
|
<view class="searchregister" wx:if="{{searchshow}}">
|
2
|
<view class="searchregister" wx:if="{{searchshow}}">
|
3
|
- <view class="searchitem">
|
|
|
4
|
- <view class="searchitemleft">
|
3
|
+ <view class="searchitem" wx:for="{{searchlist}}" wx:key='' bindtap="searchlist">
|
|
|
4
|
+ <view class="searchitemleft" >
|
5
|
<view class="searimg">
|
5
|
<view class="searimg">
|
6
|
<image src="{{url}}aicon_04@2x.png"></image>
|
6
|
<image src="{{url}}aicon_04@2x.png"></image>
|
7
|
</view>
|
7
|
</view>
|
8
|
|
8
|
|
9
|
- <view class="searchtitle">泸州老窖</view>
|
|
|
10
|
- </view>
|
|
|
11
|
-
|
|
|
12
|
- <view class="iconfont icon-jiantou listrow "></view>
|
|
|
13
|
-
|
|
|
14
|
- </view>
|
|
|
15
|
- <view class="searchitem">
|
|
|
16
|
- <view class="searchitemleft">
|
|
|
17
|
- <view class="searimg">
|
|
|
18
|
- <image src="{{url}}aicon_04@2x.png"></image>
|
|
|
19
|
- </view>
|
|
|
20
|
-
|
|
|
21
|
- <view class="searchtitle">泸州老窖</view>
|
|
|
22
|
- </view>
|
|
|
23
|
-
|
|
|
24
|
- <view class="iconfont icon-jiantou listrow "></view>
|
|
|
25
|
-
|
|
|
26
|
- </view>
|
|
|
27
|
- <view class="searchitem">
|
|
|
28
|
- <view class="searchitemleft">
|
|
|
29
|
- <view class="searimg">
|
|
|
30
|
- <image src="{{url}}aicon_04@2x.png"></image>
|
|
|
31
|
- </view>
|
|
|
32
|
-
|
|
|
33
|
- <view class="searchtitle">泸州老窖</view>
|
|
|
34
|
- </view>
|
|
|
35
|
-
|
|
|
36
|
- <view class="iconfont icon-jiantou listrow "></view>
|
|
|
37
|
-
|
|
|
38
|
- </view>
|
|
|
39
|
- <view class="searchitem">
|
|
|
40
|
- <view class="searchitemleft">
|
|
|
41
|
- <view class="searimg">
|
|
|
42
|
- <image src="{{url}}aicon_04@2x.png"></image>
|
|
|
43
|
- </view>
|
|
|
44
|
-
|
|
|
45
|
- <view class="searchtitle">泸州老窖</view>
|
|
|
46
|
- </view>
|
|
|
47
|
-
|
|
|
48
|
- <view class="iconfont icon-jiantou listrow "></view>
|
|
|
49
|
-
|
|
|
50
|
- </view>
|
|
|
51
|
- <view class="searchitem">
|
|
|
52
|
- <view class="searchitemleft">
|
|
|
53
|
- <view class="searimg">
|
|
|
54
|
- <image src="{{url}}aicon_04@2x.png"></image>
|
|
|
55
|
- </view>
|
|
|
56
|
-
|
|
|
57
|
- <view class="searchtitle">泸州老窖</view>
|
9
|
+ <view class="searchtitle">{{item.name}}</view>
|
58
|
</view>
|
10
|
</view>
|
59
|
|
11
|
|
60
|
<view class="iconfont icon-jiantou listrow "></view>
|
12
|
<view class="iconfont icon-jiantou listrow "></view>
|
61
|
|
13
|
|
62
|
</view>
|
14
|
</view>
|
|
|
15
|
+
|
63
|
|
16
|
|
64
|
</view>
|
17
|
</view>
|
65
|
<view class="searchhead">
|
18
|
<view class="searchhead">
|
|
@@ -75,10 +28,10 @@ |
|
@@ -75,10 +28,10 @@ |
75
|
</view>
|
28
|
</view>
|
76
|
|
29
|
|
77
|
<view class="searcontent">
|
30
|
<view class="searcontent">
|
78
|
- <input placeholder='搜索酒品/品牌/酒企' placeholder-class='searcontent' />
|
31
|
+ <input placeholder='搜索酒品/品牌/酒企' placeholder-class='searcontent' bindinput="enterword" value="{{keyword}}" />
|
79
|
</view>
|
32
|
</view>
|
80
|
|
33
|
|
81
|
- <view class="closeimg">
|
34
|
+ <view class="closeimg" bindtap="clear">
|
82
|
<image src="{{url}}aicon_07x.png"></image>
|
35
|
<image src="{{url}}aicon_07x.png"></image>
|
83
|
</view>
|
36
|
</view>
|
84
|
</view>
|
37
|
</view>
|
|
@@ -92,13 +45,9 @@ |
|
@@ -92,13 +45,9 @@ |
92
|
|
45
|
|
93
|
<view class="textbox">
|
46
|
<view class="textbox">
|
94
|
|
47
|
|
95
|
- <view class="seahead">
|
|
|
96
|
- <view class="searword">茅台</view>
|
|
|
97
|
- <view class="searword">茅台</view>
|
|
|
98
|
- <view class="searword">茅台</view>
|
|
|
99
|
- <view class="searword">茅台</view>
|
|
|
100
|
- <view class="searword">茅台</view>
|
|
|
101
|
- <view class="searword">茅台</view>
|
48
|
+ <view class="seahead" >
|
|
|
49
|
+ <view class="searword" wx:for="{{list}}" wx:key="">{{item.name}}</view>
|
|
|
50
|
+
|
102
|
</view>
|
51
|
</view>
|
103
|
|
52
|
|
104
|
<view class="historyrecord">
|
53
|
<view class="historyrecord">
|
|
@@ -109,13 +58,9 @@ |
|
@@ -109,13 +58,9 @@ |
109
|
<view class="hisword">历史记录</view>
|
58
|
<view class="hisword">历史记录</view>
|
110
|
|
59
|
|
111
|
</view>
|
60
|
</view>
|
112
|
- <view class="seahead">
|
|
|
113
|
- <view class="searword">茅台</view>
|
|
|
114
|
- <view class="searword">茅台</view>
|
|
|
115
|
- <view class="searword">茅台</view>
|
|
|
116
|
- <view class="searword">茅台</view>
|
|
|
117
|
- <view class="searword">茅台</view>
|
|
|
118
|
- <view class="searword">茅台</view>
|
61
|
+ <view class="seahead" wx:if="{{history.length!=0}}">
|
|
|
62
|
+ <view class="searword" wx:for="{{history}}" wx:key='' bindtap="searchhistory" data-keyword="{{item.keyword}}">{{item.keyword}}</view>
|
|
|
63
|
+
|
119
|
</view>
|
64
|
</view>
|
120
|
<view class="historyrecord">
|
65
|
<view class="historyrecord">
|
121
|
<view class="hisimg">
|
66
|
<view class="hisimg">
|
|
@@ -127,46 +72,42 @@ |
|
@@ -127,46 +72,42 @@ |
127
|
</view>
|
72
|
</view>
|
128
|
|
73
|
|
129
|
<view class="seahead">
|
74
|
<view class="seahead">
|
130
|
- <view class="searword">茅台</view>
|
|
|
131
|
- <view class="searword">茅台</view>
|
|
|
132
|
- <view class="searword">茅台</view>
|
|
|
133
|
- <view class="searword">茅台</view>
|
|
|
134
|
- <view class="searword">茅台</view>
|
|
|
135
|
- <view class="searword">茅台</view>
|
75
|
+ <view class="searword" wx:for="{{favorite}}" wx:key=''>{{item.name}}</view>
|
|
|
76
|
+
|
136
|
</view>
|
77
|
</view>
|
137
|
|
78
|
|
138
|
</view>
|
79
|
</view>
|
139
|
</view>
|
80
|
</view>
|
140
|
|
81
|
|
141
|
-<view class="searchresult" wx:else>
|
82
|
+<view class="searchresult" wx:if="{{searchlist}}">
|
142
|
|
83
|
|
143
|
<view class="jiupin" wx:if="{{select==1}}">
|
84
|
<view class="jiupin" wx:if="{{select==1}}">
|
144
|
|
85
|
|
145
|
- <view class="searchitem">
|
86
|
+ <view class="searchitem" wx:for="{{searchlistarr}}" wx:key=''>
|
146
|
<view class="searchitemleft">
|
87
|
<view class="searchitemleft">
|
147
|
<view class="itemleftimg">
|
88
|
<view class="itemleftimg">
|
148
|
- <image src="{{url}}aicon_11@2x.png"></image>
|
89
|
+ <image src="{{item.logo}}"></image>
|
149
|
</view>
|
90
|
</view>
|
150
|
|
91
|
|
151
|
<view class="itemiddle">
|
92
|
<view class="itemiddle">
|
152
|
- <view class="itemidelename">泸州迎宾酒</view>
|
93
|
+ <view class="itemidelename">{{item.name}}</view>
|
153
|
<view class="nambottom">
|
94
|
<view class="nambottom">
|
154
|
- <text class="namebottomitem">53°</text>
|
|
|
155
|
- <text class="namebottomitem">浓香型</text>
|
|
|
156
|
- <text class="namebottomitem">53°</text>
|
|
|
157
|
- <text class="namebottomitem">53°</text>
|
95
|
+ <text class="namebottomitem">{{item.degree_name}}</text>
|
|
|
96
|
+ <text class="namebottomitem">{{item.odor_name}}</text>
|
|
|
97
|
+ <text class="namebottomitem">{{item.price}}</text>
|
|
|
98
|
+ <text class="namebottomitem">{{item.ml}}</text>
|
158
|
</view>
|
99
|
</view>
|
159
|
</view>
|
100
|
</view>
|
160
|
</view>
|
101
|
</view>
|
161
|
|
102
|
|
162
|
- <view class="starimg">
|
|
|
163
|
- <!-- aicon_010x.png -->
|
|
|
164
|
-
|
|
|
165
|
- <image src="{{url}}aicon_09x.png"></image>
|
103
|
+ <view class="starimg" catchtap="collect" data-id="{{item.id}}">
|
|
|
104
|
+ <image src="{{url}}aicon_10x.png" wx:if="{{item.sel}}"></image>
|
|
|
105
|
+ <image src="{{url}}aicon_09x.png" wx:else></image>
|
|
|
106
|
+
|
166
|
</view>
|
107
|
</view>
|
167
|
|
108
|
|
168
|
</view>
|
109
|
</view>
|
169
|
- <view class="searchitem">
|
110
|
+ <!-- <view class="searchitem">
|
170
|
<view class="searchitemleft">
|
111
|
<view class="searchitemleft">
|
171
|
<view class="itemleftimg">
|
112
|
<view class="itemleftimg">
|
172
|
<image src="{{url}}aicon_11@2x.png"></image>
|
113
|
<image src="{{url}}aicon_11@2x.png"></image>
|
|
@@ -184,7 +125,7 @@ |
|
@@ -184,7 +125,7 @@ |
184
|
</view>
|
125
|
</view>
|
185
|
|
126
|
|
186
|
<view class="starimg">
|
127
|
<view class="starimg">
|
187
|
- <!-- aicon_010x.png -->
|
128
|
+
|
188
|
|
129
|
|
189
|
<image src="{{url}}aicon_09x.png"></image>
|
130
|
<image src="{{url}}aicon_09x.png"></image>
|
190
|
</view>
|
131
|
</view>
|
|
@@ -208,7 +149,7 @@ |
|
@@ -208,7 +149,7 @@ |
208
|
</view>
|
149
|
</view>
|
209
|
|
150
|
|
210
|
<view class="starimg">
|
151
|
<view class="starimg">
|
211
|
- <!-- aicon_010x.png -->
|
152
|
+
|
212
|
|
153
|
|
213
|
<image src="{{url}}aicon_09x.png"></image>
|
154
|
<image src="{{url}}aicon_09x.png"></image>
|
214
|
</view>
|
155
|
</view>
|
|
@@ -232,7 +173,7 @@ |
|
@@ -232,7 +173,7 @@ |
232
|
</view>
|
173
|
</view>
|
233
|
|
174
|
|
234
|
<view class="starimg">
|
175
|
<view class="starimg">
|
235
|
- <!-- aicon_010x.png -->
|
176
|
+
|
236
|
|
177
|
|
237
|
<image src="{{url}}aicon_09x.png"></image>
|
178
|
<image src="{{url}}aicon_09x.png"></image>
|
238
|
</view>
|
179
|
</view>
|
|
@@ -256,12 +197,11 @@ |
|
@@ -256,12 +197,11 @@ |
256
|
</view>
|
197
|
</view>
|
257
|
|
198
|
|
258
|
<view class="starimg">
|
199
|
<view class="starimg">
|
259
|
- <!-- aicon_010x.png -->
|
|
|
260
|
-
|
200
|
+
|
261
|
<image src="{{url}}aicon_09x.png"></image>
|
201
|
<image src="{{url}}aicon_09x.png"></image>
|
262
|
</view>
|
202
|
</view>
|
263
|
|
203
|
|
264
|
- </view>
|
204
|
+ </view> -->
|
265
|
</view>
|
205
|
</view>
|
266
|
|
206
|
|
267
|
<view class="brand" wx:if="{{select==2}}">
|
207
|
<view class="brand" wx:if="{{select==2}}">
|