更新
This commit is contained in:
@@ -159,7 +159,18 @@
|
||||
scanType: 'qrCode',
|
||||
onlyFromCamera: true,
|
||||
success: (res) => {
|
||||
console.log(res.result)
|
||||
if (typeof res.result === 'string') {
|
||||
let result = JSON.parse(res.result)
|
||||
if (result.qrcodeText) {
|
||||
uni.showModal({
|
||||
title: '',
|
||||
content: "请使用首页扫一扫功能或油卡页面转卡功能赠油哦 |˛˙꒳˙)♡",
|
||||
})
|
||||
return
|
||||
}
|
||||
this.getScanRes(res.result)
|
||||
return
|
||||
}
|
||||
this.getScanRes(res.result)
|
||||
},
|
||||
fail: (err) => {
|
||||
|
||||
Reference in New Issue
Block a user