当前位置:网站首页>Tiktok practice ~ sharing module ~ copy short video link
Tiktok practice ~ sharing module ~ copy short video link
2022-06-26 19:06:00 【gblfy】

One 、 Visible range
Save to album 、 Replication link 、 QR code It is all done by the front end
1. Publish your own short video
The short video released by myself will have “ Save to album 、 Replication link 、 QR code 、 Become private ”
2. Others post short videos
Others post short videos , I can only see “ Save to album 、 Replication link 、 QR code ”
Two 、 Source code analysis
2.1. Bottom window popup
<view>
<!-- Bottom window popup -->
<uni-popup ref="comment" type="comment">
<uni-popup-comments :thisVlogerId="thisVlogerId" :thisVlogId="thisVlogId"></uni-popup-comments>
</uni-popup>
<uni-popup ref="share" background-color="#fff" type="share">
<uni-popup-share :thisVlogerId="thisVlogerId" :thisVlogId="thisVlogId" :vlogUrl="thisVlog.url"
:isPrivate="thisVlog.isPrivate"></uni-popup-share>
</uni-popup>
</view>
2.2. Implementation components uni-popup Pop-up layer
Plug in links :https://ext.dcloud.net.cn/plugin?id=329
Component case :
2.3. Plug ins involve components
Plugins include 4 Components :“uni-popup-comments、uni-popup-dialog、uni-popup-message、uni-popup-share”
2.4. Component modification
uni-popup-share
2.5. pivotal api
Official website api:
uni.setClipboardData(OBJECT)
Involving key api:uni.setClipboardData(OBJECT)
- Example :
uni.setClipboardData({
data: 'hello',
success: function () {
console.log('success');
}
});
- After the adjustment
copyLink() {
uni.setClipboardData({
data: this.vlogUrl,
success:()=>{
uni.showToast({
// Tips
title:' Replication success '
})
}
});
},
- Link after copying :
It can be played online in the browser
https://vkceyugu.cdn.bspapp.com/VKCEYUGU-912ebac0-be4a-440a-be59-c5bdba836d9c/76c6e411-0309-4ace-8ac4-f8c1a6fdba68.mp4
3、 ... and 、 Appreciation of works
3.1. Post your own video

3.2. Replication link


边栏推荐
猜你喜欢

Pinda general permission system (day 1~day 2)

Deep learning: numpy

最小生成树、最短路径、拓扑排序、关键路径

一些基本错误

Redis single sign on system + voting system

微服务版单点登陆系统(SSO)

抖音实战~分享模块~复制短视频链接

The successfully resolved idea cannot use the log normally after referencing Lombok's @slf4j

Clion编译catkin_ws(ROS工作空间包的简称)加载CMakeLists.txt出现的问题

手机影像内卷几时休?
随机推荐
Kubernetes 资源拓扑感知调度优化
Wechat applet custom pop-up components
Boot indicator monitoring
项目实战四:用户登录及token访问验证(reids+jwt)
The eigen library calculates the angle between two vectors
xlua获取ugui的button注册click事件
[kubernetes] kubernetes principle analysis and practical application (under update)
LeetCode 面试题29 顺时针打印矩阵
Installation and use of filebeat
爬取豆瓣读书Top250,导入sqlist数据库(或excel表格)中
Wechat applet uniapp left slide delete with Delete Icon
Tree array
Do you know how to compare two objects
When does the mobile phone video roll off?
Using cache in vuex to solve the problem of data loss in refreshing state
String string is converted to jsonarray and parsed
DVD digital universal disc
8VC Venture Cup 2017 - Final Round C. Nikita and stack
Take you to resolve hash conflicts and implement a simple hash table,
Soft test preparation multimedia system