<!--packageI/warehouseFarm/warehouseFarmExtract/warehouseFarmExtract.wxml-->
<van-sticky>
  <van-search value="{{keyword}}" placeholder="搜索商品"  bind:change="onChangeSearch" bind:search="onSearch" shape="round" />
</van-sticky>
<view style="padding: 0 28rpx 160rpx;" class="group-box">
  <van-checkbox-group value="{{ result }}" bind:change="changeGroup">
    <van-checkbox name="{{index}}" wx:for="{{list}}" checked-color="#ff464c" >
      <view class="list-item">
        <image class="good-img" src="{{item.thumb}}" alt="" />
        <view class="item-right">
          <view class="title">{{ item.title }}</view>
          <view class="good-info" catchtap>
            <view class="stock">库存：{{ item.nums }}</view>
            <van-stepper min="0" max="{{item.nums}}" bind:change="onChangeStepper" data-index="{{index}}"  value="{{item.total}}" button-size="22px" />
          </view>
        </view>
      </view>
    </van-checkbox>
  </van-checkbox-group>
</view>
<view class="bottom-button-box">
  <van-checkbox value="{{checked}}" bind:change='checkChange' checked-color="#ff464c">全选</van-checkbox>
  <van-button type="primary" size="small" round color="#ff464c" style="" bind:click="toOrder">下单</van-button>
</view>