presale-goodsrow.wxml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <view class="pinrow-wrap">
  2. <i-router-link routerClass="spu-content" url="/lionfish_comshop/pages/goods/goodsDetail?id={{spuItem.actId}}&type=presale">
  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="{{saleStatus==2}}">已结束</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}}">
  27. <block wx:if="{{spuItem.presale_type==0}}">定金¥{{spuItem.presale_ding_money}}可抵¥{{spuItem.presale_deduction_money>0?spuItem.presale_deduction_money:spuItem.presale_ding_money}}</block>
  28. <block wx:else>全款预售</block>
  29. </text>
  30. <view wx:if="{{spuItem.presale_type==0}}">尾款:¥{{weikuan}}</view>
  31. <view>预售时间:{{spuItem.presale_ding_time_start}}-{{spuItem.presale_ding_time_end}}</view>
  32. </view>
  33. <view class="spu-price">
  34. <block wx:if="{{spuItem.presale_type==0}}">
  35. <view class="sale-price">
  36. <text class='span'>¥{{dingArr[0]}}</text>.{{dingArr[1]}}
  37. </view>
  38. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  39. </block>
  40. <block wx:else>
  41. <view class="sale-price">
  42. <text class='span'>¥{{spuItem.actPrice[0]}}</text>.{{spuItem.actPrice[1]}}
  43. </view>
  44. <view class="market-price">¥{{spuItem.marketPrice[0]}}.{{spuItem.marketPrice[1]}}</view>
  45. </block>
  46. </view>
  47. </view>
  48. <block wx:if="{{!isPast}}">
  49. <i-button class="add-cart-disabled" disabled="{{saleStatus==0}}" wx:if="{{saleStatus==0}}">未开始</i-button>
  50. <i-button class="add-cart-disabled" disabled="{{saleStatus==0}}" wx:elif="{{saleStatus==2}}">已结束</i-button>
  51. <i-button class="add-cart-disabled" disabled="{{spuItem.spuCanBuyNum==0}}" wx:elif="{{spuItem.spuCanBuyNum==0}}">
  52. 已抢光
  53. </i-button>
  54. <view bind:click="goLink" class="add-cart" style="background: linear-gradient(90deg, {{skin.color}} 0%, {{skin.light}} 100%);" wx:else>去抢购</view>
  55. </block>
  56. <view class="mask" wx:if="{{spuItem.spuCanBuyNum==0||saleStatus!=1?'disabled':''}}"></view>
  57. </i-router-link>
  58. </view>