index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <!-- todo -->
  27. <view class="star-words" wx:if="{{false}}">
  28. <text
  29. class="word"
  30. wx:for="{{['8斤打底', '9成熟', '货车运输三天内到达']}}"
  31. wx:key="index">{{item}}</text>
  32. </view>
  33. <!-- todo 标签 -->
  34. <view class="key-words-list" wx:if="{{false}}">
  35. <view
  36. class="key-words"
  37. wx:for="{{2}}"
  38. wx:key="item">
  39. <image class="label" src=""></image>
  40. <text class="value">销量高销量高销量高销量高</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>