pinrow.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template name="pinrow">
  2. <!-- 拼团 -->
  3. <view class='pin-spec' wx:if="{{pinList.list&&pinList.list.length&&pinList.show==2}}">
  4. <image class="pin-spec-img" mode="widthFix" src="{{pinList.img}}" wx:if="{{pinList.img}}" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/index"></image>
  5. <view class="pinrow-wrap">
  6. <view class="border-bottom" wx:for="{{pinList.list}}" wx:key="id">
  7. <i-router-link routerClass="spu-content" url="/lionfish_comshop/moduleA/pin/goodsDetail?&id={{item.actId}}">
  8. <view class="item-top">
  9. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="240" iClass="spu-img" lazyLoad="true" loadImage="{{item.bigImg?item.bigImg:item.skuImage}}" width="300"></i-img>
  10. <view class="spu-play" wx:if="{{item.is_video}}"><image class="img" src="../../images/play.png"></image></view>
  11. </view>
  12. <view class="item-bottom">
  13. <view class="spu-title">
  14. <text class='span'>{{item.spuName}}</text>
  15. </view>
  16. <view class="spu-desc" wx:if="{{item.spuDescribe}}">
  17. <text class="em">{{item.spuDescribe}}</text>
  18. </view>
  19. <view class="spu-count">
  20. <text class="pin-tag" style="color:{{skin.color}};border-color:{{skin.color}}">{{item.pin_count}}人团</text>
  21. <view>已拼{{item.soldNum}}{{goods_sale_unit}}</view>
  22. </view>
  23. <view class="spu-price">
  24. <view class="sale-price">
  25. <text class='span'>¥{{item.actPrice[0]}}</text>.{{item.actPrice[1]}}
  26. </view>
  27. <view class="market-price">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
  28. </view>
  29. </view>
  30. <block wx:if="{{!isPast}}">
  31. <i-button class="add-cart-disabled" disabled="{{item.spuCanBuyNum==0}}" wx:if="{{item.spuCanBuyNum==0}}">
  32. 已抢光
  33. </i-button>
  34. <i-button bind:click="goLink" iClass="add-cart" class="add-cart" style="background: linear-gradient(90deg, {{skin.color}} 0%, {{skin.light}} 100%);" wx:else>
  35. 去拼团
  36. </i-button>
  37. </block>
  38. <view class="mask" wx:if="{{spuItem.spuCanBuyNum==0?'disabled':''}}"></view>
  39. <view class="act-end act-out" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  40. </i-router-link>
  41. </view>
  42. </view>
  43. <view class="pin-more" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/index">
  44. 查看全部 <text class="iconfont icon-youjiantou fsz-22"></text>
  45. </view>
  46. </view>
  47. </template>