<!--packageE/others/cloudwarehouse/pickUpArea/pickUpArea.wxml-->
<view id="pickuparea">
  <view class="topicon" catchtap="goback">
    <van-icon name="arrow-left" />
  </view>
  <view class="tabnav">
    <van-tabs actived="{{active}}" bind:change="onClick">
      <van-tab title="提货区" name="1"></van-tab>
      <van-tab title="封存区" name="2"></van-tab>
    </van-tabs>
  </view>
  <view class="list">
    <view class="search-box">
      <icon class="iconfont icon-sousuo1" style="color: #ccc;padding-left:22rpx;"></icon>
      <input type="text" value="{{inputs}}" bindblur="tapinp" placeholder="搜索订单" />
    </view>
    <view class="shopList" wx:for="{{list}}" wx:key="ind" catchtap="tapDetail" data-id="{{item.goods_id}}">
      <view class="left">
        <image src="{{item.thumb}}" mode="aspectFill"></image>
      </view>
      <view class="right">
        <view class="title">{{ item.title }}</view>
        <view class="shopKu">
          <view class="kuMum">库存{{ active == 0 ? item.deposit_stock : item.seal_stock }}</view>
          <view class="btn" wx:if="{{active == 0}}">提货</view>
          <view class="btn" wx:if="{{active == 1}}" catchtap="getCondition" data-id="{{item.goods_id}}">解冻</view>
        </view>
      </view>
    </view>
    <view style="text-align: center;color: #999;" wx:if="{{last_page <= current_page}}">暂无更多</view>
    <view style="text-align: center;color: #999;" wx:if="{{current_page < last_page}}" catchtap='getMore'>加载更多</view>
  </view>
  <van-popup show="{{show}}" custom-style="border-radius: 20rpx;">
    <view class="popupBox">
      <view class="poptop">
        <view class="span">解冻条件</view>
        <van-icon name="cross" catchtap="closeShow" />
      </view>
      <view class="popConten">
        <view class="popContenSpan span">直推下级购买以下任意{{ info.get_condition }}件商品可解封一次</view>
        <view class="box">
          <view class="boxlis" wx:for="{{info.has_many_appoint_goods}}" wx:key="index" catchtap="togoods"
            data-id='{{(item.id)}}'>
            <view class="img">
              <image src="{{item.thumb}}" alt=""></image>
            </view>
            <view class="bottomlis">
              <span>{{ item.title }}</span>
              <p>{{language['money']}}{{ item.price }}</p>
            </view>
          </view>
        </view>
      </view>
    </view>
  </van-popup>
</view>