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

update

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