index.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view
  2. class="list"
  3. bind:tap="jumpGoodsDetail">
  4. <view class="goods-cover-wrap">
  5. <image
  6. class="goods-cover"
  7. mode="widthFix" src="{{item.product_img_url}}"></image>
  8. </view>
  9. <view class="goods-describe">
  10. <view class="name-wrap {{item.product_sale_at === 0 ? 'has-tag' : ''}}">
  11. <view class="name">{{item.product_title}}</view>
  12. <view class="tag" wx:if="{{item.product_sale_at === 0}}">预售</view>
  13. </view>
  14. <view class="price-wrap">
  15. <view class="now">
  16. <view class="unit">¥</view>
  17. <view class="yuan">{{tools.fen2YuanAndJiao(item.product_all_price).yuan}}</view>
  18. <view class="jiao">{{tools.fen2YuanAndJiao(item.product_all_price).jiao}}</view>
  19. </view>
  20. <view class="old">{{tools.fen2Yuan(item.product_price)}}</view>
  21. </view>
  22. <!-- todo -->
  23. <view class="star-words">
  24. <text
  25. class="word"
  26. wx:for="{{['8斤打底', '9成熟', '货车运输三天内到达']}}"
  27. wx:key="index">{{item}}</text>
  28. </view>
  29. <view class="key-words-list">
  30. <view
  31. class="key-words"
  32. wx:for="{{2}}"
  33. wx:key="item">
  34. <image class="label" src=""></image>
  35. <text class="value">销量高销量高销量高销量高</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>