Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
731ac6f4
Commit
731ac6f4
authored
Feb 05, 2021
by
liujinsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频组件修改
parent
33ef3c40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
src/components/content/videoPlayer.vue
+3
-17
No files found.
src/components/content/videoPlayer.vue
View file @
731ac6f4
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
<!-- url展示 -->
<!-- url展示 -->
<div
class=
"isVideo"
v-show=
"datas.componentData['type']
<3
"
>
<div
class=
"isVideo"
v-show=
"datas.componentData['type']
<3
"
>
<video
<video
@
click
=
"pauseVideo"
bindplay
=
"pauseVideo"
@
ended=
"videoEnd"
bind
ended=
"videoEnd"
ref=
"videoPlayer"
ref=
"videoPlayer"
:show-center-play-btn=
"isPlay&&!datas.componentData['nativeControl']?true:false"
type=
"video/mp4"
type=
"video/mp4"
width=
"100%"
width=
"100%"
:src=
"videoUrl"
:src=
"videoUrl"
autoplay
:loop=
"datas.componentData['loopPlay']"
:loop=
"datas.componentData['loopPlay']"
:controls=
"datas.componentData['nativeControl']"
:controls=
"datas.componentData['nativeControl']"
:webkit-playsinline=
"true"
:webkit-playsinline=
"true"
...
@@ -23,16 +23,6 @@
...
@@ -23,16 +23,6 @@
:playsinline=
"true"
:playsinline=
"true"
:poster=
"videoPoster"
:poster=
"videoPoster"
></video>
></video>
<!-- :webkit-playsinline="datas.componentData['fullScreenPlay']"
:x5-video-player-type="datas.componentData['fullScreenPlay']?'h5-page':''"
:x5-video-player-fullscreen="datas.componentData['fullScreenPlay']"
:playsinline="datas.componentData['fullScreenPlay']" -->
<div
class=
"playerBtn"
@
click=
"playVideo"
v-if=
"isPlay&&!datas.componentData['nativeControl']"
>
<img
src=
"http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/06420e41-cd0b-4913-a1ef-9056ceebcc95.png"
alt
/>
</div>
</div>
</div>
<!-- 代码片段展示 -->
<!-- 代码片段展示 -->
<div
<div
...
@@ -50,10 +40,6 @@ import wxParse from 'mpvue-wxparse'
...
@@ -50,10 +40,6 @@ import wxParse from 'mpvue-wxparse'
export
default
{
export
default
{
name
:
"video-player"
,
name
:
"video-player"
,
props
:
{
props
:
{
render
:
{
type
:
Boolean
,
default
:
false
},
datas
:
{
datas
:
{
type
:
Object
,
type
:
Object
,
default
:
function
()
{
default
:
function
()
{
...
...
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