index.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <label for="formId">
  2. <view class="comming-spu-content" bindtap="goDetails" data-id="{{spuItem.actId}}" data-img="{{spuItem.skuImage}}">
  3. <view class="imgbox">
  4. <block wx:if="{{diyInfo.goodsTag=='default'}}">
  5. <view wx:if="{{spuItem.label_info && spuItem.label_info.type==0}}" class='item-tag'>
  6. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  7. <view class='tag-name {{spuItem.label_info.len==2?"two-word":""}}'>{{spuItem.label_info.tagcontent}}</view>
  8. </view>
  9. <view wx:if="{{spuItem.label_info && spuItem.label_info.type==1}}" class='item-tag' style='background:url({{spuItem.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  10. </block>
  11. <block wx:if="{{diyInfo.goodsTag=='diy'}}">
  12. <view class='item-tag' style='background:url({{diyInfo.tagImg.imageUrl}}) no-repeat left top;background-size: 100%;'></view>
  13. </block>
  14. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="120" iClass="spu-img-content" lazyLoad="true" loadImage="{{spuItem.skuImage}}" width="120"></i-img>
  15. <view class="spu-active" wx:if="{{reduction.is_open_fullreduction==1&&spuItem.is_take_fullreduction==1}}">
  16. <view class="tag">满{{reduction.full_money}}减{{reduction.full_reducemoney}}</view>
  17. <view class="tag tag-green" wx:if="{{spuItem.isLimit}}">限购</view>
  18. </view>
  19. <view class="spu-play" wx:if="{{spuItem.is_video}}"><image class="img" src="../../images/play.png"></image></view>
  20. </view>
  21. <view class="spu-name">
  22. <text class='span'>{{spuItem.spuName}}</text>
  23. </view>
  24. <view class="spu-desc">
  25. <!-- <text class="em" wx:if="{{spuItem.spuDescribe}}">{{spuItem.spuDescribe}}</text> -->
  26. <i-vip-price wx:if="{{is_open_vipcard_buy==1&&spuItem.is_take_vipcard==1}}" price="{{spuItem.card_price}}"></i-vip-price>
  27. <i-vip-price wx:elif="{{spuItem.is_mb_level_buy==1}}" type="1" price="{{spuItem.levelprice}}"></i-vip-price>
  28. </view>
  29. <view class="spu-price">
  30. <view class="sale-price">
  31. <text class='span'>¥{{spuItem.actPrice[0]}}</text>.{{spuItem.actPrice[1]}}
  32. </view>
  33. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  34. </view>
  35. <block wx:if="{{!isPast}}">
  36. <block wx:if="{{number<=0}}">
  37. <i-button iClass="icon-shop" wx:if="{{disabled||spuItem.spuCanBuyNum==0||actEnd||spuItem.actEnd}}">
  38. <image class='img' src="../../images/icon-add-shopCart-disabled.png"></image>
  39. </i-button>
  40. <i-button bind:click="openSku" iClass="icon-shop" wx:else>
  41. <i-addcart iClass='img' fontsize="28" />
  42. </i-button>
  43. </block>
  44. <i-input-number wx:else class="iptnum" addImage="../../images/icon-add-2.png" bind:change="changeNumber" bind:outOfMax="outOfMax" iClass="index-input-number" iClassNumberText="input-number-text" max="{{spuItem.spuCanBuyNum}}" min="0" reduceImage="../../images/icon-reduce-2.png" value="{{number}}"></i-input-number>
  45. </block>
  46. <view class="mask" wx:if="{{spuItem.spuCanBuyNum==0}}">
  47. <view class="toast">已抢光</view>
  48. </view>
  49. <view class="mask" wx:elif="{{actEnd||spuItem.actEnd}}">
  50. <view class="toast">已结束</view>
  51. </view>
  52. </view>
  53. </label>