index.wxml 1.4 KB

12345678910111213141516171819202122232425262728
  1. <navigationBar bind:reload='resetData'></navigationBar>
  2. <view class="recommend">
  3. <canvas id='share' type="2d"> </canvas>
  4. <banner classify='1' />
  5. <!-- 滚动定位 -->
  6. <view class="scrollBox {{isFixed?'isFixed':''}}" style="top:{{navBarHeight}}px;">
  7. <!-- 一级分类区域 -->
  8. <scroll-view class="firstClassify" scroll-x="true" enhanced show-scrollbar="{{false}}">
  9. <view class="firstBox" wx:for="{{10}}" wx:key="index" bindtap="jumpChildClassify">
  10. <image class="icon" src="/static/header.png" mode="" />
  11. <view class="name">书香美文</view>
  12. </view>
  13. </scroll-view>
  14. <!-- 展示类型选择 -->
  15. <view class="selectType {{isFixed?'isFixed2':''}}" bindtap="selectType">
  16. <view class="type {{currentType=='1'?'currentType':''}}" data-type='1'>优秀作品展播</view>
  17. <view class="type {{currentType=='2'?'currentType':''}}" data-type='2'>官方推荐</view>
  18. <view class="type {{currentType=='3'?'currentType':''}}" data-type='3'>官方活动</view>
  19. <view class="search" bindtap="jumpSearch">
  20. <image src="/static/search.png" class="searchImg" />
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 当一级分类固定定位时占位用的元素 -->
  25. <view class="{{isFixed?'brace':''}}" />
  26. <!-- 优秀作品展播及官方推荐列表组件 -->
  27. <worksList id="worksList" worksList="{{list}}" />
  28. </view>