index.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 hot-bar-1">
  18. <view class="hot-A">
  19. <image src="/images/index/hot-left.png" class="hot-image" bind:tap="hotBut"></image>
  20. </view>
  21. <view class="hot-B">
  22. <image src="/images/index/hot-middle.png" class="hot-image" bind:tap="newBut"></image>
  23. </view>
  24. <view class="hot-C">
  25. <image src="/images/index/hot-right.png" class="hot-image" bind:tap="presaleBut"></image>
  26. </view>
  27. </view>
  28. <view class="brand-bar brand-bar-1">
  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="category category-1 {{isCategoryMini_1 ? 'mini' : ''}}">
  35. <view wx:for="{{prodClassList}}" wx:key="index" class="category-item">
  36. <image src="{{item.classUrl}}" data-item="{{item}}" class="category-image"></image>
  37. <span>{{ item.title }}</span>
  38. </view>
  39. </view>
  40. <view class="hot-bar hot-bar-2">
  41. <view class="hot-A">
  42. <image src="/images/index/hot-left.png" class="hot-image" bind:tap="hotBut"></image>
  43. </view>
  44. <view class="hot-B">
  45. <image src="/images/index/hot-middle.png" class="hot-image" bind:tap="newBut"></image>
  46. </view>
  47. <view class="hot-C">
  48. <image src="/images/index/hot-right.png" class="hot-image" bind:tap="presaleBut"></image>
  49. </view>
  50. </view>
  51. <view class="brand-bar brand-bar-2">
  52. <view wx:for="{{ipInfoList}}" wx:key="index" class="brand-item">
  53. <image src="{{item.ipUrl}}" data-item="{{item}}" class="brand-image"></image>
  54. <!-- <text class="brand-name">{{item.name}}</text> -->
  55. </view>
  56. </view>
  57. <view class="category category-2 {{isCategoryMini_2 ? 'mini' : ''}}">
  58. <view wx:for="{{prodClassList}}" wx:key="index" class="category-item">
  59. <image src="{{item.classUrl}}" data-item="{{item}}" class="category-image"></image>
  60. <span>{{ item.title }}</span>
  61. </view>
  62. </view>
  63. <!-- 商品列表 -->
  64. <product-list position="index" bindaddCart="showAddCartModal"></product-list>
  65. <!-- 商品属性模态框 -->
  66. <addCartModel visible="{{showAddCartModal}}" product="{{currentProduct}}" bindclose="handleCloseAddCartModal"></addCartModel>
  67. </view>