index.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!--index.wxml-->
  2. <!-- 头部 -->
  3. <header position="index"></header>
  4. <view class="container">
  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-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">
  29. brand-bar
  30. <view wx:for="{{ipInfoList}}" wx:key="index" class="brand-item">
  31. <image src="{{item.ipUrl}}" data-item="{{item}}" class="brand-image"></image>
  32. <text class="brand-name">{{item.name}}</text>
  33. <span>{{ item.className }}</span>
  34. </view>
  35. </view>
  36. <view class="brand-bar mini" style="{{isBrandMini ? 'opacity: 1;' : 'opacity: 0;'}}">
  37. brand-bar
  38. <view wx:for="{{ipInfoList}}" wx:key="index" class="brand-item">
  39. <image src="{{item.ipUrl}}" data-item="{{item}}" class="brand-image"></image>
  40. <text class="brand-name">{{item.name}}</text>
  41. <span>{{ item.className }}</span>
  42. </view>
  43. </view>
  44. <view class="category">
  45. <view wx:for="{{prodClassList}}" wx:key="index" class="category-item">
  46. <image src="{{item.classUrl}}" data-item="{{item}}" class="category-image"></image>
  47. <span>{{ item.className }}</span>
  48. </view>
  49. </view>
  50. <view class="category mini" style="{{isCategoryMini ? 'opacity: 1;' : 'opacity: 0;'}}">
  51. <view wx:for="{{prodClassList}}" wx:key="index" class="category-item">
  52. <image src="{{item.classUrl}}" data-item="{{item}}" class="category-image"></image>
  53. <span>{{ item.className }}</span>
  54. </view>
  55. </view>
  56. <!-- 商品列表 -->
  57. <product-list position="index" bindaddCart="showAddCartModal"></product-list>
  58. <!-- 商品属性模态框 -->
  59. <addCartModel visible="{{showAddCartModal}}" product="{{currentProduct}}" bindclose="handleCloseAddCartModal"></addCartModel>
  60. </view>