topic.wxml 1.7 KB

12345678910111213141516171819202122232425
  1. <block wx:for="{{list}}" wx:key="id" wx:if="{{list.length}}" wx:for-item="vo" wx:for-index="idx">
  2. <view class="topic" wx:if="{{vo.index_pos==showPos||diyInfo.specialId}}" style="{{diyInfo.marginTop>=0?'margin-top:'+(diyInfo.marginTop*2)+'rpx':''}}">
  3. <image class='topic-img' src="{{vo.cover}}" mode="widthFix" wx:if="{{vo.cover}}" bindtap="goSpecial" data-id="{{vo.id}}"></image>
  4. <view class='new-comers' wx:if="{{vo.list.length}}">
  5. <scroll-view class='new-comers-scroll' scroll-x>
  6. <view class='new-comers-wrap {{list.length<=3?"onlyThree":""}}'>
  7. <i-router-link routerClass="new-comers-item" url="/lionfish_comshop/pages/goods/goodsDetail?id={{item.actId}}" wx:for="{{vo.list}}" wx:key="id" wx:for-index="gidx">
  8. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="220" width="220" iClass="new-img" loadImage="{{item.skuImage}}"></i-img>
  9. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  10. <view class='title'>{{item.spuName}}</view>
  11. <view class='new-bot'>
  12. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  13. <i-button iClass="add-cart" wx:if="{{disabled||item.spuCanBuyNum==0}}">
  14. <image class='img' src="../../images/icon-add-shopCart-disabled.png"></image>
  15. </i-button>
  16. <i-button bind:click="openSku" data-idx="{{idx}}" data-gidx="{{gidx}}" iClass="add-cart" wx:else>
  17. <i-addcart iClass='img' />
  18. </i-button>
  19. </view>
  20. </i-router-link>
  21. </view>
  22. </scroll-view>
  23. </view>
  24. </view>
  25. </block>