<!--packageI/groupWork/components/yz_specsV2/yz_specs.wxml-->
<van-popup show="{{show}}" position="bottom" class="yz_specs mint-popup-4" round closeable bind:close="close" close-on-click-overlay="{{false}}">
  <view class="specifications">
    <view class="shopimg">
      <view class="chooser_img">
        <image src="{{popThumb}}" />
      </view>
      <view class="right">
        <view class="price" style="color: #f14e4e">
          ￥
          <view class="option_price">{{ popPrice }}</view>
          <view wx:if="{{isRent}}">/天</view>
        </view>
        <slot name="sku-header-price"></slot>

        <view class="option">库存{{ popStock }}{{ popUnit }}</view>
        <slot name="sku-header-stock"></slot>

        <view class="option" wx:if="{{popDescription}}">{{ popDescription }}</view>
        <slot name="sku-header-description"></slot>

        <slot name="sku-header-other"></slot>
      </view>
    </view>

    <view class="sku-body-box">
      <slot name="sku-body-top"></slot>

      <!-- <view class="shopinfo noVantRadio" v-if="specs.length !== 0">
        <dl wx:for="{{specs}}" wx:for-index="i" wx:for-item="specsParent">
          <dt>{{ specsParent.title }}</dt>
          <dd>
            <van-radio-group value="{{specsParent.description}}" checked-color="#f15353" bind:change="selectSpecs">
              <van-radio class="{{  specsParent.description == specitem ?'vantRadioshow':''}}"
                style="border-color: #f14e4e;background-color:{{specsParent.description == specitem ? '#f14e4e' : '#fff'}};color: {{specsParent.description != specitem ? '#f14e4e' : '#fff'}}"
                disabled="{{specitem.c}}" wx:for="{{specsParent.specitem}}" wx:for-index="i" wx:for-item="specitem"
                name="{{specitem}}" checked-color="#f14e4e">
                {{ specitem.title }}
              </van-radio>
            </van-radio-group>
          </dd>
        </dl>
      </view> -->


      <view class="shopinfoContent">
        <view class="shopinfo" wx:key="{{specsIdex}}" wx:for="{{specs}}" wx:for-index="specsIdex"
          wx:for-item="specsParent">
          <view class="dl">
            <view class="dt">{{specsParent.title}}</view>
            <view class="dd" data-descr="{{specsParent.description}}">
              <view wx:for="{{specsParent.specitem}}" wx:key="{{specitemIdex}}" wx:for-index="specitemIdex"
                wx:for-item="specitem"
                class="spec {{specsParent.description==specitem.id?'sele':''}} {{specitem.c?'disab':''}}"
                data-specitem="{{specitem}}" data-specsidex="{{specsIdex}}" bindtap='selectSpecs'>
                {{specitem.title}}
              </view>
            </view>
          </view>
        </view>
      </view>

      <slot name="sku-body-bottom"></slot>
    </view>


    <view class="van-row">
      <view class="num">购买数量：</view>
      <van-stepper value="{{selectedNum}}" min="{{startSaleNum}}"
        max="{{quota == -1 ? optionsMaxCount : quota == 0 ? '' : quota}}" bind:plus="stepperPlus"
        bind:minus="stepperMinus" bind:change="stepperChange" integer id="yz_specs_stepper"
        disabled="{{disableStepperInput || optionsMaxCount == 0}}" />
    </view>
    <slot name="sku-stepper"></slot>

    <view class="sku-buy-btn-style" >
      <van-button wx:if="{{!hiddenBuyBtn}}" disabled="{{quota == -1 && optionsMaxCount == 0}}"  size="large" color="#f14e4e" type="danger" class="btsmall" block
        catchtap="buyClicked">
        确认
      </van-button>
      <slot name="sku-buy-btn"></slot>
    </view>
  </view>
</van-popup>