<!--packageI/warehouseFarm/warehouseFarmBuyGift/warehouseFarmBuyGift.wxml-->
<view id="gift-list">
  <van-sticky>
    <van-search value="{{ keyword }}" placeholder="搜索商品" use-action-slot bind:change="onChangeSearch" bind:search="onSearch">
      <view slot="action" bind:tap="toUrl" data-url="/packageA/member/myOrder_v2/myOrder_v2" data-status="0" data-orderType="warehousePurchasing">购买记录</view>
    </van-search>
  </van-sticky>

  <van-tabs wx:if="{{isResizeTabs}}" active="{{active}}" sticky offset-top="54" animated swipeable bind:click="onClickCate">
    <van-tab wx:for="{{cate}}" title="{{item.name}}" name="{{item.id}}">
      <view class="main">
        <view class="list" wx:for="{{list}}" catchtap="toUrl" data-url="/packageI/warehouseFarm/warehouseFarmGood/warehouseFarmGood" data-id="{{item.id}}">
          <view class="good-img">
            <image src="{{item.thumb}}" alt="" />
          </view>
          <view class="title">{{ item.title }}</view>
          <view class="price">￥{{ item.price }}</view>
        </view>
      </view>
      <view wx:if="{{list.length == 0}}" style="text-align: center;color: #999;">没有更多 ~</view>
    </van-tab>
  </van-tabs>
</view>