uni-app uni.scanCode 连续扫码黑屏
uni-app uni.scanCode 连续扫码黑屏
| 产品分类 | uniapp/App |
|---|---|
| PC开发环境操作系统 | Mac |
| PC开发环境操作系统版本号 | mac os 115.2 |
| HBuilderX类型 | 正式 |
| HBuilderX版本号 | 3.2.16 |
| 手机系统 | Android |
| 手机系统版本号 | Android 9.0 |
| 手机厂商 | 小米 |
| 手机机型 | Mi 10 |
| 页面类型 | vue |
| vue版本 | vue2 |
| 打包方式 | 云端 |
| 项目创建方式 | HBuilderX |
操作步骤
scans() {
let thin = this
// 调起条码扫描
uni.scanCode({
scanType: ['qrCode'],
onlyFromCamera: true,
success: function(res) {
console.log('条码类型:' + res.scanType)
console.log('条码内容:' + res.result)
thin.form.anNumber = res.result
thin.$refs.uForm.validate()
thin.getWeighting()
},
})
},
更多关于uni-app uni.scanCode 连续扫码黑屏的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于uni-app uni.scanCode 连续扫码黑屏的实战教程也可以访问 https://www.itying.com/category-93-b0.html
频率有多大?另外是只有这个手机这样,还是所有手机都这样

