|
|
|
@ -1,13 +1,13 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="park"> |
|
|
|
|
<!-- <view class="park-navbar"> |
|
|
|
|
<!-- <view class="park-navbar"> |
|
|
|
|
<u-navbar title="观看视频" :border-bottom="false" :background="background"></u-navbar> |
|
|
|
|
</view> --> |
|
|
|
|
<u-mask :show="show"> |
|
|
|
|
<view class="warp" @click.stop="pauseVideo"> |
|
|
|
|
<video @tap.stop style="width: 100%;" :loop='true' id="myVideo" :src="video_url"></video> |
|
|
|
|
<view class="share"> |
|
|
|
|
<button @click.stop="lookVideo" class="buttons"> 复制视频链接</button> |
|
|
|
|
<button @click.stop="lookVideo" class="buttons"> 复制分享好友</button> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-mask> |
|
|
|
@ -21,7 +21,8 @@ |
|
|
|
|
background: { |
|
|
|
|
background: 'none' |
|
|
|
|
}, |
|
|
|
|
video_url: '' |
|
|
|
|
video_url: '', |
|
|
|
|
title: '' |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -29,7 +30,8 @@ |
|
|
|
|
this.show = true; |
|
|
|
|
let videoContext = wx.createVideoContext('myVideo') |
|
|
|
|
videoContext.seek(0); |
|
|
|
|
this.video_url = options.url |
|
|
|
|
this.video_url = options.url; |
|
|
|
|
this.title = options.title |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
|
|
|
|
@ -58,7 +60,7 @@ |
|
|
|
|
methods: { |
|
|
|
|
lookVideo() { |
|
|
|
|
let str = |
|
|
|
|
`【App内视频教程】:如何用易创相机开启抖音直播\n【点开学习】\n${this.video_url}(温馨提示:App教程内可以搜索你想要的内容,让你学习更加方便)` |
|
|
|
|
`【小程序内商家教程视频】:${this.title}\n【点开学习】\n${this.video_url}(温馨提示:小程序商家教程内可以搜索你想要的内容,让你学习更加方便)` |
|
|
|
|
uni.setClipboardData({ |
|
|
|
|
data: str, // 这里是个坑接受字符串类型 value转化为字符串 |
|
|
|
|
success: function() { |
|
|
|
|