<van-nav-bar title="我的订单" left-text="" right-text="" bind:click-left="onClickLeft" bind:click-right="onClickRight" style=" position: fixed;left: 0;top: 0;width: 100%;z-index: 2;" />

<view class="status-box" style="margin-top: {{height}}px;">
  <view bindtap="statusTap" class="status-label {{index == currentType ? 'active' : ''}}" wx:for-items="{{statusType}}" wx:key="{{index}}" data-index="{{index}}">
    {{item}}
    <view class="{{tabClass[index]}}"></view>
  </view>
</view>
<view class="no-order" style="margin-top: {{height}}px;" wx:if="{{!order_list.length}}">
  <image src="/pages/image/address.png" class="no-order-img"></image>
  <view class="text">暂无订单</view>
</view>
<!-- 全部 -->
<view wx:if="{{nav_type==1||all}}">

  <view class="order-list" wx:if="{{order_list.length}}">
    <view wx:for="{{order_list}}" data-index="{{index}}" data-status="{{item.status}}" data-item="{{item}}" wx:for-item="item" bindtap="itemclick" class="flex-item">
      <view style=" padding: 0 24rpx;height:366rpx;position: relative;background: #ffffff;">
        <view style="height:66rpx;">
          <text class="time_msg">订单号：{{item.orderNumber}}</text>
          <!-- 订单状态：-2：已取消 -1：拒绝接单  0：待接单  1：已接单（待支付） 2：已支付（待服务）
                    3：服务中 4：已完成 5申请退款 6退款中 7已退款 8：已结算 -->
          <view wx:if="{{item.status==-2}}" class="status_msg">{{"已取消"}}</view>
          <view wx:if="{{item.status==-1}}" class="status_msg">{{"拒绝接单"}}</view>
          <view wx:if="{{item.status==0}}" class="status_msg">{{"待接单"}}</view>
          <view wx:if="{{item.status==1}}" class="status_msg">{{"已接单"}}</view>
          <view wx:if="{{item.status==2}}" class="status_msg">{{"待服务"}}</view>
          <view wx:if="{{item.status==3}}" class="status_msg">{{"服务中"}}</view>
          <view wx:if="{{item.status==4}}" class="status_msg">{{"已完成"}}</view>
          <view wx:if="{{item.status==5}}" class="status_msg">{{"申请退款"}}</view>
          <view wx:if="{{item.status==6}}" class="status_msg">{{"退款中"}}</view>
          <view wx:if="{{item.status==7}}" class="status_msg">{{"已退款"}}</view>
          <view wx:if="{{item.status==8}}" class="status_msg">{{"已结算"}}</view>
        </view>

        <view style="height: 1rpx;background: #ECECEC;"></view>
        <view class="details_box">

          <image src="{{item.userbAvatar}}" class="Group-image"></image>
          <view style="margin-left: 31rpx;margin-top: 40rpx;">
            <view class="title">{{item.userbName}}</view>
            <view class="detail_number">{{item.serviceTime}}天</view>
            <view class="money">实付款：<text style="font-size: 30rpx;color: #FF8F1F;font-family: PingFang SC;font-weight: bold;">￥{{item.yuguMoney}}元</text></view>
          </view>
          <view class="detail_btn" bindtap="go_pay" data-id="{{item.order_id}}" wx:if="{{item.status==1}}" data-item="{{item}}">去付款</view>

          <!-- <view class="detail_btn" bindtap="go_Qcode" data-id="{{item.order_id}}" wx:if="{{item.status==1}}">查看二维码</view> -->
        </view>
      </view>
    </view>
  </view>
</view>