index.wxml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--index.wxml-->
  2. <view class="container">
  3. <!-- 头部 -->
  4. <header position="index"></header>
  5. <view class="banner">
  6. <view class="banner-item">
  7. banner
  8. </view>
  9. </view>
  10. <view class="hot-bar">
  11. <view class="hot-A">
  12. <image src="/images/index/hot-item.png" class="hot-image"></image>
  13. </view>
  14. <view class="hot-B">
  15. <image src="/images/index/hot-item.png" class="hot-image"></image>
  16. </view>
  17. <view class="hot-C">
  18. <image src="/images/index/hot-item.png" class="hot-image"></image>
  19. </view>
  20. </view>
  21. <view class="brand-bar">
  22. <view wx:for="{{brandList}}" wx:key="index" class="brand-item">
  23. <image src="/images/index/brand-item.png" class="brand-image"></image>
  24. <!-- <text class="brand-name">{{item.name}}</text> -->
  25. </view>
  26. </view>
  27. <view class="slider">
  28. <view class="slider-item">
  29. slider
  30. </view>
  31. </view>
  32. <view class="category">
  33. <view wx:for="{{categoryList}}" wx:key="index" class="category-item">
  34. <image src="/images/index/category-item.png" class="category-image"></image>
  35. </view>
  36. </view>
  37. <!-- 商品列表 -->
  38. <product-list position="index" bindaddCart="showAddCartModal"></product-list>
  39. <!-- 商品属性模态框 -->
  40. <addCartModel visible="{{showAddCartModal}}" product="{{currentProduct}}" bindclose="handleCloseAddCartModal"></addCartModel>
  41. </view>