index.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <navigationBar bind:reload='requestAgain'></navigationBar>
  2. <view class="recommend">
  3. <banner bannerList="{{bannerList}}" />
  4. <!-- 加桌提示 -->
  5. <view class=" desktopTips" wx:if="{{desktopTips}}" style="top:{{navBarHeight+3}}px" bindtap="closeDesktop">
  6. <view class="triangle"></view>
  7. <image src="http://reader-wx.ai160.com/images/reader/v3/desktop-android.png" class="tipsImg" />
  8. </view>
  9. <!-- 滚动定位 -->
  10. <view class="scrollBox {{isFixed?'isFixed':''}}" style="top:{{navBarHeight}}px;">
  11. <!-- 一级分类区域 -->
  12. <scroll-view class="firstClassify" scroll-x="true" enhanced show-scrollbar="{{false}}">
  13. <view class="firstBox" wx:for="{{categoryList}}" wx:key="id" data-item='{{item}}' bindtap="jumpChildClassify">
  14. <image class="icon" src="{{item.icon}}" />
  15. <view class="name">{{item.title}}</view>
  16. </view>
  17. </scroll-view>
  18. <!-- 展示类型选择 -->
  19. <view class="selectType {{isFixed?'isFixed2':''}}" bindtap="selectType">
  20. <view class="type {{currentType=='7'?'currentType':''}}" data-type='7'>排行榜</view>
  21. <view class="type {{currentType=='2'?'currentType':''}}" data-type='2'>作品展播</view>
  22. <view class="type {{currentType=='1'?'currentType':''}}" data-type='1'>官方推荐</view>
  23. <view class="search" bindtap="jumpSearch">
  24. <image src="/static/search.png" class="searchImg" />
  25. </view>
  26. </view>
  27. </view>
  28. <!-- 当一级分类固定定位时占位用的元素 -->
  29. <view class="{{isFixed?'brace':''}}" />
  30. <!-- 优秀作品展播及官方推荐列表组件 -->
  31. <worksList id="worksList" wx:if="{{currentType=='2'}}" worksList="{{list}}" videoType="public" tabBarPadding='true' />
  32. <activityList id="activityList" classify='2' wx:if="{{currentType=='7'}}" />
  33. <authority worksList="{{list}}" wx:if="{{currentType=='1'}}" />
  34. </view>
  35. <canvas id='share' type="2d"> </canvas>