当前位置:网站首页>Tiktok practice ~ search page ~ scan QR code
Tiktok practice ~ search page ~ scan QR code
2022-06-26 19:06:00 【gblfy】



List of articles
One 、 QR code scanning
1. api

The short video released by myself will have “ Save to album 、 Replication link 、 QR code 、 Become private ”
2. Front end source code
// Search scan
scan() {
uni.scanCode({
success: (e) => {
// url Address
var result = e.result;
var vlogId = JSON.parse(result).content;
// Jump to the page , Carry the search criteria over
uni.navigateTo({
url: "../vlog/vlog?vlogId=" + vlogId
})
}
})
},
Go to jump to the short video details page
3. Realization principle
- 1. In fact, generating short video QR code is the release of short video ID
- 2. When wechat scanning, only the generated QR code will be displayed type and content Written content , Because there is no other operation on the text .
- 3. Let's Tiktok app When you scan the QR code , I did the following things :
- 3.1. The first thing is to parse the text messages behind the QR code just like wechat scanning
- 3.2. Get short video publishing ID after , Calling the backend short video details api Interface
- 3.3. After calling the interface , There are short video information to video processing for short video details ( It's just a preview of a short video ), The principle is the same as that of the search page .
Two 、、 Appreciation of works
2.1. Short video QR code


2.2. Wechat scanning

2.3. Tiktok scanning


边栏推荐
- Pinda general permission system (day 3~day 4)
- Publish message publishers and subscribe message subscribers of ROS
- IK分词器
- LeetCode 238 除自身以外数组的乘积
- 品达通用权限系统(Day 3~Day 4)
- 自己创建一个时间拦截器
- Summary of alter operation in SQL
- Boyun, standing at the forefront of China's container industry
- Union, intersection and difference operations in SQL
- Button how to dynamically set drawablebottom (setcomposunddrawables is invalid)
猜你喜欢

(树) 树状数组

LeetCode 面试题29 顺时针打印矩阵

Installation and use of logstash

限流设计及实现

抖音实战~首页视频~下拉刷新

Clion breakpoint single step debugging

Redis single sign on system + voting system

Basic and necessary common plug-ins of vscade

Minimum spanning tree, shortest path, topology sorting, critical path

When does the mobile phone video roll off?
随机推荐
(multi threading knowledge points that must be mastered) understand threads, create threads, common methods and properties of using threads, and the meaning of thread state and state transition
Commodity seckill system
Pinda general permission system (day 1~day 2)
读书笔记:《过程咨询 III》
【Mysql系列】工作常用sql集锦(持续更新)
知識點總結
微服务架构
Several delete operations in SQL
微信小程序 自定义 弹框组件
Summary of alter operation in SQL
Comparing the size relationship between two objects turns out to be so fancy
Numpy之matplotlib
Vscode 基础必备 常用插件
抖音实战~首页视频~下拉刷新
爬取豆瓣读书Top250,导入sqlist数据库(或excel表格)中
DVD digital universal disc
WebView load pdf
Successfully solved the problem of garbled microservice @value obtaining configuration file
最小生成树、最短路径、拓扑排序、关键路径
DAPP丨LP单双币流动性质押挖矿系统开发原理分析及源码