<navigationBar bind:reload='requestAgain'></navigationBar>
<view class="recommend">
    <banner bannerList="{{bannerList}}" userInfo="{{userInfo}}" />
    <!-- 加桌提示 -->
    <view class=" desktopTips" wx:if="{{desktopTips}}" style="top:{{navBarHeight+3}}px" bindtap="closeDesktop">
        <view class="triangle"></view>
        <image src="http://reader-wx.ai160.com/images/reader/v3/desktop-android.png" class="tipsImg" />
    </view>
    <!-- 滚动定位 -->
    <view class="scrollBox {{isFixed?'isFixed':''}}" style="top:{{navBarHeight}}px;">
        <!-- 展示类型选择 -->
        <view class="selectType {{isFixed?'isFixed2':''}}" bindtap="selectType">
            <view class="type {{currentType=='2'?'currentType':''}}" data-type='2'>排行榜</view>
            <view class="type {{currentType=='3'?'currentType':''}}" data-type='3'>作品展播</view>
            <view class="type {{currentType=='4'?'currentType':''}}" data-type='4'>官方活动</view>
            <view class="search" bindtap="jumpSearch">
                <image src="/static/search.png" class="searchImg" />
            </view>
        </view>
    </view>
    <!-- 当一级分类固定定位时占位用的元素 -->
    <view class="{{isFixed?'brace':''}}" />
    <!-- 优秀作品展播及官方推荐列表组件 -->
    <worksList id="worksList" wx:if="{{currentType=='3'}}" worksList="{{list}}" videoType="public" tabBarPadding='true'
        autoPlay='{{true}}' />
    <view hidden="{{currentType=='3'}}">
        <activityList id="activityList" classify='{{currentType}}' />
    </view>
</view>
<canvas id='share' type="2d"> </canvas>