120 lines
7.9 KiB
Plaintext
120 lines
7.9 KiB
Plaintext
<!-- style="padding-bottom:{{ statusBarHeight ? 166 : 98}}rpx;" -->
|
|
<view class="_recom_html">
|
|
<!-- <block tt:if="{{videoCanIUse}}"> -->
|
|
<swiper bindchange="handelSeiperChange" class="_m_vi_pl_swiper" vertical="{{true}}" duration="{{200}}"
|
|
easing-function="easeInOutCubic" current="{{videoPlayerCurrent}}">
|
|
<block tt:for="{{batchList}}">
|
|
<!-- tt:key="{{item.id}}" -->
|
|
<swiper-item>
|
|
<block
|
|
tt:if="{{index == videoPlayerCurrent || index == videoPlayerCurrent - 1 || index == videoPlayerCurrent + 1}}">
|
|
<view class="_m_v_w_it_main">
|
|
<!-- <block tt:if="{{videoPlayerCurrent == index}}"> autoplay="{{ false}}" poster="{{videoInfo.cover}}"-->
|
|
<block
|
|
tt:if="{{videoCanIUse && item.videoinfo.album_id && item.videoinfo.episode_id && item.videoinfo.cloudType}}">
|
|
<video-player class="_m_v_w_video_player" album-id="{{item.videoinfo.album_id}}"
|
|
episode-id="{{item.videoinfo.episode_id}}" cloud-type="{{item.videoinfo.cloudType}}"
|
|
three-party-cloud="{{item.videoinfo.video_url}}" version="1"
|
|
enable-progress-gesture="{{true}}" autoplay="{{ videoPlayerCurrent == index}}"
|
|
id="{{item.id}}" enable-dark-water-mark="{{true}}" bindended="videoPlayerEnded"
|
|
binderror="videPlayerError">
|
|
<!-- <block tt:if="{{videoPlayerCurrent == index}}">
|
|
<block tt:if="{{videoErrorText}}">
|
|
<view class="_iii_video_content">
|
|
<block tt:if="{{videoErrorText}}">
|
|
<view class="_iii_video_co_err_warp">
|
|
<view class="_iii_vi_co_e_img">
|
|
<image src="/static/error-page.png" class="__wa_img_no_radius">
|
|
</image>
|
|
</view>
|
|
<view class="_iii_vi_co_err">
|
|
<text class="_iii_vi_co_err_text">{{videoErrorText}}</text>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</block>
|
|
</block> -->
|
|
</video-player>
|
|
</block>
|
|
<block tt:else>
|
|
<video class="_m_v_w_video_player" vslide-gesture="{{true}}"
|
|
src="{{item.videoinfo.video_url}}" version="1" enable-progress-gesture="{{true}}"
|
|
autoplay="{{ videoPlayerCurrent == index}}" id="{{item.id}}"
|
|
enable-dark-water-mark="{{true}}" bindended="videoPlayerEnded" binderror="videError">
|
|
<!-- <block tt:if="{{videoPlayerCurrent == index}}">
|
|
<block tt:if="{{videoErrorText}}">
|
|
<view class="_iii_video_content">
|
|
<block tt:if="{{videoErrorText}}">
|
|
<view class="_iii_video_co_err_warp">
|
|
<view class="_iii_vi_co_e_img">
|
|
<image src="/static/error-page.png" class="__wa_img_no_radius">
|
|
</image>
|
|
</view>
|
|
<view class="_iii_vi_co_err">
|
|
<text class="_iii_vi_co_err_text">{{videoErrorText}}</text>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</block>
|
|
</block> -->
|
|
</video>
|
|
</block>
|
|
<!-- </block>
|
|
<block tt:else>
|
|
<view class="_m_v_w_it_ma_cover">
|
|
<image src="{{videoInfo.cover}}" mode="aspectFill" class="__wa_img_no_radius"></image>
|
|
</view>
|
|
</block> -->
|
|
<view class="_m_v_jw_v_to_path" data-sid="{{item.id}}" catchtap="toPathVideo">
|
|
<text class="_m_v_jw_v_to_p_text">进入观看</text>
|
|
</view>
|
|
<view class="_m_v_w_v_operate_l">
|
|
<view class="_m_vv_oper_l_col_w">
|
|
<view class="_m_vv_oper_l_collect" data-id="{{item.id}}" catchtap="handelCollection">
|
|
<block tt:if="{{item.bookcase}}">
|
|
<image src="/static/collect_selected.png" class="__wa_img_no_radius"></image>
|
|
</block>
|
|
<block tt:else>
|
|
<image src="/static/collect_icon.png" class="__wa_img_no_radius"></image>
|
|
</block>
|
|
</view>
|
|
<view class="_m_vv_oper_l_col_sss">
|
|
<text class="_m_vv_oper_l_col_s_text">{{item.count}}</text>
|
|
</view>
|
|
</view>
|
|
<button open-type="share" class="_m_vv_oper_l_share">
|
|
<view class="_m_vv_oper_l_col_w mt_36">
|
|
<view class="_m_vv_oper_l_collect">
|
|
<image src="/static/share_icon.png" class="__wa_img_no_radius"></image>
|
|
</view>
|
|
<view class="_m_vv_oper_l_col_sss">
|
|
<text class="_m_vv_oper_l_col_s_text">分享</text>
|
|
</view>
|
|
</view>
|
|
</button>
|
|
</view>
|
|
<view class="_m_v_ww_info_vo">
|
|
<view class="_m_v_ww_in_vooo_title">
|
|
<!-- {{videoPlayerCurrent}}{{index}}--{{item.id}} -->
|
|
<text class="_m_v_ww_in_vooo_ti_text">{{item.name}}</text>
|
|
</view>
|
|
<view class="_m_v_ww_in_lll_num">
|
|
<text class="_m_v_ww_in_l_n_current">第{{item.videoinfo.order}}集 </text>
|
|
<text class="_m_v_ww_in_l_n_all">全剧{{item.number}}集</text>
|
|
</view>
|
|
<view class="_m_v_ww_in_ttt_tips">
|
|
<text class="_m_v_ww_in_ttt_t_text">{{item.description}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
<!-- </block> -->
|
|
<!-- <comm-tabs selectedIndex="{{1}}" /> -->
|
|
<my-modal class="_m_modal_html" tt:ref="myModalRef" contentText="是否取消收藏?" cancelText="否" confirmText="是"
|
|
bind:handelConfirm="modalConfirm" bind:handelCancel="modalCancel" />
|
|
</view> |