index.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <navigationBar></navigationBar>
  2. <view class="recommend">
  3. <!-- 头部及轮播图 -->
  4. <view class="header">
  5. <view class="headerBg"></view>
  6. <swiper class="swiper" autoplay circular indicator-dots indicator-active-color="#fff"
  7. indicator-color='#ecececa1'>
  8. <block wx:for="{{background}}" wx:key="*this">
  9. <swiper-item>
  10. <view class="swiper-item {{item}}"></view>
  11. </swiper-item>
  12. </block>
  13. </swiper>
  14. </view>
  15. <!-- 一级分类区域 -->
  16. <scroll-view class="firstClassify" scroll-x="true">
  17. <view class="firstBox" wx:for="{{10}}" wx:key="index">
  18. <image class="icon" src="/static/header.png" mode="" />
  19. <view class="name">书香美文</view>
  20. </view>
  21. </scroll-view>
  22. <!-- 搜索框 -->
  23. <view class="search">
  24. <image src="/static/search.png" class="searchImg" />
  25. <view class="input" />
  26. </view>
  27. <!-- 展示类型选择 -->
  28. <view class="selectType" bindtap="selectType">
  29. <view class="type {{currentType=='1'?'currentType':''}}" data-type='1'>优秀作品展播</view>
  30. <view class="type {{currentType=='2'?'currentType':''}}" data-type='2'>官方推荐</view>
  31. <view class="type {{currentType=='3'?'currentType':''}}" data-type='3'>官方活动</view>
  32. </view>
  33. <!-- 优秀作品展播及官方推荐列表组件 -->
  34. <worksList id="worksList" worksList="{{list}}" />
  35. </view>