<view class="page">
  <scroll-view scroll-y="true" style="height:100%;" wx:if="{{list.length>0}}">
    <view class="listBox" wx:for="{{list}}" wx:key='index' data-id="{{item.id}}" bindtap="navDetail">
      <view style="flex:1.2">
        <image src="{{IMG_NAME+item.smallImg}}" mode="aspectFill"></image>
      </view>
      <view style="flex:1;padding-left:26rpx;box-sizing:border-box;position: relative;">
        <text>{{item.name}}</text>
        <view class="lable" style="background:{{item.status == 'SIGNING'? '#4C84FF':'#E94F56'}}">
          <text class="circular"></text>
          <text wx:if="{{item.status == 'SIGNING'}}">报名中</text> 
          <text wx:if="{{item.status == 'SIGN_END'}}">已满额</text>
          <text wx:if="{{item.status == 'ACT_END'}}">活动结束</text>
        </view>
      </view>
    </view>
  </scroll-view>
  <view wx:else style="text-align:center;margin-top:50%;font-size:30rpx;">暂无活动数据</view>
</view>