<view class="page">
  <view class="swiper-tab">
    <view class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab">项目入孵</view>
    <view class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">入驻申请</view>
    <view class="swiper-tab-item {{currentTab==2?'active':''}}" data-current="2" bindtap="clickTab">厂房申请</view>
  </view>

  <swiper current="{{currentTab}}" duration="300" bindchange="swiperTab">
    <swiper-item>
      <scroll-view scroll-y="true" class="contenBox" lower-threshold="100" bindscrolltolower="scrollToLower"
        wx:if="{{repairList.length>0}}">
        <view class="detailbox" bindtap="navDetail" data-id="{{item.id}}" data-url="/pages/applyType/settledIn/settledIn?id="
          wx:for="{{repairList}}" wx:key='index'>
          <view>
            <view style="padding: 4%;">
              <view>
                <view class="titleC"
                  style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size:12pt;">
                  企业名称：{{item.name}}
                </view>
                <view class="detailTextC" style="margin-bottom:10rpx;width:70%;">
                  <text wx:if="{{item.status == 'APPROVING'}}">待审批</text>
                  <text wx:if="{{item.status == 'PASS'}}">审批通过</text>
                  <text wx:if="{{item.status == 'REFUSE'}}">已拒绝</text>
                </view>
              </view>
              <view class="detailTextC" style="margin-top:40rpx;">创建时间：{{item.createTime}}</view>
            </view>
          </view>
        </view>
        <view style="text-align: center;margin: 10px;">
          <view wx:if="{{loading}}">加载中...</view>
          <view wx:if="{{noMore}}">没有更多了</view>
          <view wx:if="{{loadingFailed}}">数据加载失败,请重试</view>
        </view>
      </scroll-view>
      <view wx:else style="text-align:center;margin-top:50%;font-size:30rpx;">暂无服务</view>
    </swiper-item>
    <swiper-item>
      <scroll-view scroll-y="true" class="contenBox" lower-threshold="100" bindscrolltolower="scrollToLower"
        wx:if="{{repairList.length>0}}">
        <view class="detailbox" bindtap="navDetail" data-id="{{item.id}}"
          data-url="/pages/applyType/settledInApproval/settledInApproval?id=" wx:for="{{repairList}}" wx:key='index'>
          <view>
            <view style="padding: 4%;">
              <view>
                <view class="titleC"
                  style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size:12pt;">
                  企业名称：{{item.name}}
                </view>
                <view class="detailTextC" style="margin-bottom:10rpx;width:70%;">
                  <text wx:if="{{item.status == 'APPROVING'}}">待审批</text>
                  <text wx:if="{{item.status == 'PASS'}}">审批通过</text>
                  <text wx:if="{{item.status == 'REFUSE'}}">已拒绝</text>
                </view>
              </view>
              <view class="detailTextC" style="margin-top:40rpx;">创建时间：{{item.createTime}}</view>
            </view>
          </view>
        </view>
        <view style="text-align: center;margin: 10px;">
          <view wx:if="{{loading}}">加载中...</view>
          <view wx:if="{{noMore}}">没有更多了</view>
          <view wx:if="{{loadingFailed}}">数据加载失败,请重试</view>
        </view>
      </scroll-view>
      <view wx:else style="text-align:center;margin-top:50%;font-size:30rpx;">暂无服务</view>
    </swiper-item>
    <swiper-item>
      <scroll-view scroll-y="true" class="contenBox" lower-threshold="100" bindscrolltolower="scrollToLower"
        wx:if="{{repairList.length>0}}">
        <view class="detailbox" bindtap="navDetail" data-id="{{item.id}}"
          data-url="/pages/applyType/moveInApply/moveInApply?id=" wx:for="{{repairList}}" wx:key='index'>
          <view>
            <view style="padding: 4%;">
              <view>
                <view class="titleC"
                  style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size:12pt;">
                  企业名称：{{item.companyName}}
                </view>
                <view class="detailTextC" style="margin-bottom:10rpx;width:70%;">
                  <text wx:if="{{item.status == 'APPROVING'}}">待审批</text>
                  <text wx:if="{{item.status == 'PASS'}}">审批通过</text>
                  <text wx:if="{{item.status == 'REFUSE'}}">已拒绝</text>
                </view>
              </view>
              <view class="detailTextC" style="margin-top:40rpx;">创建时间：{{item.createTime}}</view>
            </view>
          </view>
        </view>
        <view style="text-align: center;margin: 10px;">
          <view wx:if="{{loading}}">加载中...</view>
          <view wx:if="{{noMore}}">没有更多了</view>
          <view wx:if="{{loadingFailed}}">数据加载失败,请重试</view>
        </view>
      </scroll-view>
      <view wx:else style="text-align:center;margin-top:50%;font-size:30rpx;">暂无服务</view>
    </swiper-item>
  </swiper>
</view>