active.wxml
1.4 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
<view class='index_newbox'>
<view class='tabbar'>
<view class='tabbar_item' data-id='1' bindtap='clicktab'>
<picker range='{{city_arr}}' bindchange='selecteCtiy'>
<view class="title {{clickIndex?'titleActive':''}}">
{{city}}
</view>
</picker>
</view>
<view class='tabbar_item' data-id='2' bindtap='clicktab'>
<picker range='{{class_arr}}' bindchange='selecteClass'>
<view class="title {{clickIndexs?'titleActive':''}}">
{{category}}
</view>
</picker>
</view>
</view>
<view>
<view class='new_box'>
<navigator class='new_cell' wx:for='{{activity}}' wx:key url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<view class='new_cellmain'>
<view class='new_img'>
<image src='{{item.thumbnail}}' mode="aspectFill"> </image>
</view>
<view class='new_title'>{{item.activity_name}}</view>
<view class='title_box'>
<view class='wz_box'>
<image src='/imgs/dizhi@2x.png' />
<text>{{item.province_name}}</text>
</view>
<view class='word'>{{item.type_name}}</view>
</view>
<view>{{item.time}}</view>
</view>
</navigator>
<view class='empty' wx:if='{{activity.length == 0}}'>暂无数据,请去添加</view>
</view>
</view>
</view>