index.wxml 1.2 KB

1234567891011121314151617181920
  1. <navigationBar bind:reload='resetData'></navigationBar>
  2. <view class="worksBox">
  3. <!-- 轮播图 -->
  4. <banner classify='{{currentType}}' />
  5. <!-- 切换类型 -->
  6. <view class="selectType {{isFixed?'isFixed isFixed2':''}}" style="top:{{navBarHeight}}px;" bindtap="changeType">
  7. <view class="type {{currentType=='7'?'currentType':''}}" data-type='7'>排行榜</view>
  8. <view class="type {{currentType=='4'?'currentType':''}}" data-type='4'>关注作品</view>
  9. <view class="type {{currentType=='5'?'currentType':''}}" data-type='5'>我的作品</view>
  10. <view class="type {{currentType=='6'?'currentType':''}}" data-type='6'>收藏作品</view>
  11. </view>
  12. <!-- 优秀作品展播及官方推荐列表组件 -->
  13. <worksList wx:if="{{currentType!='7'}}" id="worksList"
  14. videoType="{{currentType=='4'||currentType=='6'?'follow':'my'}}" worksList="{{list}}" tabBarPadding='true'
  15. autoPlay='{{false}}' />
  16. <activityList wx:if="{{currentType=='7'}}" />
  17. <emptyBg wx:if="{{nullList}}"
  18. message="{{currentType=='4'?'您还没有关注的用户哦':currentType=='5'?'您还没有作品哦,赶快去发表吧':'您还没有收藏作品哦'}}"></emptyBg>
  19. </view>
  20. <canvas id='share' type="2d"> </canvas>