safty.wxml 3.9 KB
<!--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>