download.wxml
1.6 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
<!--pages/download/download.wxml-->
<view class='collectbox'>
<view class='searchbox'>
<view class='iconfont icon-sousuo'></view>
<view class='search_input'>
<input placeholder='请输入您要搜索的教案内容' placeholder-class='placeholder_input' bindblur="enterword"></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 class='collect_nav'>语法</view>
<view class='collect_nav'>免费资源</view> -->
<view wx:for="{{navbar}}" data-idx="{{index}}" class="collect_nav kindnav_item {{currentTab==index ? 'collect_active' : ''}}" wx:key="unique" bindtap="navbarTap" data-id="{{item.category_id}}" data-free="{{item.is_free}}">{{item.category_name}}
</view>
</view>
</view>
<view class="nodata" wx:if="{{downlist.length==0}}">暂无数据</view>
<block wx:else>
<view class='collect_item' wx:for='{{downlist}}' 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 wx:if="{{item.goods_name!=null}}">{{item.goods_name}}</view>
<view class="categry" wx:if="{{item.category!=null}}">{{item.category}}</view>
<view>浏览 {{item.hit_num}} 次</view>
<view class="commentlist">
<view class='itemprice' wx:if="{{state==1}}">{{item.goods_price}}</view>
<view class="commentword" catchtap="entercomment" data-id="{{item.id}}">评论</view>
</view>
</view>
</view>
</block>