<import src="../../module/header.wxml"/>
<import src="../../module/caritem/mybuycaritem.wxml"/>
<template 
  is="header"
  data="{{title:'我买的车',headerheight:headerheight,hasback:true}}"
/>
<page-scroll 
  className="conent"
  styleSheet="height:{{windowh-headerheight}}rpx;"
  bind:scrolltolower="{{hasloadall?'':'getMyBuy'}}"
>

  <view wx:if="{{list.length>0}}" class="mybuy_list">
    <block wx:for="{{list}}" wx:key="id">
      <template is="mybuycaritem" data="{{car:item,index:index}}"/>
    </block>
  </view>
  <view wx:else class="mybuy_empty"> 
    <view class="mybuy_empty_w">您还没有相关订单，快去预约吧！</view>
    <navigator 
      open-type="reLaunch"
      url="../buy/buy" 
      class="mybuy_empty_bt">去逛逛
    </navigator>
  </view> 
  
</page-scroll>