|
@@ -536,7 +536,6 @@ export default {
|
|
async scanCarCode() {
|
|
async scanCarCode() {
|
|
try {
|
|
try {
|
|
const runScanFn = (res) => {
|
|
const runScanFn = (res) => {
|
|
- console.log(513, res);
|
|
|
|
if (res.scanType && res.scanType == 'QR_CODE') {
|
|
if (res.scanType && res.scanType == 'QR_CODE') {
|
|
console.log(res.result);
|
|
console.log(res.result);
|
|
// 获取二维码参数之后,模拟提取参数
|
|
// 获取二维码参数之后,模拟提取参数
|
|
@@ -583,14 +582,6 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- runScanFn({
|
|
|
|
- "errMsg": "scanCode:ok",
|
|
|
|
- "result": "*",
|
|
|
|
- "scanType": "WX_CODE",
|
|
|
|
- "charSet": "ISO8859-1",
|
|
|
|
- "rawData": "bG8kUWVkLjNZdVZpKkQ3dlhpbHJyVjM1NzNhMCZ0eXBlPXVubGljZW5zZWRJbg=="
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
// 微信小程序
|
|
// 微信小程序
|
|
const platform = getPlatform();
|
|
const platform = getPlatform();
|
|
if (platform === 'miniprogram') {
|
|
if (platform === 'miniprogram') {
|