virtualcard-goodsone.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <i-router-link routerClass="spu-content" url="/lionfish_comshop/pages/goods/goodsDetail?id={{spuItem.actId}}&type=virtualcard">
  2. <view class="item-top">
  3. <view wx:if="{{spuItem.label_info && spuItem.label_info.type==0}}" class='item-tag'>
  4. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  5. <view class='tag-name {{spuItem.label_info.len==2?"two-word":""}}'>{{spuItem.label_info.tagcontent}}</view>
  6. </view>
  7. <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>
  8. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="240" iClass="spu-img" lazyLoad="true" loadImage="{{spuItem.bigImg?spuItem.bigImg:spuItem.skuImage}}" width="240"></i-img>
  9. <view class="spu-active" wx:if="{{reduction.is_open_fullreduction==1&&spuItem.is_take_fullreduction==1}}">
  10. <view class="tag">满{{reduction.full_money}}减{{reduction.full_reducemoney}}</view>
  11. <view class="tag tag-green" wx:if="{{spuItem.isLimit}}">限购</view>
  12. </view>
  13. <view class="spu-play" wx:if="{{spuItem.is_video}}"><image class="img" src="../../images/play.png"></image></view>
  14. </view>
  15. <view class="item-bottom">
  16. <view class="spu-title">
  17. <text class='span'>{{spuItem.spuName}}</text>
  18. </view>
  19. <view class="spu-title">
  20. <view class="pin-tag" style="color:{{skin.color}};border-color:{{skin.color}}">
  21. 可兑换{{spuItem.code_money}}元
  22. </view>
  23. </view>
  24. <view class="spu-price">
  25. <view class="sale-price">
  26. <text class='span'>¥{{spuItem.actPrice[0]}}</text>.{{spuItem.actPrice[1]}}
  27. </view>
  28. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  29. </view>
  30. </view>
  31. <block wx:if="{{!isPast}}">
  32. <i-button iClass="add-cart-disabled" disabled="{{disabled||spuItem.spuCanBuyNum==0}}" wx:if="{{disabled||spuItem.spuCanBuyNum==0}}">
  33. 已抢光
  34. </i-button>
  35. <i-button iClass="add-cart-disabled" disabled="{{spuItem.actEnd==1}}" wx:elif="{{spuItem.actEnd==1}}">
  36. 已结束
  37. </i-button>
  38. <view bind:click="goLink" class="add-cart" style="background:{{skin.color}}" wx:else>抢购</view>
  39. </block>
  40. <view class="mask" wx:if="{{isPast||disabled||spuItem.spuCanBuyNum==0||spuItem.actEnd==1?'disabled':''}}"></view>
  41. <view class="act-end act-out" wx:if="{{spuItem.spuCanBuyNum==0}}">已抢光</view>
  42. <!-- <view class="act-end" wx:elif="{{saleStatus==0}}">即将开抢</view> -->
  43. <view class="act-end" wx:elif="{{spuItem.actEnd==1}}">已结束</view>
  44. </i-router-link>