goods-card.wxml 1.6 KB

12345678910111213141516171819202122232425262728
  1. <view id="{{independentID}}" class="goods-card {{lite ? 'lite' : ''}}" bind:tap="clickHandle" data-goods="{{ goods }}">
  2. <view class="goods-card__main">
  3. <view class="goods-card__thumb" bind:tap="clickThumbHandle">
  4. <t-image wx:if="{{ !!goods.imageUrl }}" t-class="goods-card__img" src="{{ goods.imageUrl }}" mode="aspectFill" lazy-load />
  5. <t-icon wx:if="{{goods.hasDraw}}" prefix="hn" name="m3d" size="32rpx" t-class="flatimg" />
  6. </view>
  7. <view class="goods-card__body">
  8. <view class="goods-card__upper">
  9. <view wx:if="{{ goods.title }}" class="goods-card__title">
  10. {{ goods.title }}
  11. </view>
  12. <view wx:if="{{ goods.tags && !!goods.tags.length }}" class="goods-card__tags">
  13. <view wx:for="{{ goods.tags }}" wx:key="index" wx:for-item="tag" class="goods-card__tag" data-index="{{index}}">
  14. {{tag}}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="goods-card__down">
  19. <price wx:if="{{ goods.price }}" wr-class="spec-for-price" symbol-class="spec-for-symbol" symbol="{{currency}}" price="{{goods.price}}" />
  20. <!-- <price wx:if="{{ goods.originPrice && isValidityLinePrice }}" wr-class="goods-card__origin-price" symbol="{{currency}}" price="{{goods.originPrice}}" type="delthrough" /> -->
  21. <!-- <t-icon class="goods-card__add-cart" name="cart" id="{{independentID}}-cart" data-id="{{independentID}}" catchtap="addCartHandle" size="48rpx" color="#FA550F" /> -->
  22. <!-- <view wx:if="goods.HasDraw">
  23. 3D
  24. </view> -->
  25. </view>
  26. </view>
  27. </view>
  28. </view>