<!--orderList.wxml-->
<view class="tab" bindtap="switchTab">
  <view class="tab_item {{tabIndex == 0?'active':''}}" id="0">所有订单</view>
  <view class="tab_item {{tabIndex == 1?'active':''}}" id="1">待收货</view>
  <view class="tab_item {{tabIndex == 2?'active':''}}" id="2">已完成</view>
</view>
<view class="order-item" wx:for="{{orderList}}" wx:if="{{showAll? true:item.status == orderStatus}}">
<view class="order-row">
    <view class="order-name">订单号 ：</view>
    <view class="order-content">{{item.order_sn}}</view>
  </view>
  <view class="order-row">
    <view class="order-name">订单金额 ：</view>
    <view class="order-content">¥{{item.order_money}}</view>
  </view>
  <view class="order-row">
    <view class="order-name">佣金收入 ：</view>
    <view class="order-content">¥ {{item.money}}</view>
  </view>
  <view class="order-row">
    <view class="order-name">下单时间 ：</view>
    <view class="order-content">{{item.addtime}}</view>
  </view>
  <view class="order-row" wx:if="{{showAll}}">
    <view class="order-name">订单状态 ：</view>
    <view class="order-content" wx:if="{{item.status == 0}}" style="color:#ffd642">待收货</view>
    <view class="order-content" wx:if="{{item.status == 1}}" style="color:#2bad4a">已完成</view>
  </view>
</view>
 <view class="empty_tips" wx:if="{{orderCount == 0}}"> 
  <view class="iconfont icon-allorder"></view>
  <view class="empty_tips_text">暂无订单</view>
</view>