Commit 731ac6f4 by liujinsa

视频组件修改

parent 33ef3c40
...@@ -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" bindended="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() {
......
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