searchsecond.wxml
2.7 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
<view class="pagebox">
<view class="sousuo">
<view class="search">
<!-- <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<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="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.image}}"></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>