index.wxml 1.1 KB

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