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


边栏推荐
猜你喜欢
随机推荐
Redis single sign on system + voting system
Tree array
Leetcode interview question 29 clockwise print matrix
Usage and difference between ros:: spinonce() and ros:: spin()
Take you to resolve hash conflicts and implement a simple hash table,
刷新三观的HP-UX系统中的强指针赋值出core问题
项目实战五:搭建ELk日志收集系统
字符串String转换为jsonArray并解析
Boot指标监测
Solidity - 合约继承子合约包含构造函数时报错 及 一个合约调用另一合约view函数收取gas费用
The eigen library calculates the angle between two vectors
IK分词器
物联网协议的王者:MQTT
Boot indicator monitoring
Determine whether a sequence is a stack pop-up sequence
Reading notes: process consulting III
软考备战多媒体系统
成功解决之微服务@Value获取配置文件乱码问题
元宇宙链游开发案例版 NFT元宇宙链游系统开发技术分析
JS mobile terminal touch screen event









