Commit a34be27b authored by sujie@126.com's avatar sujie@126.com

dd

parent d398377e
......@@ -651,6 +651,7 @@ Page({
this.setData({
playList: data.list,
currentInit:_currentInit,
currentIndex:_currentInit,
currentPlayItem: data.list[_currentInit]
}, () => {
if(this.data.currentPlayItem.type==2){
......@@ -750,6 +751,7 @@ Page({
bindplay(e){
const id = e.currentTarget.dataset.id;
const _id = 'video'+this.data.currentIndex;
console.log(id,_id)
if(id==_id){
this.data.videoStatus[id] = {
isplay:true
......
......@@ -9,7 +9,7 @@
<swiper indicator-dots="{{false}}" show-fullscreen-btn="{{false}}" show-play-btn="false" style="height:100vh" vertical="{{true}}" circular="{{true}}" bindchange="playSwiperChange" current="{{currentInit}}" data-item="{{playitem}}">
<block wx:for="{{playList}}" wx:for-index="playindex" wx:for-item="playitem" wx:key="{{playindex}}">
<swiper-item>
<video src="{{filter.transformOssVideofy(filter.jsonParse(playitem.content))}}" bindplay="bindplay" bindpause="bindpause" loop="{{true}}" bindtap="clickVideo" show-play-btn="{{false}}" show-center-play-btn="{{false}}" controls="{{false}}" data-type="{{playitem.type}}" data-id="video{{playindex}}" id="video{{playindex}}" poster="{{filter.videoPoster(playitem.video)}}" autoplay="{{false}}" wx-if="{{playitem.type==2}}"></video>
<video src="{{filter.transformOssVideofyM3u8(filter.jsonParse(playitem.content))}}" bindplay="bindplay" bindpause="bindpause" loop="{{true}}" bindtap="clickVideo" show-play-btn="{{false}}" show-center-play-btn="{{false}}" controls="{{false}}" data-type="{{playitem.type}}" data-id="video{{playindex}}" id="video{{playindex}}" poster="{{filter.videoPoster(playitem.video)}}" autoplay="{{false}}" wx-if="{{playitem.type==2}}"></video>
<view class="video-play-icon-box" hover-class="none" hover-stop-propagation="false" bindtap="clickVideo" data-type="{{playitem.type}}" data-id="video{{playindex}}" id="video{{playindex}}" poster="{{filter.videoPoster(playitem.video)}}" wx:if="{{playitem.type==2 &&!videoStatus['video'+playindex].isplay}}">
<image class="video-play-icon" src="{{imageRoot}}2c/websiteindex/bigplay.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment