banner-list.wxml 1.2 KB
<!--pages/index/banner-list/banner-list.wxml-->
<view class="content">
    <image src="{{pic}}" class="banner" mode="widthFix"></image>
    <view class='content_box'>
        <view class="no-data" wx:if="{{list.length === 0}}">暂无活动</view>
        <view class='content_item' wx:for='{{list}}' wx:key="index" wx:if="{{list.length>0}}"
              bindtap='goPostDetail' data-id="{{item.id}}" data-type="{{item.type}}">
            <!--<image src="http://pk86rwhci.bkt.clouddn.com/activity_img@2x.png"></image>-->
            <image src="{{item.pic}}"></image>
            <view class="title">
                <text class="area">{{item.title}}   {{item.time}}</text>
                <!--已加入人数小于最低人数-->
                <text class="num" wx:if="{{item.join_number<item.min}}">还差{{item.people}}人</text>
                <text class="num" wx:else>还可加入{{item.max - item.join_number}}人</text>
            </view>
            <view class="user">
                <!--<image src="../../../images/avatar@2x.png" class="avatar"></image>-->
                <image src="{{item.userPic}}" mode="aspectFill"></image>
                <text>{{item.userName}}   {{item.address}}</text>
            </view>
        </view>
    </view>
</view>