<navbar home back text="我的活动"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class="market">
  <i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll" style="top:{{navigationBarHeight}}">
    <i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab>
  </i-tabs>
  <view style='padding-top:114rpx;'>
    <view wx:for='{{list}}' wx:if="{{list.length!=0}}" class='section' wx:key="index">
      <view class='detail_msg' bindtap="gotoDetail" data-id='{{item.id}}'>
        <view class='logo'>
          <image src='{{item.coverImg}}' style="{{mouldConfig.activityDeyImgH}}"></image>
        </view>
        <view>
          <view class="title">{{item.title}}</view>
          <view id="text">报名时间：{{item.startTime}}至{{item.endTime}}</view>
          <view id="text">活动时间：{{item.activityStartTime}}至{{item.activityEndTime}}</view>
        </view>
        <view class='info'>
          <image class="frImg" wx:if="{{item.status == 1}}" src="{{orangeImg}}" mode="aspectFill" lazy-load="true"><text>已下线</text></image>
          <image class="frImg" wx:if="{{item.status > 1&&item.past }}" src="{{blueImg}}" mode="aspectFill" lazy-load="true"><text>已过期</text></image>
          <!-- <image class="frImg" wx:if="{{item.status == 2&&key==0}}" src="{{grayImg}}" mode="aspectFill" lazy-load="true"><text>报名失败</text></image> -->
          <!-- <image class="frImg" wx:if="{{item.status == 3&&key==0}}" src="{{grayImg}}" mode="aspectFill" lazy-load="true"><text>活动结束</text></image> -->
          <view>
            <!-- <text wx:if="{{item.status == 0&&key==0}}" style='font-size:30rpx;font-weight:bold;'>报名中</text>
            <text wx:if="{{item.status == 1&&key==0}}" style='font-size:30rpx;font-weight:bold;'>报名成功</text>
            <text wx:if="{{item.status == 2&&key==0}}" style='font-size:30rpx;font-weight:bold;'>报名失败</text> -->
          </view>
        </view>
      </view>
      <!-- <view class='bottom'></view> -->
    </view>
    <view class="dingdan" wx:if="{{list.length==0}}">
      <image src="{{noCoupon}}" mode="widthFix"></image>
      <text>您还没有参加活动</text>
      <button class='goback' bindtap='goback'>返回首页</button>
    </view>
  </view>
  <view class="loading" wx:if="{{loading}}">
    <image src="{{loadingUrl}}" mode="widthFix"></image>{{content}}
  </view>
</view>