Commit 9f0a9203 authored by 黄媛媛's avatar 黄媛媛

update

parent 6417f421
......@@ -70,12 +70,14 @@ Page({
},
bindPreviewVideo(e) {
let playVideoSrc =this.data.msg.VideoAddress;
this.videoContext = wx.createVideoContext('prew_video');
this.videoContext.play();
this.setData({
videoState: true,
playVideoSrc: playVideoSrc
})
this.videoContext = wx.createVideoContext('prew_video');
this.videoContext.play();
},
bindVideoScreenChange: function ( e) {
......
<view class="clock">
<view hidden="{{videoState}}" class="clock">
<view style="padding:30rpx;position:relative">
<image style="width:70rpx;height:70rpx;position: absolute;" src="../../images/index/adress.png"></image>
<view class="title">
......@@ -30,11 +30,11 @@
</view>
</view>
<view bindtap="upload" class="picItem upload">
<view wx:if="{{msg.VideoAddress==''}}" bindtap="upload" class="picItem upload">
<image src="../../images/index/pic.png"></image>
<view style="margin-top:15rpx" class="c99 f24">添加图片</view>
</view>
<view bindtap="upvideo" class="picItem upload">
<view wx:if="{{msg.VideoAddress==''}}" bindtap="upvideo" class="picItem upload">
<image src="../../images/index/pic.png"></image>
<view style="margin-top:15rpx" class="c99 f24">上传视频</view>
</view>
......@@ -47,6 +47,8 @@
</view>
<view hidden="{{!videoState}}" class="video_box">
<video id="prew_video"
autoplay="true"
bindfullscreenchange="fullScreen"
show-fullscreen-btn="fasle"
src="{{playVideoSrc}}"></video>
<image bindtap="closeVideo" class="closeImg" src="../../images/index/close.png"></image>
......
......@@ -28,6 +28,7 @@
<view hidden="{{!videoState}}" class="video_box">
<video id="prew_video"
show-fullscreen-btn="fasle"
bindfullscreenchange="fullScreen"
src="{{playVideoSrc}}"></video>
<image bindtap="closeVideo" class="closeImg" src="../../images/index/close.png"></image>
</view>
\ No newline at end of file
......@@ -51,6 +51,7 @@
<view hidden="{{!videoState}}" class="video_box">
<video id="prew_video"
show-fullscreen-btn="fasle"
bindfullscreenchange="fullScreen"
src="{{playVideoSrc}}"></video>
<image bindtap="closeVideo" class="closeImg" src="../../../images/index/close.png"></image>
</view>
\ No newline at end of file
......@@ -53,6 +53,7 @@
</view>
<view hidden="{{!videoState}}" class="video_box">
<video id="prew_video"
bindfullscreenchange="fullScreen"
show-fullscreen-btn="fasle"
src="{{playVideoSrc}}"></video>
<image bindtap="closeVideo" class="closeImg" src="../../../images/index/close.png"></image>
......
......@@ -52,6 +52,8 @@
</view>
<view hidden="{{!videoState}}" class="video_box">
<video id="prew_video"
autoplay="true"
bindfullscreenchange="fullScreen"
show-fullscreen-btn="fasle"
src="{{playVideoSrc}}"></video>
<image bindtap="closeVideo" class="closeImg" src="../../../images/index/close.png"></image>
......
......@@ -53,6 +53,7 @@
<view hidden="{{!videoState}}" class="video_box">
<video id="prew_video"
show-fullscreen-btn="fasle"
bindfullscreenchange="fullScreen"
src="{{playVideoSrc}}"></video>
<image bindtap="closeVideo" class="closeImg" src="../../../images/index/close.png"></image>
</view>
\ No newline at end of file
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