Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
a34be27b
Commit
a34be27b
authored
Jul 27, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
d398377e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
infovideo.js
src/pages/websiteindex/infovideo.js
+2
-0
infovideo.wxml
src/pages/websiteindex/infovideo.wxml
+1
-1
No files found.
src/pages/websiteindex/infovideo.js
View file @
a34be27b
...
...
@@ -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
...
...
src/pages/websiteindex/infovideo.wxml
View file @
a34be27b
...
...
@@ -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.transformOssVideofy
M3u8
(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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment