index.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!-- 新人专享 -->
  2. <view class='new-comers' wx:if="{{list.length}}">
  3. <!-- diy头 -->
  4. <block wx:if="{{diyData}}">
  5. <view class="diylist-theme-bg diylist-theme-{{diyData.bgSelect}}"></view>
  6. <view class="diylist-head i-flex" wx:if="{{diyData.style==1}}">
  7. <image class="diylist-s1-lefticon" src="{{diyData.host + diyData.list[0].imageUrl}}"></image>
  8. <view class="diylist-s1-name">{{diyData.list[0].title}}</view>
  9. <view></view>
  10. </view>
  11. </block>
  12. <block wx:else>
  13. <view class='new-comers-title'><text class="leftBorder" style="border-color: {{skin.color}}"></text>新人专享</view>
  14. </block>
  15. <scroll-view class='new-comers-scroll' scroll-x bindscrolltolower="getMore">
  16. <view class='new-comers-wrap {{list.length<=3?"onlyThree":""}}'>
  17. <i-router-link routerClass="new-comers-item" url="/lionfish_comshop/pages/goods/goodsDetail?id={{item.actId}}" wx:for="{{list}}" wx:key="id">
  18. <i-img defaultImage="../../images/placeholder-refund.png" height="220" width="220" iClass="new-img" loadImage="{{item.skuImage}}" isLazy="{{true}}"></i-img>
  19. <view wx:if="{{item.label_info && item.label_info.type==0}}" class='item-tag'>
  20. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  21. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  22. </view>
  23. <view wx:if="{{item.label_info && item.label_info.type==1}}" class='item-tag' style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  24. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  25. <view class='title'>{{item.spuName}}</view>
  26. <view class='new-bot'>
  27. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  28. <i-button iClass="add-cart" wx:if="{{disabled||item.spuCanBuyNum==0}}">
  29. <image class='img' src="../../images/icon-add-shopCart-disabled.png"></image>
  30. </i-button>
  31. <i-button bind:click="openSku" data-idx="{{index}}" iClass="add-cart" wx:else>
  32. <i-addcart iClass='img' />
  33. </i-button>
  34. </view>
  35. </i-router-link>
  36. </view>
  37. </scroll-view>
  38. </view>