index.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--index.wxml-->
  2. <view class="container">
  3. <!-- 头部 -->
  4. <header position="index"></header>
  5. <view class="banner">
  6. <view class="banner-item">
  7. <swiper class="bannerSwiper" indicator-dots='{{true}}' indicator-color='rgba(33, 33, 33, .3)' indicator-active-color='rgba(33, 33, 33, 1)' circular='{{true}}' current='{{index}}' autoplay style="{{''}}" bindchange='bindchange'>
  8. <block wx:for='{{bannerList}}' wx:key='this'>
  9. <swiper-item>
  10. <image class="bannerImg" mode='widthFix' src="{{item.bannerUrl}}" data-item="{{item}}"></image>
  11. </swiper-item>
  12. </block>
  13. </swiper>
  14. </view>
  15. </view>
  16. <!-- <banner position="index" bannerList="{{bannerList}}"/> -->
  17. <view class="hot-bar">
  18. <view class="hot-A">
  19. <image src="/images/index/hot-item.png" class="hot-image"></image>
  20. </view>
  21. <view class="hot-B">
  22. <image src="/images/index/hot-item.png" class="hot-image"></image>
  23. </view>
  24. <view class="hot-C">
  25. <image src="/images/index/hot-item.png" class="hot-image"></image>
  26. </view>
  27. </view>
  28. <view class="brand-bar">
  29. <view wx:for="{{ipInfoList}}" wx:key="index" class="brand-item">
  30. <image src="{{item.ipUrl}}" data-item="{{item}}" class="brand-image"></image>
  31. <!-- <text class="brand-name">{{item.name}}</text> -->
  32. </view>
  33. </view>
  34. <!-- <view class="slider">
  35. <view class="slider-item">
  36. slider
  37. </view>
  38. </view> -->
  39. <view class="category">
  40. <view wx:for="{{prodClassList}}" wx:key="index" class="category-item">
  41. <image src="{{item.classUrl}}" data-item="{{item}}" class="category-image"></image>
  42. </view>
  43. </view>
  44. <!-- 商品列表 -->
  45. <product-list position="index" bindaddCart="showAddCartModal"></product-list>
  46. <!-- 商品属性模态框 -->
  47. <addCartModel visible="{{showAddCartModal}}" product="{{currentProduct}}" bindclose="handleCloseAddCartModal"></addCartModel>
  48. </view>