makeit-scan/README.md
makeit 98860a77f0
All checks were successful
continuous-integration/drone/push Build is passing
drone.yml
2024-08-07 17:02:51 +08:00

19 lines
841 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 扫描解析二维码 / 条形码
> 整个 Demo 项目采用的是 Vue3 + Vite + zxing + Ant Design Vue 构建。实现 Web 浏览器端拉起摄像头,扫描二维码 / 条形码并对其解析的功能。注意iPhone 系列的手机,除了 Safari 自带浏览器外,其它任何的浏览器是没有权限配置网站是否可用摄像头的,所以采用折中的解决方案,拉起摄像头后拍照进行识别)。
>
> Demo 体验地址:[https://scan.makeit.vip/](https://scan.makeit.vip/)
## 证书
> `localhost` 支持调试,需要用其它任何域名来调试的话,先配置 `https`(我测试的时候用的是 `letsencrypt` + `docker` 来生成免费的 `https` 证书的)
## 运行
```bash
git clone https://git.makeit.vip/makeit/makeit-scan.git
cd miitvip-scan-demo
npm install
npm run dev
```