<view class='tabs vux-1px-b'>
  <block wx:key="index" wx:for="{{tabs}}">
    <view class='tabs_item {{selectedIndex == index?"selected":""}}' 
          data-type="{{item.type}}" 
          data-index="{{index}}" 
          bindtap='selectTab'>{{item.name}}</view>
  </block>
</view>
<view style='height:88rpx;'></view>
<view class="order_list" wx:if="{{orders.length > 0}}">
  <block wx:key="index" wx:for-index="idx" wx:for="{{orders}}">
    <view class='order_item'>
      <view class='order_time'>
          <text class='add_time'>{{addTimes[idx]}}</text>
          <rich-text nodes="订单号:{{item.vorder_info.order_sn}}"></rich-text>
      </view>
      <block wx:key="index" wx:for-item="goods_list"  wx:for="{{item.vorder_goods}}">
        <view class='order_content align_center'>
        <view class='order_image'>
          <image style='width:140rpx;height: 140rpx;' src='{{goods_list.goods_image}}'></image>
        </view>
        <view class='order_info'>
          <view>
            <text class='goods_name'>{{goods_list.goods_name}}</text>
          </view>
          <view>
            <text class='goods_spec'>{{goods_list.goods_spec}}</text>
          </view>
        </view>
        <view class='order_price'>
          <view>￥{{goods_list.goods_price}}</view>
        </view>
      </view>
      </block>
      <view class='order_total'>
        <text>合计：<text class='order_amount mr6'>￥{{item.vorder_info.pay_cash}}</text> 
      </text>
      </view>
      <view class='order_handle'>
        <block wx:key="index" wx:for="{{item.actions}}" wx:for-item="action">
          <text wx:if="{{(action.action != 'if_evaluation') && (action.action != 'if_refund_cancel')}}" 
                data-action="{{action.action}}" 
                data-orderid="{{item.vorder_info.order_id}}" 
                data-ordersn="{{item.vorder_info.order_sn}}" 
                data-index="{{idx}}" 
                data-paysn="{{item.vorder_info.pay_sn}}" 
                bindtap='order_action'>{{action.title}}</text>  
        </block> 
      </view>
    </view>
  </block>    
</view>
<view class='empty_order' wx:if="{{orders.length <= 0 && loading == false}}">
  <image class="empty_order_icon" src="../../image/empty_order.png"></image>
  <view class="emoty_order_title">您还没有相关的订单</view>
  <view class="emoty_order_subtitle">可以去看看有哪些想买的</view>
</view>
