<!-- 直播列表 -->
<scroll-view class="live-rooms" scroll-x>
    <block wx:for="{{rooms}}" wx:key="rooms">
        <navigator class="live-rooms-nav" url="plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={{item.roomid}}">
            <image class="live-rooms-cover" src="{{item.cover_img}}" mode="aspectFill"></image>
        </navigator>
    </block>
</scroll-view>

<!-- 短视频 -->
<view class="videos-content {{showLive ? 'marginTop': ''}}" bindtouchstart="onLiveLay" data-type="video">
    <swiperViode
        wx:if="{{videoList.length > 0}}"
        class="swiper-viode"
        video-list="{{videoList}}"
        autoPlay="{{playState}}"
        fit="cover"
        bind:play="videoPlay"
        bind:swiperindex="swiperIndex"
    >
    </swiperViode>
    <!-- 直播 -->
    <view class="videoLayer-live" wx:if="{{rooms.length > 0 && !showLive}}" catchtap="onLiveLay">
        <text>{{rooms.length}}个直播</text>
    </view>
    <!-- 视频信息 -->
    <view class="video-info">
        <view class="video-user">@ {{videoList[videoIndex].company.name || "-"}}</view>
        <view class="video-title">{{videoList[videoIndex].description || "-"}}</view>
    </view>
    <!-- 视频工具栏 -->
    <view class="video-tool">
        <view class="video-tool-item" catchtap="goCompany" data-id="{{videoList[videoIndex].company.company_id}}">
            <image class="video-tool-cover" src="{{videoList[videoIndex].company.cover || ''}}" mode="aspectFill"></image>
        </view>
        <view class="video-tool-item" bindtap="binLike">
            <image class="video-tool-icon" src="/static/icons/video_tool_00.png" mode="widthFix"></image>
            <view class="video-tool-number">{{videoList[videoIndex].likes || "0"}}</view>
        </view>
        <view class="video-tool-item">
            <image class="video-tool-icon" src="/static/icons/video_tool_01.png" mode="widthFix"></image>
            <view class="video-tool-number">1000</view>
        </view>
        <view class="video-tool-item">
            <image class="video-tool-icon" src="/static/icons/video_tool_02.png" mode="widthFix"></image>
            <view class="video-tool-number">{{videoList[videoIndex].shares || "0"}}</view>
        </view>
        <view class="video-tool-item">
            <view class="video-tool-vinyl {{playState ? 'rotate': ''}}">
                <image class="video-tool-vinyl-back" src="/static/images/vinyl_back.png" mode="widthFix"></image>
                <image class="video-tool-vinyl-cover" src="{{videoList[videoIndex].company.cover || ''}}" mode="aspectFill"></image>
            </view>
        </view>
    </view>
</view>

<storeTabBar pages-url="pages/shortVideo/index"></storeTabBar>
