<view class="page">
  <view class="next" bindtap="create">我要建议</view>
  <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 class="swiper-tab-item {{currentTab==3?'active':''}}" data-current="3" bindtap="clickTab">已完成</view>
  </view>

  <swiper current="{{currentTab}}" duration="300" bindchange="swiperTab">
    <swiper-item>
      <scroll-view scroll-y="true" bindscrolltolower="scrollToLower">
        <view class="contenBox textcolor" wx:for="{{list}}" wx:key='index' data-id="{{item.id}}" bindtap="repairDetail">
          <view style="margin-bottom:18rpx;">
            <text style="font-size:30rpx;color:black;">建议单号：</text>
            <text style="font-size:30rpx;color:black;">{{item.sn}}</text>
          </view>
          <view style="margin-bottom:10rpx;color:#4C84FF;">
            <text>状态：</text>
            <text wx:if="{{item.status==1}}">分派中</text>
            <text wx:if="{{item.status==2}}">处理中</text>
            <text wx:if="{{item.status==3}}">已完成</text>
          </view>
          <view style="margin-bottom:10rpx;">
            <text>建议时间：</text>
            <text>{{item.createTime}}</text>
          </view>
          <view>
            <text>描述：</text>
            <text>{{item.content}}</text>
          </view>
        </view>
      </scroll-view>
    </swiper-item>

    <swiper-item>
      <scroll-view scroll-y="true" bindscrolltolower="scrollToLower">
        <view class="contenBox textcolor" wx:for="{{list}}" wx:key='index' data-id="{{item.id}}" bindtap="repairDetail">
          <view style="margin-bottom:18rpx;">
            <text style="font-size:30rpx;color:black;">建议单号：</text>
            <text style="font-size:30rpx;color:black;">{{item.sn}}</text>
          </view>
          <view style="margin-bottom:10rpx;color:#4C84FF;">
            <text>状态：</text>
            <text>分派中</text>
          </view>
          <view style="margin-bottom:10rpx;">
            <text>建议时间：</text>
            <text>{{item.createTime}}</text>
          </view>
          <view>
            <text>描述：</text>
            <text>{{item.content}}</text>
          </view>
        </view>
      </scroll-view>
    </swiper-item>

    <swiper-item>
      <scroll-view scroll-y="true" bindscrolltolower="scrollToLower">
        <view class="contenBox textcolor" wx:for="{{list}}" wx:key='index' data-id="{{item.id}}" bindtap="repairDetail">
          <view style="margin-bottom:18rpx;">
            <text style="font-size:30rpx;color:black;">建议单号：</text>
            <text style="font-size:30rpx;color:black;">{{item.sn}}</text>
          </view>
          <view style="margin-bottom:10rpx;color:#4C84FF;">
            <text>状态：</text>
            <text>处理中</text>
          </view>
          <view style="margin-bottom:10rpx;">
            <text>建议时间：</text>
            <text>{{item.createTime}}</text>
          </view>
          <view>
            <text>描述：</text>
            <text>{{item.content}}</text>
          </view>
        </view>
      </scroll-view>
    </swiper-item>

    <swiper-item>
      <scroll-view scroll-y="true" bindscrolltolower="scrollToLower">
        <view class="contenBox textcolor" wx:for="{{list}}" wx:key='index' data-id="{{item.id}}" bindtap="repairDetail">
          <view style="margin-bottom:18rpx;">
            <text style="font-size:30rpx;color:black;">建议单号：</text>
            <text style="font-size:30rpx;color:black;">{{item.sn}}</text>
          </view>
          <view style="margin-bottom:10rpx;color:#4C84FF;">
            <text>状态：</text>
            <text>已完成</text>
          </view>
          <view style="margin-bottom:10rpx;">
            <text>建议时间：</text>
            <text>{{item.createTime}}</text>
          </view>
          <view>
            <text>描述：</text>
            <text>{{item.content}}</text>
          </view>
        </view>
      </scroll-view>
    </swiper-item>
  </swiper>

</view>