// 扫码
scanCodeHandle() {
var that=this
// plus.screen.lockOrientation('landscape-primary');
uni.scanCode({
success: function(res) {
console.log('条码类型:' + res.scanType);
console.log('条码内容:' + res.result);
const lo = res.result.split(',')
console.log(lo)
that.loginForm = {
username: lo[0],
password: lo[1]
}
console.log(this.loginForm)
that.tologin()
},
fail: function(err) {
console.log('扫码失败', err)
}
})
},
5***@qq.com
- 发布:2023-10-21 15:18
- 更新:2023-10-21 16:04
- 阅读:233