safty.wxml
3.9 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
<!--pages/index/safty/safty.wxml-->
<view class='page'>
<view class='banner'>
<view class=' iconfont icon-fanhui ' catchtap='get_back'></view>
<view class='coupons'>安心检测</view>
</view>
<view class='top_box '>
<swiper>
<swiper-item wx:for='{{slide}}' wx:key='{{item.id}}'>
<image src='{{item.image}}'></image>
</swiper-item>
</swiper>
</view>
<view class='canldar_time '>
<view class='canldar_time_item {{categoryId==item.id? "active": ""}} ' wx:for='{{category}}' wx:key='{{item.id}}' bindtap='changeCategoryId' data-id='{{item.id}}'>{{item.name}}</view>
</view>
<view>
<view class='content_canldar' wx:if='{{categoryId==category[0].id}}'>
<view class='content_canladar_item' wx:for='{{list[0]}}' wx:key='{{item.id}}' bindtap='jump_safety_detail' data-id='{{item.id}}'>
<view class='content_item_image '>
<image src='{{item.more.thumbnail}} '></image>
</view>
<view class='content_item_right '>
<view class='content_item_top '>{{item.post_title}}</view>
<view class='content_item_bottom '>
<view class='content_item_bottom_left '>查看详情</view>
<view class='content_item_bottom_right iconfont icon-icondayu '></view>
</view>
</view>
</view>
</view>
<view class='content_canldar' wx:if='{{categoryId==category[1].id}}'>
<view class='content_canladar_item' wx:for='{{list[1]}}' wx:key='{{item}}' bindtap='jump_safety_detail' data-id='{{item.id}}'>
<view class='content_item_image '>
<image src='{{item.more.thumbnail}} '></image>
</view>
<view class='content_item_right '>
<view class='content_item_top '>{{item.post_title}}</view>
<view class='content_item_bottom '>
<view class='content_item_bottom_left '>查看详情</view>
<view class='content_item_bottom_right iconfont icon-icondayu '></view>
</view>
</view>
</view>
</view>
<view class='content_canldar' wx:if='{{categoryId==category[2].id}}'>
<view class='content_canladar_item' wx:for='{{list[2]}}' wx:key='{{item.id}}' bindtap='jump_safety_detail' data-id='{{item.id}}'>
<view class='content_item_image '>
<image src='{{item.more.thumbnail}} '></image>
</view>
<view class='content_item_right '>
<view class='content_item_top '>{{item.post_title}}</view>
<view class='content_item_bottom '>
<view class='content_item_bottom_left '>查看详情</view>
<view class='content_item_bottom_right iconfont icon-icondayu '></view>
</view>
</view>
</view>
</view>
</view>
</view>