virtualcard-goodsrow.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <view class="pinrow-wrap">
  2. <i-router-link routerClass="spu-content" url="/lionfish_comshop/pages/goods/goodsDetail?id={{spuItem.actId}}&type=virtualcard">
  3. <view class="item-top">
  4. <!-- 标签 -->
  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. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="240"
  11. iClass="spu-img" lazyLoad="true" loadImage="{{spuItem.bigImg?spuItem.bigImg:spuItem.skuImage}}" width="300"></i-img>
  12. <view class="spu-play" wx:if="{{spuItem.is_video}}">
  13. <image class="img" src="../../images/play.png"></image>
  14. </view>
  15. <view class="act-end" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
  16. <view class="act-end" wx:elif="{{spuItem.actEnd==1}}">已结束</view>
  17. </view>
  18. <view class="item-bottom">
  19. <view class="spu-title">
  20. <text class='span'>{{spuItem.spuName}}</text>
  21. </view>
  22. <view class="spu-desc" wx:if="{{spuItem.spuDescribe}}">
  23. <text class="em">{{spuItem.spuDescribe}}</text>
  24. </view>
  25. <view class="spu-count">
  26. <text class="pin-tag" style="color:{{skin.color}};border-color:{{skin.color}}">可兑换{{spuItem.code_money}}元</text>
  27. </view>
  28. <view class="spu-price">
  29. <view class="sale-price">
  30. <text class='span'>¥{{spuItem.actPrice[0]}}</text>.{{spuItem.actPrice[1]}}
  31. </view>
  32. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  33. </view>
  34. </view>
  35. <block wx:if="{{!isPast}}">
  36. <i-button class="add-cart-disabled" disabled="{{spuItem.spuCanBuyNum==0}}" wx:if="{{spuItem.spuCanBuyNum==0}}">
  37. 已抢光
  38. </i-button>
  39. <view bind:click="goLink" class="add-cart" style="background: linear-gradient(90deg, {{skin.color}} 0%, {{skin.light}} 100%);" wx:else>去抢购</view>
  40. </block>
  41. <view class="mask" wx:if="{{spuItem.spuCanBuyNum==0||spuItem.actEnd==1?'disabled':''}}"></view>
  42. </i-router-link>
  43. </view>