searchlist.wxml
1.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
<!--pages/my_collect/my_collect.wxml-->
<view class='collectbox'>
<view class='searchbox'>
<view class='iconfont icon-sousuo'></view>
<view class='search_input'>
<input placeholder='{{keyword}}' placeholder-class='placeholder_input' bindblur="beginsearch"></input>
</view>
</view>
<!-- <view class='collect_navbox'>
<view class='collect_nav collect_active'>已购买</view>
<view class='collect_nav'>未购买</view>
<view class='collect_nav'>视频</view>
</view> -->
</view>
<view >
<view class="nodata" wx:if="{{homelist.length==0}}">暂无数据</view>
<block wx:else>
<view class='collect_item' wx:for='{{homelist}}' wx:key bindtap="detail" data-id="{{item.id}}" data-free="{{item.goods_price}}">
<view class='itemimg'>
<image src='{{item.thumbnail}}'></image>
</view>
<view class='itemtxt'>
<view>{{item.goods_name}}</view>
<view>{{item.category_name}}</view>
<view>浏览 {{item.hit_num}} 次</view>
<view class='itemprice'>{{item.goods_price}}</view>
</view>
</view>
</block>
</view>