<!--order.wxml-->
<import src="../../template/empty_box/empty_box"/>
<block wx:for="{{orderList}}" wx:if="{{orderList.length>0}}" wx:key="orderList">
  <navigator url="../orderDetail/orderDetail?id={{item.order_sn}}" hover-class="active" class="order">
    <view class="order_header">
      <view class="order_num">订单编号：{{item.order_sn}}</view>
      <view class="order_status">{{item.status == 1?'待付款':item.status == 2?'已付款':'已关闭'}}</view>
    </view>
    <view class="order_goods">
      <view class="goods_image">
        <image src="{{item.car_content[0].img}}"></image>
      </view>
      <view class="goods_info">
        <view class="goods_name">{{item.car_content[0].title}} <text wx:if="{{item.car_content.length>1}}" class="more">等</text></view>
        <view class="goods_count">共 {{item.car_content.length}} 件</view>
      </view>
    </view>
    <view class="order_footer">
      <view class="total_price">总价： ￥ {{item.price}}</view>
      <view class="order_detail">订单详情<text class="iconfont icon-more"></text></view>
    </view>
  </navigator>
</block>
<block wx:if="{{orderList.length<=0}}">
  <template data="{{empty_box}}" is="empty_box"></template>
</block>
