<!--pages/module_common/pagevideo/pagevideo.wxml-->
|
<view class="page">
|
<view class="page__hd">
|
<video
|
class="video"
|
id="myVideo"
|
src="{{video.lrBodyurl}}"
|
binderror="videoErrorCallback"
|
show-center-play-btn="{{false}}"
|
show-play-btn="{{true}}"
|
controls
|
autoplay
|
custom-cache="{{false}}"
|
poster="{{video.lrPicurl}}"
|
picture-in-picture-mode="{{['push', 'pop']}}"
|
bindenterpictureinpicture="bindVideoEnterPictureInPicture"
|
bindleavepictureinpicture="bindVideoLeavePictureInPicture"
|
></video>
|
</view>
|
<view class="page__bd">
|
<view class="fyui-box fyui-box__text">
|
<view class="fyui-box__hd"> {{video.lrResourcetitle}} </view>
|
<view class="fyui-box__bd">
|
<view class="fyui-box__content">{{video.lrResourcedesc}}</view>
|
</view>
|
<view class="fyui-box__ft">
|
<view>{{video.lrPublishdate}}</view>
|
<view class="flex-h">
|
<image
|
src="/res/icons/view.png"
|
class="icon"
|
style="margin-right: 4px"
|
></image
|
>{{video.views}}
|
</view>
|
</view>
|
</view>
|
|
<view>
|
<view wx:if="{{series.length > 0}}" class="fyui-box fyui-box__text">
|
<view class="video-series" bindtap="showSeries">
|
<view>视频合集({{thisVideo}}/{{series.length}})</view>
|
<mp-icon
|
icon="arrow"
|
class="icon-down"
|
size="14"
|
color="#7F7F7F"
|
></mp-icon>
|
</view>
|
</view>
|
</view>
|
</view>
|
<view class="page__ft">
|
<view class="title">相关视频</view>
|
<!-- <c-learn-item results="{{results}}" loading="{{loading}}" needLoadMore="{{needLoadMore}}"></c-learn-item> -->
|
|
<view wx:for="{{results}}" wx:key="index" wx:item="item">
|
<view class="fyui-box" bindtap="openFile" data-index="{{index}}">
|
<view class="fyui-box__hd">
|
<image src="{{item.lrPicurl}}" class="" mode="aspectFill" />
|
</view>
|
<view class="fyui-box__bd">
|
<view class="fyui-box__content">{{item.lrResourcetitle}}</view>
|
<view class="fyui-box__tag">
|
<view>{{item.lrPublishdate}}</view>
|
<view class="flex-h">
|
<image
|
src="/res/icons/view.png"
|
class="icon"
|
style="margin-right: 4px"
|
></image
|
>{{item.views}}
|
</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
|
<mp-actionSheet
|
show="{{showDialog}}"
|
actions="{{groups}}"
|
showCancel="{{false}}"
|
>
|
<view slot="actionSlot1" class="custom-action">
|
<view class="custom-action__series">
|
<view
|
wx:for="{{series}}"
|
wx:key="index"
|
data-index="{{index}}"
|
bindtap="selectVideo"
|
>
|
<view
|
class="custom-action__video {{thisVideo == index + 1 ? 'selected' : ''}}"
|
>
|
{{index+1}}. {{item.lrResourcetitle}}
|
</view>
|
</view>
|
</view>
|
</view>
|
</mp-actionSheet>
|
</view>
|