index.wxml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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_market_price).yuan}}</view>
  22. <view class="jiao">{{tools.fen2YuanAndJiao(item.product_market_price).jiao}}</view>
  23. </view>
  24. <view class="old">¥{{tools.fen2Yuan(item.product_price)}}</view>
  25. </view>
  26. <view class="key-words-list">
  27. <view
  28. class="key-words"
  29. wx:for="{{3}}"
  30. wx:key="item">
  31. <image class="label" src="../../image/common/top1.png"></image>
  32. <text class="value">销量高销量高销量高销量高</text>
  33. </view>
  34. </view>
  35. </view>
  36. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>