<popup show="{{show}}" height="{{height}}" bind:close="close" class="popupHeight">
<view class="sku-container">
  <!-- 头部 -->
  <!-- <view class="sku-header">
    <view class="sku-header__goods-info">
      <view class="sku__goods-name ellipsis">{{info.title}}</view>
      <view class="sku__goods-price" wx:if="{{presellOpen==0}}">￥{{sku.price}}</view>
      <view wx:if="{{presellOpen != 0}}">
        <view>预付金：<text class="sku__goods-price">￥{{sku.presellPrice}}</text></view>
        <view>活动价：<text class="sku__goods-price">￥{{sku.price}}</text></view>
      </view>
    </view>
  </view> -->
  <checkbox-group bindchange="checkboxChange" class="check-box" wx:if="{{maxUserCoin>0}}">
    <checkbox checked="{{checkeduseCoin}}" color="#ee3a43"/>仅显示可用宝贝币的商品
  </checkbox-group>
  <!-- 中间 -->
  <view class="sku-body">
    <!-- 列表 -->
    <view class="sku-group-container">
      <view class="sku-row" wx:for="{{sku.tree}}" wx:key="*this">
        <view class="sku-row__title">{{item.k}}:</view>
        <view class="sku-row__item {{index==0 && i==initialSku.s1 || index==1&&i==initialSku.s2?'sku-row__item--active':''}} {{(index==0 && ((items.actnum<=0 && items.waitActNum<=0) || (items.status == 2 || (presellOpen==0 && items.status == 1 && items.waitActNum<=0) || (presellOpen==1 && items.actnum<=0)))) || (index==1 && ((items.status==1 && items.actnum<=0 && items.waitActNum<=0) || items.status==2))?'sku-row__item--disabled':''}}" wx:for="{{item.v}}" wx:for-item="items" wx:for-index="i" wx:key="*this" bindtap="checkChange" data-disabled="{{(index==0 && ((items.actnum<=0 && items.waitActNum<=0) || (items.status == 2 || (presellOpen==0 && items.status == 1 && items.waitActNum<=0) || (presellOpen==1 && items.actnum<=0)))) || (index==1 && ((items.status==1 && items.actnum<=0 && items.waitActNum<=0)|| items.status==2)) ? true : false}}" data-index="{{index}}" data-i="{{i}}">{{items.name}} 
          <text class="identify attr-r" wx:if="{{index==0 && items.status==1 && items.actnum==0 && items.waitActNum>0 && presellOpen!=1}}">候补</text>
          <view class="identify attr-l" wx:if="{{items.userCoin>0}}">
            <text class='icon icon-coin font12'></text>
          </view>
        </view>
      </view>
      <view class="militaryTip" wx:if="{{initialSku.userCoin>0}}">最多可用{{initialSku.userCoin}}枚宝贝币</view>
    </view>
    <!-- 选择器 -->
    <view class="sku-stepper-stock">
      <view class="sku-stepper-container">
        <view class="sku__stepper-title">购买数量：</view>
        <view class="stepper sku__stepper sku-tep">
          <view class="stepper__minus {{initialSku.selectedNum <= sku.minT?'stepper__minus__diabled':''}}" data-type="minus" bindtap="quantity"></view>
          <input type="number" value="{{initialSku.selectedNum || ''}}" class="stepper__input" data-type="modfiy" bindblur="quantity"/>{{sku.stock_num}}
          <view class="stepper__plus {{initialSku.selectedNum>=sku.stock_num?'stepper__plus__diabled':(initialSku.selectedNum >= sku.maxT?'stepper__plus__diabled':'')}}" data-type="plus" bindtap="quantity"></view>
        </view>
      </view>
      <!-- <view class="van-sku__quota" wx:if="{{sku.maxT <= sku.quota}}">每人限购{{sku.maxT}}件</view> -->
      <view class="van-sku__quota">
        <view class="sku-price">￥{{sku.price}}</view>
      </view>
    </view>
  </view>
<button class="button button-warn" data-type="{{(saleType && presellOpen!=1)?1:0}}" bindtap="sumbit">{{presellOpen!=1 &&saleType?'售罄候补':'立即购买'}}</button>
</view>
</popup>