index copy.wxml 1.6 KB

123456789101112131415161718192021222324252627282930
  1. <navigationBar bind:reload='requestAgain'></navigationBar>
  2. <view class="recommend">
  3. <banner bannerList="{{bannerList}}" userInfo="{{userInfo}}" />
  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. <view class="selectType {{isFixed?'isFixed2':''}}" bindtap="selectType">
  13. <view class="type {{currentType=='2'?'currentType':''}}" data-type='2'>排行榜</view>
  14. <view class="type {{currentType=='3'?'currentType':''}}" data-type='3'>作品展播</view>
  15. <view class="type {{currentType=='4'?'currentType':''}}" data-type='4'>官方活动</view>
  16. <view class="search" bindtap="jumpSearch">
  17. <image src="/static/search.png" class="searchImg" />
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 当一级分类固定定位时占位用的元素 -->
  22. <view class="{{isFixed?'brace':''}}" />
  23. <!-- 优秀作品展播及官方推荐列表组件 -->
  24. <worksList id="worksList" wx:if="{{currentType=='3'}}" worksList="{{list}}" videoType="public" tabBarPadding='true'
  25. autoPlay='{{false}}' />
  26. <view hidden="{{currentType=='3'}}">
  27. <activityList id="activityList" classify='{{currentType}}' />
  28. </view>
  29. </view>
  30. <canvas id='share' type="2d"> </canvas>