<!-- 礼包列表 -->
<!-- 固定列表 -->
<view class="giftBagList" wx:if="{{giftBagListOne.length>0}}">
  <view class="title">{{giftBagInfo.name}}</view>
  <block class="giftBagBox" wx:for="{{giftBagListOne}}" wx:key="index">
    <view class="giftBagList-item" wx:for="{{item.goods_list}}" wx:for-item="itemA" wx:key="index">
      <image src="{{itemA.cover_url}}"></image>
      <view class="right">
        <view class="name">{{itemA.goods_name}}</view>
        <view class="num">x1</view>
      </view>
    </view>
  </block>
</view>
<!-- 分配列表 -->
<view class="giftBagList" wx:for="{{giftBagList}}" wx:key="index" wx:if="{{giftBagList.length>0}}">
  <view class="title">{{num[item.goods_list.length-1]}}选{{num[item.num-1]}}</view>
  <view class="giftBagList-item {{itemA.status?'activeExchange':''}}" wx:for="{{item.goods_list}}" wx:for-item="itemA" wx:for-index="indexA" wx:key="indexA" bindtap="selectGift" data-item="{{item}}" data-itemA="{{itemA}}" data-index="{{index}}" data-indexA="{{indexA}}">
    <image src="{{itemA.cover_url}}"></image>
    <view class="right">
      <view class="name">{{itemA.goods_name}}</view>
      <view class="radio-box" wx:if="{{item.num<=1}}">
        <view wx:if="{{!itemA.status}}" class="radio"></view>
        <image wx:else src="/images/icon_13.png"></image>
      </view>
      <view class="radioB" wx:else>
        <image bindtap="reduce" data-item="{{item}}" data-index="{{index}}" data-indexA="{{indexA}}" src="../../../images/reduce.png"></image>
        <view class="radioNum">{{itemA.num}}</view>
        <image bindtap="add" data-item="{{item}}" data-index="{{index}}" data-indexA="{{indexA}}" src="../../../images/add.png"></image>
      </view>
    </view>
  </view>
</view>
<!-- 确认选择 -->
<view class="btn">
  <view class="affirm" bindtap="affrimSelect">立即购买</view>
</view>