index.wxml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view
  2. class="list"
  3. wx:for="{{listData}}"
  4. wx:key="id"
  5. data-item="{{item}}"
  6. bind:tap="jumpGoodsDetail">
  7. <view class="goods-cover-wrap">
  8. <image
  9. class="goods-cover"
  10. mode="widthFix"
  11. src="{{item.product_img_url}}"></image>
  12. </view>
  13. <view class="goods-describe">
  14. <view class="name-wrap {{item.product_sale_at === 0 ? 'has-tag' : ''}}">
  15. <view class="name">{{item.product_title}}</view>
  16. <view class="tag" wx:if="{{item.product_sale_at === 0}}">预售</view>
  17. </view>
  18. <view class="price-wrap">
  19. <view class="now">
  20. <view class="unit">¥</view>
  21. <view class="yuan">{{tools.fen2YuanAndJiao(item.product_all_price).yuan}}</view>
  22. <view class="jiao">{{tools.fen2YuanAndJiao(item.product_all_price).jiao}}</view>
  23. </view>
  24. <view class="old">{{tools.fen2Yuan(item.product_price)}}</view>
  25. </view>
  26. <view class="star-words">
  27. <text
  28. class="word">{{item.product_recommend_lable}}</text>
  29. </view>
  30. <!-- todo 标签 -->
  31. <view class="key-words-list" wx:if="{{false}}">
  32. <view
  33. class="key-words"
  34. wx:for="{{2}}"
  35. wx:key="item">
  36. <image class="label" src=""></image>
  37. <text class="value">销量高销量高销量高销量高</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>