search.wxml
4.0 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
<view class="sousuo">
<view class="search">
<picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<!-- <view class="picker">
当前选择:{{array[index]}}
</view> -->
<view class="searchleft">
<view class="searchleftname">{{array[indexk]}}</view>
<view class="searchsanjiao">
<image src='/img/sanjiaodown.png'></image>
</view>
</view>
<!-- <view class="searchleft">
<view class="searchleftname">{{array[index]}}</view>
<view class="searchsanjiao">
<image src='/img/sanjiaodown.png'></image>
</view>
</view> -->
</picker>
<view class="searchright">
<view class="searchfightimg" bindtap="sousuo" wx:if="{{sousuoword}}">
<image src="/img/sousuo.png"></image>
</view>
<view class="searchfightimg" wx:else>
<image src="/img/sousuo.png"></image>
</view>
<view class="searchrightname">
<input placeholder='不同的搜索内容用空格隔开' bindinput='enterword' bindblur='shuru' value="{{keyword}}"/>
</view>
</view>
</view>
<view class="sousuoname" bindtap="sousuo" wx:if="{{sousuoword}}">搜索</view>
<view class="sousuoname" wx:else>搜索</view>
</view>
<view class="showitem" wx:if="{{show}}">
<view class="keyworditem">
<view class="history">搜索地名关键词</view>
<view class="searchjilu">
<view class="searchjiluitem {{item.sel==true?'selactive':''}}" wx:for="{{address}}" data-id="{{item.id}}" wx:key='' bindtap="seladdress" data-index="{{index}}">
{{item.name}}
</view>
</view>
</view>
<view class="keyworditem">
<view class="history">搜索内容关键词</view>
<view class="searchjilu">
<view class="searchjiluitem {{item.sel==true?'selactive':''}}" wx:for="{{text}}" bindtap="textsearch" data-id="{{item.id}}" data-index="{{index}}" wx:key='' bindtap="seltext">{{item.name}}</view>
</view>
</view>
<view class="keyworditem">
<view class="history historyk">搜索价格关键词
<text class='bioazhun'>2k标准</text> </view>
<view class="searchjilu">
<view class="searchjiluitem {{item.sel==true?'selactive':''}}" wx:for="{{price}}" data-price="{{item.name}}" wx:key='' bindtap="selprice" data-index="{{index}}">{{item.name}}</view>
</view>
</view>
</view>
<view wx:else>
<view class="nodata" wx:if="{{searcharr.length==0}}">暂无数据</view>
<view wx:else>
<!-- 搜索视频 -->
<view class="searchlist" wx:if="{{showlist==1}}">
<view class="searchlistbox">
<view wx:for="{{searcharr}}" wx:key='' bindtap="govideo" data-url="{{item.video}}" data-id="{{item.id}}">
<view class="searchboximg">
<image src="{{item.thumbnail}}"></image>
<view class="anniu">
<image src="/img/anniu.png"></image>
</view>
</view>
<view class="picboxname">{{item.title}}</view>
</view>
</view>
</view>
<!-- 搜素图片 -->
<view class="searchimglist" wx:if="{{showlist==2}}">
<view wx:for="{{searcharr}}" wx:key='' bindtap="gopic" data-id="{{item.id}}">
<view class="searchimgitem">
<image src="{{item.thumbnail}}"></image>
</view>
<view class="picboxname">{{item.title}}</view>
</view>
</view>
<!-- 搜素精美大片 -->
<view class="searchlist" wx:if="{{showlist==3}}">
<view class="searchlistbox">
<view class="searchboximg" wx:for="{{searcharr}}" wx:key='' bindtap="govideomei" data-url="{{item.video}}">
<image src="{{item.thumbnail}}"></image>
<view class="anniu">
<image src="/img/anniu.png"></image>
</view>
</view>
<view class="picboxname">{{item.title}}</view>
</view>
<!-- <view class="moreshuju" bindtap="jiazai">
<view class="moreshujuleft">
<image src="/img/more.png"></image>
</view>
<view class="moredata">点击加载更多</view>
</view> -->
</view>
</view>
</view>