index.wxml 1.4 KB

12345678910111213141516171819202122
  1. <view class='like i-class' wx:if="{{list.length&&show_goods_guess_like==1}}">
  2. <view class='like-title'>——{{likeTitle}}——</view>
  3. <view class='like-list'>
  4. <i-router-link routerClass="new-comers-item" url="/lionfish_comshop/pages/goods/goodsDetail?id={{item.actId}}" wx:for="{{list}}" wx:key="id">
  5. <i-img defaultImage="../../images/placeholder-refund.png" height="285" width="285" iClass="new-img" loadImage="{{item.skuImage}}"></i-img>
  6. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  7. <view class='title'>{{item.spuName}}</view>
  8. <view class='new-bot'>
  9. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  10. <block wx:if="{{item.car_count<=0}}">
  11. <i-button iClass="add-cart" wx:if="{{disabled||item.spuCanBuyNum==0}}">
  12. <image class='img' src="../../images/icon-add-shopCart-disabled.png"></image>
  13. </i-button>
  14. <i-button bind:click="openSku" data-idx="{{index}}" iClass="add-cart" wx:else>
  15. <i-addcart iClass='img' />
  16. </i-button>
  17. </block>
  18. <i-input-number wx:else addImage="../../images/icon-add-2.png" bind:change="changeNumber" bind:outOfMax="outOfMax" iNumberImg="i-number-img" iClassNumberText="input-number-text" max="{{item.spuCanBuyNum}}" min="0" reduceImage="../../images/icon-reduce-2.png" value="{{item.car_count}}" idx="{{index}}"></i-input-number>
  19. </view>
  20. </i-router-link>
  21. </view>
  22. </view>