<!--order.wxml-->
<view class="orders">
     <view class="order-tabbar-item bac flex-row j-center a-center {{tabIndex == '0' ? 'tabbar-item-current' : ''}}" data-tabindex="0" bindtap="changeTabbar">
       <image src='../../images/icons/all_orders.png' class='imgsize'></image> 
       <view class='ord'>所有订单</view>
     </view>
     <view class="order-tabbar-item bac flex-row j-center a-center {{tabIndex == '1' ? 'tabbar-item-current' : ''}}" data-tabindex="1" bindtap="changeTabbar">
         <image src='../../images/icons/not_order.png' class='imgsize'></image>
         <view class='ord'>已发货</view>
     </view>
     <view class="order-tabbar-item bac flex-row j-center a-center {{tabIndex == '2' ? 'tabbar-item-current' : ''}}" data-tabindex="2" bindtap="changeTabbar">
         <image src='../../images/icons/send_order.png' class='imgsize'></image>
          <view class='ord'> 未受理</view>
     </view>
     <!-- <view class="order-tabbar-item bac flex-row j-center a-center {{tabIndex == '3' ? 'tabbar-item-current' : ''}}" data-tabindex="3" bindtap="changeTabbar">
          <image src='../../images/icons/com_order.png' class='imgsize'></image>
          <view class='ord'>已收货</view>
     </view> -->
</view>
<scroll-view scroll-y style="height: 92vh;" wx:if="{{orderList.length > 0}}">
    <!-- 全部订单 -->
        <!-- 待付款 -->
        <view class="order-item-kuang" data-orderkind="1" wx:if="{{orderList}}" wx:for="{{orderList}}" wx:key="unique" data-ordersn="{{item.order_sn}}">
            <view class="order-item white-bg">
                  <view class="tops" style="border-bottom: 2rpx solid #eeeeee;">
                       <view class='titles'>
                      <text class="">{{item.create_time}}</text>
                       </view>
                      <view class="tops_right">
                          <text wx:if="{{item.status == 0}}">待发货</text>
                          <text wx:elif="{{item.status == 1}}">已发货</text>
                          <text wx:elif="{{item.status == 2}}">未受理</text>
                          <!-- <text wx:elif="{{item.status == 4}}">交易完成</text>
                          <text wx:elif="{{item.status == 5}}">关闭</text>
                          <text wx:elif="{{item.status == 6}}">申请退货/款</text>
                          <text wx:elif="{{item.status == 7}}">申请失败</text>
                          <text wx:elif="{{item.status == 8}}">申请受理中</text>
                          <text wx:elif="{{item.status == 9}}">已退货/款</text> -->
                      </view>
                  </view>
                  <view class='imgs'>
                    <view class='imgs_left'>
                        <image src="{{ item.img}}" mode='aspectFill'></image>
                    </view>
                    <view class='imgs_right'>
                        <view class='imgs_right_top'>
                          {{item.int_name}}
                        </view>
                        <view class='imgs_right_down'>
                          积分<text style='color:#FE498F;'> {{item.int}}</text> 
                        </view>
                    </view>
                  </view>

                  <!--待付款  -->
                  <!-- <view class="flex-row j-end padding-20" wx:if="{{item.status == 1}}">
                      <button class="hui-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="cancleOrder">取消订单</button>
                      <button class="red-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="goPay">去付款</button>
                  </view> -->

                  <!--  待发货-->
                  <!-- <view class="flex-row j-end padding-20" wx:elif="{{item.status == 2}}">
                      <button class="hui-btn option-btn" data-ordersn="{{item.order_sn}}" data-status="{{item.status}}" catchtap="refoundMoney">申请退款</button>
                  </view> -->

                  <!--待收货  -->
                  <!-- <view class="flex-row j-end padding-20" wx:elif="{{item.status == 3}}">
                      <button class="hui-btn option-btn" data-ordersn="{{item.order_sn}}" data-status="{{item.status}}" catchtap="refoundMoney">申请退款</button>
                      <!-- <button class="orange-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="seeLogistics">物流查询</button> -->
                      <!-- <button class="red-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="sureReceiveOrder">确认收货</button>
                  </view> --> 

                  <!--交易完成  -->
                  <!-- <view class="flex-row j-end padding-20" wx:elif="{{item.status == 4}}">
                      <button class="hui-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="deleteOrder">删除订单</button>
                  </view> -->

                  <!--交易关闭  -->
                  <!-- <view class="flex-row j-end padding-20" wx:elif="{{item.status == 5}}">
                      <button class="hui-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="deleteOrder">删除订单</button>
                  </view> -->

                  <!-- 申请退款/款   -->
                  <!-- <view class="flex-row j-end padding-20" wx:if="{{item.status == 6}}">
                      <button class="hui-btn option-btn" catchtap="cancleOrder">取消订单</button>
                      <button class="red-btn option-btn" catchtap="goPay">去付款</button>
                  </view> -->

                  <!--申请失败  -->
                  <!-- <view class="flex-row j-end padding-20" wx:if="{{item.status == 7}}">
                      <button class="hui-btn option-btn" catchtap="cancleOrder">取消订单</button>
                      <button class="red-btn option-btn" catchtap="goPay">去付款</button>
                  </view> -->

                  <!--申请受理中  -->
                   <!-- <view class="flex-row j-end padding-20" wx:if="{{item.status == 8 && item.apply_type == 2}}">
                      <button class="hui-btn option-btn" data-ordersn="{{item.order_sn}}" catchtap="uploadLogistics">填写物流信息</button>
                  </view>  -->
           </view>
      </view>
</scroll-view>
 <view class="flex-column a-center j-center order-no-wrap" wx:if="{{orderList.length == 0}}">
        <view class='zanwu'>
              <image src="../../images/icons/no.png"></image> 
              <view class='no_text'>还没有相关订单</view>
        </view>
</view> 