当前位置:网站首页>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


边栏推荐
- DVD digital universal disc
- Create a time blocker yourself
- WebView load pdf
- 抖音实战~搜索页面~视频详情
- Analysis on development technology of NFT meta universe chain game system
- Numpy's Matplotlib
- Solidity - 合约继承子合约包含构造函数时报错 及 一个合约调用另一合约view函数收取gas费用
- Boot indicator monitoring
- Clion编译catkin_ws(ROS工作空间包的简称)加载CMakeLists.txt出现的问题
- LeetCode 238 除自身以外数组的乘积
猜你喜欢
随机推荐
Leetcode 128 longest continuous sequence
Using recursion to find all gray codes with n bits
LeetCode 面试题29 顺时针打印矩阵
Comparing the size relationship between two objects turns out to be so fancy
To: seek truth from facts
知识点总结
JSONUtils工具类(基于alibaba fastjson)
System table SQLite of SQLite database_ master
Clion compiling catkin_ WS (short for ROS workspace package) loads cmakelists Txt problems
MySQL recharge
JS mobile terminal touch screen event
9. Intelligent transportation project (2)
Union, intersection and difference operations in SQL
关于不等式取值转义的思路
品达通用权限系统(Day 1~Day 2)
Pinda general permission system (day 1~day 2)
自己创建一个时间拦截器
项目实战四:用户登录及token访问验证(reids+jwt)
Summary of several common UML diagrams
Image binarization









