giftBagSize.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!-- 礼包列表 -->
  2. <!-- 固定列表 -->
  3. <view class="giftBagList" wx:if="{{giftBagListOne.length>0}}">
  4. <view class="title">{{giftBagInfo.name}}</view>
  5. <block class="giftBagBox" wx:for="{{giftBagListOne}}" wx:key="index">
  6. <view class="giftBagList-item" wx:for="{{item.goods_list}}" wx:for-item="itemA" wx:key="index">
  7. <image src="{{itemA.cover_url}}"></image>
  8. <view class="right">
  9. <view class="name">{{itemA.goods_name}}</view>
  10. <view class="num">x1</view>
  11. </view>
  12. </view>
  13. </block>
  14. </view>
  15. <!-- 分配列表 -->
  16. <view class="giftBagList" wx:for="{{giftBagList}}" wx:key="index" wx:if="{{giftBagList.length>0}}">
  17. <view class="title">{{num[item.goods_list.length-1]}}选{{num[item.num-1]}}</view>
  18. <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}}">
  19. <image src="{{itemA.cover_url}}"></image>
  20. <view class="right">
  21. <view class="name">{{itemA.goods_name}}</view>
  22. <view class="radio-box" wx:if="{{item.num<=1}}">
  23. <view wx:if="{{!itemA.status}}" class="radio"></view>
  24. <image wx:else src="/images/icon_13.png"></image>
  25. </view>
  26. <view class="radioB" wx:else>
  27. <image bindtap="reduce" data-item="{{item}}" data-index="{{index}}" data-indexA="{{indexA}}" src="../../../images/reduce.png"></image>
  28. <view class="radioNum">{{itemA.num}}</view>
  29. <image bindtap="add" data-item="{{item}}" data-index="{{index}}" data-indexA="{{indexA}}" src="../../../images/add.png"></image>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 确认选择 -->
  35. <view class="btn">
  36. <view class="affirm" bindtap="affrimSelect">立即购买</view>
  37. </view>