Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扫码api里面的参数scanType值为barCode在支付宝小程序中无效 #1578

Closed
iwenli opened this issue Apr 19, 2020 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@iwenli
Copy link

iwenli commented Apr 19, 2020

问题描述
[问题描述:扫码类型scanType 传入参数 一维(barCode),但是扫码页面样式依旧是二维码样式,支付宝本身支持 一维码样式 ]

复现步骤
[源码]

// 调起条码扫描
uni.scanCode({
    scanType: ['barCode'],
    success: function (res) {
        console.log('条码类型:' + res.scanType);
        console.log('条码内容:' + res.result);
    }
});

预期结果
扫码界面有明确的条码字样,而且界面类型是扫码样式类型

实际结果
依旧是二维码样式和界面

系统信息:

  • 发行平台: [支付宝小程序]
  • 操作系统 [Android 10]
  • HBuilderX版本 [HBuilder X 2.6.9 ]
  • uni-app版本 []
  • 设备信息 [小米Mix2]

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

支付宝小程序扫一扫api文档 https://opendocs.alipay.com/mini/api/scan
可能是代码转换中 支付宝的scanType类型和uniapp的scanType类型没有对应上

@iwenli iwenli changed the title barCode在支付宝小程序中无效 扫码api里面的参数scanType值为barCode在支付宝小程序中无效 Apr 19, 2020
@Wangyaqi Wangyaqi added the bug Something isn't working label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants