index.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view
  2. class="goods-item"
  3. bind:tap="jumpGoodsDetail">
  4. <view class="goods-cover-wrap">
  5. <image
  6. class="goods-cover"
  7. mode="widthFix"
  8. src="{{item.product_img_url}}"></image>
  9. </view>
  10. <view class="name-wrap">
  11. <view
  12. class="tag"
  13. wx:if="{{item.product_is_select === 1}}">精选
  14. </view>
  15. <view class="name {{item.product_is_select === 1 ? 'has-tag' : ''}}">{{item.product_title}}</view>
  16. </view>
  17. <view class="dessciption">{{item.product_desc}}</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
  27. class="key-words-list"
  28. wx:if="{{tools.formatProductLable(item.product_recommend_lable).length > 0}}">
  29. <view
  30. class="key-words"
  31. wx:for="{{tools.formatProductLable(item.product_recommend_lable)}}"
  32. wx:key="index">
  33. <text class="value">{{item}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>