<!--pages/collect/collect.wxml-->

<import src="../../module/header.wxml"/>
<import src="../../module/caritem/collectcaritem.wxml"/>
<template 
    is="header"
    data="{{title:'我的收藏',headerheight:headerheight,hasback:true}}"
  />

<!-- <scroll-view 
  class="conent"
  style="height:{{windowh}}rpx;"
  scroll-y="{{selectbar==''?'true':'false'}}"
  bindscrolltolower="{{hasloadall?'':'getCollect'}}"
> -->
<page-scroll 
  className="conent"
  styleSheet="height:{{contentheight}}px;"
  scroll-y="{{openlog?'false':'true'}}"
  bind:scrolltolower="{{hasloadall?'':'getCollect'}}"
>
  <view wx:if="{{list.length>0}}" class="collect_list">
    <block wx:for="{{list}}" wx:key="id">
      <template is="collectcaritem" data="{{car:item,index:index}}"/>
    </block>
  </view>
  <view wx:else class="collect_empty"> 
    <view class="collect_empty_w">还没有收藏哦~</view>
    <navigator 
      url="../buy/buy" 
      open-type="navigate"
      class="collect_empty_bt">去逛逛</navigator>
  </view> 
  
</page-scroll>