index.wxml 1.4 KB

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