index.wxml 1.4 KB

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