<!--packageC/selfCarry/selectSelfPickupPoint/selectSelfPickupPoint.wxml-->
<view id="select_selfPickupPoint">
  <van-tabs active="{{ active }}" sticky swipeable bind:change="onChange">
    <van-tab title="当前{{plugin_name}}">
      <selfPickupPointChild wx:if="{{activeDeliver.id}}" selected="{{true}}" datas="{{activeDeliver}}"
        pluginName="{{plugin_name}}"></selfPickupPointChild>
      <view wx:else style="text-align: center;padding: 48rpx 0;">{{positongStatus == -1 ? '获取失败！请选择其他' : '正在获取中，请稍后...'}}</view>
    </van-tab>
    <van-tab title="选择其他{{plugin_name}}">
      <!-- <van-sticky offset-top="{{ 44 }}"> -->
      <view class="top-nav">
        <view class="location" catchtap="showAddress">
          <i class="iconfont icon-icon_location"></i>
          <view class="cityClass">{{ positongStatus == 0 ? "定位中" : positongStatus == -1 ? "手动选择" : city }}</view>
          <i class="iconfont icon-member-bottom"></i>
        </view>
        <view class="search">
          <view class="popver-action" catchtap="onShowPopver">{{ activeActions }} <i
              class="iconfont icon-member-bottom"></i>
            <view class="popver-box" wx:if="{{showPopover}}">
              <view class="popover-arrow"></view>
              <view wx:for="{{actions}}" catchtap="onSelectPopver" data-item="{{item}}">{{item.text}}</view>
            </view>
          </view>
          <input wx:if="{{activeActionsVaule == 1}}" bindinput="tapAddress" bindconfirm="getList" type="search"
            value="{{search_address}}" confirm-type='search' placeholder="请输入地址" />
          <input wx:if="{{activeActionsVaule == 2}}" type="search" bindconfirm="getList" bindinput="tapKwd"
            value="{{kwd}}" confirm-type='search' placeholder="请输入{{plugin_name}}名称" />
        </view>
      </view>
      <!-- </van-sticky> -->
      <selfPickupPointChild wx:if="{{activeDeliver.id}}" selected="{{true}}" datas="{{activeDeliver}}"
        pluginName="{{plugin_name}}"></selfPickupPointChild>
      <view wx:for="{{list}}">
        <selfPickupPointChild wx:if="{{activeDeliver.id}}" selected="{{false}}" datas="{{item}}"
          pluginName="{{plugin_name}}" bindchooseDeliver="chooseDeliver"></selfPickupPointChild>
      </view>
    </van-tab>
  </van-tabs>
  <yzArea show="{{showArea}}" bind:confirm="confirmArea"></yzArea>
</view>